-
Notifications
You must be signed in to change notification settings - Fork 74
Dispatcher.API
A HTTP wrapper for the Asana API
Creates a dispatcher which will augment the parameters passed to request with the authKey: authValue mutation.
Name | Type | Description |
---|---|---|
authKey |
String | The key for request authentication |
authValue |
String | Object | The value for request authentication |
- Source:
-
The root Url for the current version of the Asana API.
- String
- Source:
-
The key for the request options hash
- String
- Source:
-
The value for the request options hash
- String | Object
- Source:
-
Creates an Asana API Url by concatenating the ROOT_URL with path provided.
Name Type Description path
String The path
- Source:
The url
- Type
- String
-
Dispatches a DELETE request to the Asana API.
Name Type Description path
String The path of the API
- Source:
The response for the request
- Type
- BPromise
-
Dispatches a request to the Asana API. The request parameters are passed to the request module.
Name Type Description params
Object The params for request
- Source:
The response for the request
- Type
- BPromise
-
Dispatches a GET request to the Asana API.
Name Type Argument Description path
String The path of the API
query
Object <optional>
The query params
- Source:
The response for the request
- Type
- BPromise
-
Dispatches a POST request to the Asana API.
Name Type Description path
String The path of the API
data
Object The data to be sent
- Source:
The response for the request
- Type
- BPromise
-
Dispatches a PUT request to the Asana API.
Name Type Description path
String The path of the API
data
Object The data to be sent
- Source:
The response for the request
- Type
- BPromise