/AWS1/IF_CGI=>GETID()¶
About GetId¶
Generates (or retrieves) IdentityID. Supplying multiple logins will create an implicit linked account.
This is a public API. You do not need any credentials to call this API.
Method Signature¶
METHODS /AWS1/IF_CGI~GETID
IMPORTING
!IV_ACCOUNTID TYPE /AWS1/CGIACCOUNTID OPTIONAL
!IV_IDENTITYPOOLID TYPE /AWS1/CGIIDENTITYPOOLID OPTIONAL
!IT_LOGINS TYPE /AWS1/CL_CGILOGINSMAP_W=>TT_LOGINSMAP OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cgigetidresponse
RAISING
/AWS1/CX_CGIEXTERNALSERVICEEX
/AWS1/CX_CGIINTERNALERROREX
/AWS1/CX_CGIINVALIDPARAMETEREX
/AWS1/CX_CGILIMITEXCEEDEDEX
/AWS1/CX_CGINOTAUTHORIZEDEX
/AWS1/CX_CGIRESOURCECONFLICTEX
/AWS1/CX_CGIRESOURCENOTFOUNDEX
/AWS1/CX_CGITOOMANYREQUESTSEX
/AWS1/CX_CGICLIENTEXC
/AWS1/CX_CGISERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_identitypoolid TYPE /AWS1/CGIIDENTITYPOOLID /AWS1/CGIIDENTITYPOOLID¶
An identity pool ID in the format REGION:GUID.
Optional arguments:¶
iv_accountid TYPE /AWS1/CGIACCOUNTID /AWS1/CGIACCOUNTID¶
A standard Amazon Web Services account ID (9+ digits).
it_logins TYPE /AWS1/CL_CGILOGINSMAP_W=>TT_LOGINSMAP TT_LOGINSMAP¶
A set of optional name-value pairs that map provider names to provider tokens. The available provider names for
Loginsare as follows:
Facebook:
graph.facebook.comAmazon Cognito user pool:
cognito-idp., for example,.amazonaws.com/ cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789.Google:
accounts.google.comAmazon:
www.amazon.com.rproxy.govskope.caTwitter:
api.twitter.comDigits:
www.digits.com
RETURNING¶
oo_output TYPE REF TO /aws1/cl_cgigetidresponse /AWS1/CL_CGIGETIDRESPONSE¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
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->getid(
it_logins = VALUE /aws1/cl_cgiloginsmap_w=>tt_loginsmap(
(
VALUE /aws1/cl_cgiloginsmap_w=>ts_loginsmap_maprow(
value = new /aws1/cl_cgiloginsmap_w( |string| )
key = |string|
)
)
)
iv_accountid = |string|
iv_identitypoolid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_identityid = lo_result->get_identityid( ).
ENDIF.