new Chatter(conn)
API class for Chatter REST API call
Parameters:
| Name | Type | Description |
|---|---|---|
conn |
Connection | Connection |
- Source:
Classes
Methods
-
batch(callback) → {Promise.<Chatter~BatchRequestResult>}
-
Make a batch request to chatter API
Parameters:
Name Type Argument Description callbackCallback.<Chatter~BatchRequestResult> <optional>
Callback func - Source:
Returns:
-
request(params, callback) → {Chatter~Request}
-
Make a request for chatter API resource
Parameters:
Name Type Argument Description paramsChatter~RequestParams Paramters representing HTTP request callbackCallback.<Chatter~RequestResult> <optional>
Callback func - Source:
Returns:
- Type
- Chatter~Request
-
resource(url, queryParams) → {Chatter~Resource}
-
Make a resource request to chatter API
Parameters:
Name Type Argument Description urlString Resource URL queryParamsObject <optional>
Query parameters (in hash object) - Source:
Returns:
- Type
- Chatter~Resource
Type Definitions
-
BatchRequestParams
-
Type:
- Object
- Source:
Properties:
Name Type Argument Description methodString HTTP method urlString Resource URL richInputString <optional>
HTTP body (in POST/PUT/PATCH methods) -
BatchRequestResult
-
Type:
- Object
- Source:
Properties:
Name Type Description hasErrorBoolean Flag if the batch has one or more errors resultsArray.<Object> Batch request results in array Properties
Name Type Description statusCodeNumber HTTP response status code resultChatter~RequestResult Parsed HTTP response body -
RequestParams
-
Type:
- Object
- Source:
Properties:
Name Type Argument Description methodString HTTP method urlString Resource URL bodyString <optional>
HTTP body (in POST/PUT/PATCH methods) -
RequestResult
-
Type:
- Object
- Source: