lib/client.js
function Client(key, secret, scope) {
      this.key = key;
      this.secret = secret;
      this.scope = scope != null ? scope : "read write";
      this._request = __bind(this._request, this);
      this._delete = __bind(this._delete, this);
      this._put = __bind(this._put, this);
      this._post = __bind(this._post, this);
      this._postAsForm = __bind(this._postAsForm, this);
      this._get = __bind(this._get, this);
      this.info = __bind(this.info, this);
      this.deleteApp = __bind(this.deleteApp, this);
      this.updateApp = __bind(this.updateApp, this);
      this.app = __bind(this.app, this);
      this.createApp = __bind(this.createApp, this);
      this.appsForOrganization = __bind(this.appsForOrganization, this);
      this.deleteOrganization = __bind(this.deleteOrganization, this);
      this.createOrganization = __bind(this.createOrganization, this);
      this.updateOrganization = __bind(this.updateOrganization, this);
      this.organization = __bind(this.organization, this);
      this.organizations = __bind(this.organizations, this);
      this.organizationsForUser = __bind(this.organizationsForUser, this);
      this.updateUser = __bind(this.updateUser, this);
      this.createUser = __bind(this.createUser, this);
      this.updateMe = __bind(this.updateMe, this);
      this.me = __bind(this.me, this);
      this.authenticate = __bind(this.authenticate, this);
      this.setAccessToken = __bind(this.setAccessToken, this);
      if (!(this.key && this.secret)) {
        throw new Error("You need to pass a key and secret");
      }
    }
function Client(key, secret, scope) {
      this.key = key;
      this.secret = secret;
      this.scope = scope != null ? scope : "read write";
      this._request = __bind(this._request, this);
      this._delete = __bind(this._delete, this);
      this._put = __bind(this._put, this);
      this._post = __bind(this._post, this);
      this._postAsForm = __bind(this._postAsForm, this);
      this._get = __bind(this._get, this);
      this.info = __bind(this.info, this);
      this.deleteApp = __bind(this.deleteApp, this);
      this.updateApp = __bind(this.updateApp, this);
      this.app = __bind(this.app, this);
      this.createApp = __bind(this.createApp, this);
      this.appsForOrganization = __bind(this.appsForOrganization, this);
      this.deleteOrganization = __bind(this.deleteOrganization, this);
      this.createOrganization = __bind(this.createOrganization, this);
      this.updateOrganization = __bind(this.updateOrganization, this);
      this.organization = __bind(this.organization, this);
      this.organizations = __bind(this.organizations, this);
      this.organizationsForUser = __bind(this.organizationsForUser, this);
      this.updateUser = __bind(this.updateUser, this);
      this.createUser = __bind(this.createUser, this);
      this.updateMe = __bind(this.updateMe, this);
      this.me = __bind(this.me, this);
      this.authenticate = __bind(this.authenticate, this);
      this.setAccessToken = __bind(this.setAccessToken, this);
      if (!(this.key && this.secret)) {
        throw new Error("You need to pass a key and secret");
      }
    }
function Client ( key , secret , scope ) { this . key = key ; this . secret = secret ; this . scope = scope != null ? scope : "read write" ; this . _request = __bind ( this . _request , this ) ; this . _delete = __bind ( this . _delete , this ) ; this . _put = __bind ( this . _put , this ) ; this . _post = __bind ( this . _post , this ) ; this . _postAsForm = __bind ( this . _postAsForm , this ) ; this . _get = __bind ( this . _get , this ) ; this . info = __bind ( this . info , this ) ; this . deleteApp = __bind ( this . deleteApp , this ) ; this . updateApp = __bind ( this . updateApp , this ) ; this . app = __bind ( this . app , this ) ; this . createApp = __bind ( this . createApp , this ) ; this . appsForOrganization = __bind ( this . appsForOrganization , this ) ; this . deleteOrganization = __bind ( this . deleteOrganization , this ) ; this . createOrganization = __bind ( this . createOrganization , this ) ; this . updateOrganization = __bind ( this . updateOrganization , this ) ; this . organization = __bind ( this . organization , this ) ; this . organizations = __bind ( this . organizations , this ) ; this . organizationsForUser = __bind ( this . organizationsForUser , this ) ; this . updateUser = __bind ( this . updateUser , this ) ; this . createUser = __bind ( this . createUser , this ) ; this . updateMe = __bind ( this . updateMe , this ) ; this . me = __bind ( this . me , this ) ; this . authenticate = __bind ( this . authenticate , this ) ; this . setAccessToken = __bind ( this . setAccessToken , this ) ; if ( ! ( this . key && this . secret ) ) { throw new Error ( "You need to pass a key and secret" ) ; } }
Initializes a new instance of @see Client
@param (String) key the api key obtained from scottyapp.com/developers
@param (String) secret the api secret
@param (String) scope defaults to "read write".
Initializes a new instance of