SBM's has contracted with Yext to manage web services for product placement. Those services expose a core REST API which this session will explore in more detail.
http://developer.yext.com/docs
http://developer.yext.com/docs/api-reference/
https://api.yext.com/v2/accounts/[accountId]/locations?api_key=API_KEY&v=YYYYMMDD
Using POSTman to generate code snippets:
https://www.getpostman.com/docs/postman/sending_api_requests/generate_code_snippets
SBM keys
https://api.yext.com/v2/accounts/me/locations/1083029318?api_key=37ad0b5bf712623dfa1ee4dd7bd414af&v=20161012&npi=1083029318 (Thank you Wade :-) )
Proxy now available without exposing keys:
1. Encode URL call
encodeURIComponent('https://api.yext.com/v2/accounts/[accountId]/locations?api_key=API_KEY&v=20170705')
"https%3A%2F%2Fapi.yext.com%2Fv2%2Faccounts%2F%5BaccountId%5D%2Flocations%3Fapi_key%3DAPI_KEY%26v%3D20170705"
2. Make the call, leave [accountId] and api_key=API_KEY , they will be filled in by the proxy automatically (click on link below):
https://sbm-it.github.io/yextJonas (it includes a manifest, do you can "Add to Home Screen" in your mobile device and have it as a "native app")
https://ryanoconnor7.github.io/yextRyan
https://github.com/csweezy/yext-csweezy
https://sbm-it.github.io/yextHasit/
...
After installing node
npm -g install http-server
Example of how not to share an API key: https://sbu-bmi.github.io/sandboxEarth/
Distributed browser-based computing