question

chiahaochen avatar image
chiahaochen asked

How to get account deatil by API?

Hello, Is there any API I can use to get account detail such as email or first name/last name for a given access token? That would be useful so that an app can show these information as an identification of account to users. Thanks
amazon drive
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

mice777 avatar image
mice777 answered
I didn't find this too. And most clout APIs have way to retrieve user's details such as name and email. Amazon cloud API doesn't seem to have this possible. Maybe in Version 2.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

chiahaochen avatar image
chiahaochen answered
Hello, I just figured it out myself. There is a get profile API in Login with Amazon API. You have to add "profile" in the scope when you obtain access token. And then GET https://api.amazon.com/user/profile with the access token. The response will be a json contains name, email, and user_id. Cheers Harry Chen
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.