user3256309
user3256309

Reputation: 29

How to get Alexa device IP address and linked account complete details in Alexa skill to process some request?

Can we get IP address of my Alexa device using node.js to process some business logic?

I have read some blog but they saying it is personal information so it is not accessible. But some skills available which gives IP address So how it is possible?

How can I get linked account complete profile in alexa skill?

Upvotes: 0

Views: 2209

Answers (1)

johndoe
johndoe

Reputation: 4387

When you setup your Account Linking in developers portal, you have to specify scopes. These scopes represents the list of permissions to request from the skill user. You can provide up to 15 scopes.

Ex: If you are linking Facebook account and if you need to get profile info, then you have to specify the scope: public_profile.

So once a skill user links his/her account, you will get an accessToken in every subsequent request from your skill. You can then validate/use this token to fetch data from their APIs (Resource server). Say, you can get public-profile information from Facebook with the above scope and not anything else. In your case, specify the scope that lets you access profile information from your Resource server.

Read this answer about OAuth2

You won't get IP address, however you can login to your router and check the local IP of the device. If you want to do anything device specific use deviceId in the request JSON.

Upvotes: 2

Related Questions