5 posts / 0 new
Last post
rchoubey
How can i find device id for my milli

While attempting to create a json format file for fetching device details for my milli , one of the parameters it asks for is device ID. From where do I find this information ?

Type: 
Public
hshekhar
How can i find device id for my milli

You can use Starfish Studio on developer portal to fetch device id. Since this is a real device the solution name you have to use is "sandbox" & not "StudioSimulation"

rchoubey
How can i find device id for my milli

I tried it and it worked, thanks !! Also see that the APIs are called using curl command from portal. Can I execute these curl commands from my Windows PC.

hshekhar
How can i find device id for my milli

You can execute the same curl commands from any terminal window from your PC with active internet connection & curl installed. I use Cygwin and it works fine for me.

E.g. to get for your tenantID in the "sandbox" solution:

curl -X GET --header 'Accept: application/json' --header 'Authorization: <token>' 'https://api.data-platform.developer.ssni.com/api/tenants/{tenantId}/solutions/{solutionName}/devices'

Please note that the token which you will use in this command will not be the one used in Starfish Studio. Instead, use you client id and secret ( from your dev portal account) to generate authorization token.

To generate token use below API call :-

curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{"clientId": "<clientid>", "clientSecret": "<secret>"}' 'https://api.data-platform.developer.ssni.com/api/tokens'

Also, note that only devices which are under your tenant group will be displayed

rchoubey
How can i find device id for my milli

Great !! this works fine for me. Thanks!