Authorization
Functions
- registerApp(email, password, redirectUri) ⇒
Promise
Registers application to be used with Nozbe
- getOAuthClientData(email, password) ⇒
Promise
Fetches OAuth data of registered application
- getOAuthLoginURL(clientId) ⇒
string
Returns URL to login form
- updateOAuthRedirectUri(clientId, clientSecret, redirectUri) ⇒
Promise
Updates OAuth redirect URI
Promise
registerApp(email, password, redirectUri) ⇒ Registers application to be used with Nozbe
Kind: global function
Returns: Promise
- OAuth data for registered application
Param | Type | Description |
---|---|---|
string | Developer's e-mail | |
password | string | Developer's password |
redirectUri | string | The application's register URI |
Promise
getOAuthClientData(email, password) ⇒ Fetches OAuth data of registered application
Kind: global function
Returns: Promise
- OAuth data
Param | Type | Description |
---|---|---|
string | Developer's e-mail | |
password | string | Developer's password |
string
getOAuthLoginURL(clientId) ⇒ Returns URL to login form
Kind: global function
Returns: string
- Login form URL
Param | Type | Description |
---|---|---|
clientId | string | Application ID |
Promise
updateOAuthRedirectUri(clientId, clientSecret, redirectUri) ⇒ Updates OAuth redirect URI
Kind: global function
Returns: Promise
- OAUth data
Param | Type | Description |
---|---|---|
clientId | string | Existing Application ID |
clientSecret | string | Existing Client Secret |
redirectUri | string | URI to be redirected to after successful login |