Developer Device Authentication¶
There is no connection between a MyVinli account and a Dev Portal account, even if they share an email address.
However, it can be useful to add a device to your application, before you have a full OAuth flow implemented. After adding a device, you can inspect data from a device or experiment with the Vinli Platform API.
Follow the procedure below to add a device to your app:
- Create a MyVinli account and follow the steps to add and name your device.
- Create a Vinli Developer account.
- From the Vinli Developer Portal, create an OAuth client. The Client Type should be set to Web. For the purposes of this procedure, the Redirect URI does not have to point to an existing URL.
- Download the script files and follow the steps in this gist. Use your MyVinli credentials, the ID and Redirect URI of the Oauth client that you created in step 3.
After adding the device, you can view the device data in the Dev Portal. You can also use the Bearer token, returned by step 4, to access device data using the HTTP API.