Skip to content

madsquare/snackk-web-api-request

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snackk-web-api-request

requirejs base ajax wrapper for snackk api

  • snackk access-token management
  • request timeout
  • file input

require

  • jquery
  • jquery-cookie
  • jquery-iframe-transport
  • lodash

example

init

server = new SnackkReqeust 
  'clientId': C.CLIENT_ID
  'clientSecret': C.CLIENT_SECRET
  'versionCode': C.RELEASE_VERSION_CODE
  'baseUrl': BaseUrl

how to use

server.request server.TAG.user.user, _.assign(
  'data': options
, callback)