The recommended approach to make a native API call, such asgetAccountInfo, from an Android client is to use the internal SDK methodGigya.getInstance().send. This method ensures secure and efficient communication with the SAP Customer Data Cloud APIs.
A: TheGigya.getInstance().sendmethod is specifically designed for making API calls within the SDK framework. It handles authentication, serialization, and other necessary processes internally.
B & D: Making direct HTTP GET or POST calls to the API endpoint using an application key and secret is not recommended because it exposes sensitive credentials and bypasses the SDK's built-in security mechanisms.
C: Passing the application key and secret as method arguments is unnecessary and insecure when using the SDK's internal methods.
SAP Customer Data Cloud References:
Android SDK Guide.
Making API Calls with the SDK.
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit