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
registerApp(email, password, redirectUri) ⇒ Promise
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 |
getOAuthClientData(email, password) ⇒ Promise
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 |
getOAuthLoginURL(clientId) ⇒ string
Returns URL to login form
Kind: global function
Returns: string - Login form URL
| Param | Type | Description |
|---|---|---|
| clientId | string | Application ID |
updateOAuthRedirectUri(clientId, clientSecret, redirectUri) ⇒ Promise
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 |