diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-09-25 14:53:02 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-09-25 14:53:02 -0400 |
| commit | 3a4ccaade954bc8d9bc54bafa8a492ca75124979 (patch) | |
| tree | 427820e837c290732005c2b1aeb724589b05ef89 /StoneIsland/www/js/sdk/auth.js | |
| parent | 365e6c93c1a57bb45d2ea274218378f642b4d425 (diff) | |
product api, mailing address api
Diffstat (limited to 'StoneIsland/www/js/sdk/auth.js')
| -rw-r--r-- | StoneIsland/www/js/sdk/auth.js | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/StoneIsland/www/js/sdk/auth.js b/StoneIsland/www/js/sdk/auth.js index d2375aca..a8489b5d 100644 --- a/StoneIsland/www/js/sdk/auth.js +++ b/StoneIsland/www/js/sdk/auth.js @@ -1,9 +1,25 @@ -sdk.auth = (function(){ +/* + headers: { + "x-yoox-appname": auth.appname, + "x-yoox-account-token": auth.access_token, + "x-yoox-device": auth.device, + "x-yoox-api-key": auth.apikey, + }, +*/ + +var auth = (function(){ var auth = {} - + + auth.appname = "{API-TEST}" + auth.apikey = "{API-KEY}" + auth.device = "smartphone" + + auth.access_token = "" + auth.user_id = -1 + // integrate keychain/cordova.file.externalRootDirectory api - auth.set_user = function(access_token, api_key){ + auth.set_user = function(user_id, access_token, name){ // persist user data } auth.get_user = function(cb){ |
