index.js
function initAdminAPI () {
  this.clients = {
    list: clients.list.bind(this),
    get: clients.get.bind(this),
    create: clients.create.bind(this),
    update: clients.update.bind(this),
    delete: clients.delete.bind(this),
    roles: {
      list: clientRoles.listRoles.bind(this),
      add: clientRoles.addRole.bind(this),
      delete: clientRoles.deleteRole.bind(this)
    }
  }

  this.roles = {
    list: roles.list.bind(this),
    get: roles.get.bind(this),
    create: roles.create.bind(this),
    update: roles.update.bind(this),
    delete: roles.delete.bind(this),
    scopes: {
      list: roleScopes.listScopes.bind(this),
      add: roleScopes.addScope.bind(this),
      delete: roleScopes.deleteScope.bind(this)
    }
  }

  this.scopes = {
    list: scopes.list.bind(this),
    get: scopes.get.bind(this),
    create: scopes.create.bind(this),
    update: scopes.update.bind(this),
    delete: scopes.delete.bind(this)
  }

  this.users = {
    list: users.list.bind(this),
    get: users.get.bind(this),
    create: users.create.bind(this),
    update: users.update.bind(this),
    delete: users.delete.bind(this),
    roles: {
      list: userRoles.listRoles.bind(this),
      add: userRoles.addRole.bind(this),
      delete: userRoles.deleteRole.bind(this)
    }
  }
}
function initAdminAPI () {
  this.clients = {
    list: clients.list.bind(this),
    get: clients.get.bind(this),
    create: clients.create.bind(this),
    update: clients.update.bind(this),
    delete: clients.delete.bind(this),
    roles: {
      list: clientRoles.listRoles.bind(this),
      add: clientRoles.addRole.bind(this),
      delete: clientRoles.deleteRole.bind(this)
    }
  }

  this.roles = {
    list: roles.list.bind(this),
    get: roles.get.bind(this),
    create: roles.create.bind(this),
    update: roles.update.bind(this),
    delete: roles.delete.bind(this),
    scopes: {
      list: roleScopes.listScopes.bind(this),
      add: roleScopes.addScope.bind(this),
      delete: roleScopes.deleteScope.bind(this)
    }
  }

  this.scopes = {
    list: scopes.list.bind(this),
    get: scopes.get.bind(this),
    create: scopes.create.bind(this),
    update: scopes.update.bind(this),
    delete: scopes.delete.bind(this)
  }

  this.users = {
    list: users.list.bind(this),
    get: users.get.bind(this),
    create: users.create.bind(this),
    update: users.update.bind(this),
    delete: users.delete.bind(this),
    roles: {
      list: userRoles.listRoles.bind(this),
      add: userRoles.addRole.bind(this),
      delete: userRoles.deleteRole.bind(this)
    }
  }
}
function initAdminAPI ( ) { this . clients = { list : clients . list . bind ( this ) , get : clients . get . bind ( this ) , create : clients . create . bind ( this ) , update : clients . update . bind ( this ) , delete : clients . delete . bind ( this ) , roles : { list : clientRoles . listRoles . bind ( this ) , add : clientRoles . addRole . bind ( this ) , delete : clientRoles . deleteRole . bind ( this ) } } this . roles = { list : roles . list . bind ( this ) , get : roles . get . bind ( this ) , create : roles . create . bind ( this ) , update : roles . update . bind ( this ) , delete : roles . delete . bind ( this ) , scopes : { list : roleScopes . listScopes . bind ( this ) , add : roleScopes . addScope . bind ( this ) , delete : roleScopes . deleteScope . bind ( this ) } } this . scopes = { list : scopes . list . bind ( this ) , get : scopes . get . bind ( this ) , create : scopes . create . bind ( this ) , update : scopes . update . bind ( this ) , delete : scopes . delete . bind ( this ) } this . users = { list : users . list . bind ( this ) , get : users . get . bind ( this ) , create : users . create . bind ( this ) , update : users . update . bind ( this ) , delete : users . delete . bind ( this ) , roles : { list : userRoles . listRoles . bind ( this ) , add : userRoles . addRole . bind ( this ) , delete : userRoles . deleteRole . bind ( this ) } } }
Initializes the Anvil Connect admin API functions. Called by constructor.
@private
@method initAdminAPI
Initializes the Anvil Connect admin API functions . Called by constructor .