Page 1 of 1
Dynamic Application Key and REST-API key?
Posted: Sat Mar 30, 2013 12:13 am
by Dave E
Is it possible to set a service Application Key and REST-API key dynamically with code?
My goal is to enable my Tiggzi app to be configurable at runtime, to be able to POST jason data to a service whose Application Key and REST-API key is specified at runtime. Any advice or examples would be much appreciated!
Thanks,
Dave
Dynamic Application Key and REST-API key?
Posted: Sat Mar 30, 2013 12:25 am
by maxkatz
You could prompt the user to enter the key in the first page. Save the key into local storage. Map the key from local storage to service.
Dynamic Application Key and REST-API key?
Posted: Mon Apr 01, 2013 5:25 am
by Dave E
Dynamic Application Key and REST-API key?
Posted: Thu Apr 04, 2013 9:56 pm
by Dave E
I've saved the keys into local storage and assigned mapping, but it doesn't seem to be calling the service appropriately. I've attached a screenshot of the mapping. Do I need to add any javascript to explicitly copy the local storage vars into the service values? (I've verified that the values of my local storage vars are correct at runtime.) Any help is most appreciated.
Thanks,
Dave
Dynamic Application Key and REST-API key?
Posted: Thu Apr 04, 2013 9:57 pm
by Dave E
To be more specific, it isn't calling the service at all.
Dynamic Application Key and REST-API key?
Posted: Thu Apr 04, 2013 10:07 pm
by maxkatz
Check with Chrome Dev. Tools if you are getting any errors. You can also place a console.log (...) in mapping to see if you actually get values from local storage.