What is the best way to share the External URL of an agent with a non-imp server during an agent http.post?
The method I’ve come up with is to set the HTTP referer header field but as of right now I must copy/paste and hard code the external URL into the agent code. Will there be an API call to grab this value?
I just discovered that the BlinkUp integration process generates something called a setup token which has the device ID and the Imp card ID in it. If I understand this correctly, you can then pass this token to your server application and use it to make requests to the external URL of the imps agent, as the URL is constructed using the device ID.
I guess Hugo and the guys can confirm this, but as I understand it, the setup token is generated by the BlinkUp mobile framework/sdk and in order to be able to use this framework you need an API key which you only get if you have a service agreement in place with Electric Imp.
Personally, I think this is a really great solution for associating hundreds/thousands/millions of imp devices with users but for prototyping I’m hoping there will be some way of using a dev API key that limits the token generation to a finite amount of dev imps.