new Chatter(conn)
API class for Chatter REST API call
Parameters:
- Source:
Classes
- Request
- Resource
Methods
Make a batch request to chatter API
Parameters:
- Source:
Returns:
-
Type
-
Promise.<Chatter~BatchRequestResult>
request(params, callbackopt) → {Chatter~Request}
Make a request for chatter API resource
Parameters:
- Source:
Returns:
-
Type
-
Chatter~Request
resource(url, queryParamsopt) → {Chatter~Resource}
Make a resource request to chatter API
Parameters:
Name |
Type |
Attributes |
Description |
url |
String
|
|
Resource URL |
queryParams |
Object
|
<optional>
|
Query parameters (in hash object) |
- Source:
Returns:
-
Type
-
Chatter~Resource
Type Definitions
BatchRequestParams
Type:
Properties:
Name |
Type |
Attributes |
Description |
method |
String
|
|
HTTP method |
url |
String
|
|
Resource URL |
richInput |
String
|
<optional>
|
HTTP body (in POST/PUT/PATCH methods) |
- Source:
BatchRequestResult
Type:
Properties:
Name |
Type |
Description |
hasError |
Boolean
|
Flag if the batch has one or more errors |
results |
Array.<Object>
|
Batch request results in array
Properties
Name |
Type |
Description |
statusCode |
Number
|
HTTP response status code |
result |
Chatter~RequestResult
|
Parsed HTTP response body |
|
- Source:
RequestParams
Type:
Properties:
Name |
Type |
Attributes |
Description |
method |
String
|
|
HTTP method |
url |
String
|
|
Resource URL |
body |
String
|
<optional>
|
HTTP body (in POST/PUT/PATCH methods) |
- Source:
RequestResult
Type:
- Source: