Skip to content

/AWS1/IF_WKR=>GETBOT()

About GetBot

Retrieves detailed information about a specific bot in a Wickr network, including its status, group membership, and authentication details.

Method Signature

METHODS /AWS1/IF_WKR~GETBOT
  IMPORTING
    !IV_NETWORKID TYPE /AWS1/WKRNETWORKID OPTIONAL
    !IV_BOTID TYPE /AWS1/WKRBOTID OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_wkrgetbotresponse
  RAISING
    /AWS1/CX_WKRBADREQUESTERROR
    /AWS1/CX_WKRFORBIDDENERROR
    /AWS1/CX_WKRINTSERVERERROR
    /AWS1/CX_WKRRATELIMITERROR
    /AWS1/CX_WKRRESNOTFOUNDERROR
    /AWS1/CX_WKRUNAUTHORIZEDERROR
    /AWS1/CX_WKRVALIDATIONERROR
    /AWS1/CX_WKRCLIENTEXC
    /AWS1/CX_WKRSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_networkid TYPE /AWS1/WKRNETWORKID /AWS1/WKRNETWORKID

The ID of the Wickr network containing the bot.

iv_botid TYPE /AWS1/WKRBOTID /AWS1/WKRBOTID

The unique identifier of the bot to retrieve.

RETURNING

oo_output TYPE REF TO /aws1/cl_wkrgetbotresponse /AWS1/CL_WKRGETBOTRESPONSE

Examples

Syntax Example

This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.

DATA(lo_result) = lo_client->getbot(
  iv_botid = |string|
  iv_networkid = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_genericstring = lo_result->get_botid( ).
  lv_genericstring = lo_result->get_displayname( ).
  lv_genericstring = lo_result->get_username( ).
  lv_genericstring = lo_result->get_uname( ).
  lv_genericstring = lo_result->get_pubkey( ).
  lv_botstatus = lo_result->get_status( ).
  lv_genericstring = lo_result->get_groupid( ).
  lv_boolean = lo_result->get_haschallenge( ).
  lv_boolean = lo_result->get_suspended( ).
  lv_genericstring = lo_result->get_lastlogin( ).
ENDIF.

Get bot successfully

Get bot successfully

DATA(lo_result) = lo_client->getbot(
  iv_botid = |98765|
  iv_networkid = |12345678|
).

Get bot - bot not found

Get bot - bot not found

DATA(lo_result) = lo_client->getbot(
  iv_botid = |99999|
  iv_networkid = |12345678|
).