Class: Resource

Chatter~Resource

(protected) new Resource(chatter, url, queryParamsopt)

A class representing chatter API resource
Parameters:
Name Type Attributes Description
chatter Chatter Chatter API object
url String Resource URL
queryParams Object <optional>
Query parameters (in hash object)
Source:

Extends

Methods

batchParams() → {Chatter~BatchRequestParams}

Retrieve parameters in batch request form
Inherited From:
Source:
Returns:
Type
Chatter~BatchRequestParams

create(data, callbackopt) → {Chatter~Request}

Create a new resource
Parameters:
Name Type Attributes Description
data Object Data to newly post
callback Callback.<Chatter~RequestResult> <optional>
Callback function
Source:
Returns:
Type
Chatter~Request

del(callbackopt) → {Chatter~Request}

Synonym of Resource#delete()
Parameters:
Name Type Attributes Description
callback Callback.<Chatter~RequestResult> <optional>
Callback function
Source:
Returns:
Type
Chatter~Request

delete(callbackopt) → {Chatter~Request}

Delete specified resource
Parameters:
Name Type Attributes Description
callback Callback.<Chatter~RequestResult> <optional>
Callback function
Source:
Returns:
Type
Chatter~Request

promise() → {Promise.<Chatter~RequestResult>}

Retrieve parameters in batch request form
Inherited From:
Source:
Returns:
Type
Promise.<Chatter~RequestResult>

retrieve(callbackopt) → {Chatter~Request}

Retrieve resource content
Parameters:
Name Type Attributes Description
callback Callback.<Chatter~RequestResult> <optional>
Callback function
Source:
Returns:
Type
Chatter~Request

stream() → {stream.Stream}

Returns Node.js Stream object for request
Inherited From:
Source:
Returns:
Type
stream.Stream

then()

Promise/A+ interface http://promises-aplus.github.io/promises-spec/ Delegate to deferred promise, return promise instance for batch result
Inherited From:
Source:

thenCall()

Promise/A+ extension Call "then" using given node-style callback function
Inherited From:
Source:

update(data, callbackopt) → {Chatter~Request}

Update specified resource
Parameters:
Name Type Attributes Description
data Obejct Data to update
callback Callback.<Chatter~RequestResult> <optional>
Callback function
Source:
Returns:
Type
Chatter~Request