To retrieve subscription and email account data from SAP Customer Data Cloud, you can use the following API calls:
accounts.getLiteToken: This generates a lightweight token for the user, which is required for certain operations.
accounts.getAccountInfo: This retrieves detailed account information, including subscription and email-related data.
Option A: Correct. Combiningaccounts.getLiteTokenwithaccounts.getAccountInfoallows you to authenticate the user and retrieve their account details, including subscriptions and email data.
Option B: Incorrect. Whileaccounts.registercreates a new account, it does not retrieve existing account data like subscriptions or email information.
Option C: Incorrect. Usingaccounts.getLiteTokenandaccounts.registertogether does not make sense becauseregisteris for creating accounts, not retrieving data.
Option D: Incorrect.accounts.loginauthenticates the user but does not directly retrieve subscription or email data. You would still need to callaccounts.getAccountInfoafterward.
References:
SAP Customer Data Cloud - Accounts API
getAccountInfo Documentation
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