Class: OauthAppMethods
| Defined in: | src/methods/oauth-app-methods.coffee |
Constant Summary
- KEY_LENGTH =
-
20 - SECRET_LENGTH =
-
40 - APP_CREATE_FIELDS =
-
['name', 'websiteUrl', 'imageUrl', 'notes', 'tosAcceptanceDate', 'scope', 'description', 'acceptTermsOfService', 'isPublished', 'organizationName', 'organizationUrl']
Instance Method Summary
- - (void) constructor(models, scopeMethods) Constructor
- - (void) create(accountId, objs = {}, options = {}, cb = function() {}) Bound Create a new oauth client.
- - (void) all(accountId, options = {}, cb = function() {}) Bound Retrieves all oauth apps for a specific accountId
- - (void) getAppsForUser(accountId, owningUserId, options = {}, cb = function() {}) Bound Retrieves apps for a specific user, within the accountId scope.
- - (void) get(oauthAppId, options = {}, cb = function() {}) Bound returns a specific oauth app.
- - (void) destroy(oauthAppId, options = {}, cb = function() {}) Bound Completely destroys an app.
- - (void) resetAppKeys(oauthAppId, options = {}, cb = function() {}) Bound Reset the app keys for an app.
- - (void) patch(oauthAppId, data = {}, options = {}, cb = function() {}) Bound Update an app.
Constructor Details
- (void) constructor(models, scopeMethods)
Instance Method Details
- (void) create(accountId, objs = {}, options = {}, cb = function() {}) (bound)
Create a new oauth client.
- (void) all(accountId, options = {}, cb = function() {}) (bound)
Retrieves all oauth apps for a specific accountId
- (void) getAppsForUser(accountId, owningUserId, options = {}, cb = function() {}) (bound)
Retrieves apps for a specific user, within the accountId scope.
- (void) get(oauthAppId, options = {}, cb = function() {}) (bound)
returns a specific oauth app.
- (void) destroy(oauthAppId, options = {}, cb = function() {}) (bound)
Completely destroys an app.
- (void) resetAppKeys(oauthAppId, options = {}, cb = function() {}) (bound)
Reset the app keys for an app.
- (void) patch(oauthAppId, data = {}, options = {}, cb = function() {}) (bound)
Update an app.