Class Point
- Defined in: point.js
Constructor Attributes | Constructor Name and Description |
---|---|
Point(masterApikey, feedID, streamID)
Create an instance of Point
|
Method Summary
Method Attributes | Method Name and Description |
---|---|
create(callback, optionalDataFormat)
Create datapoint: POST /v2/feeds/
|
|
read(timestamp, callback, optionalDataFormat)
Read datapoint: GET /v2/feeds/
|
Class Detail
Point(masterApikey, feedID, streamID)
Create an instance of Point
- Parameters:
- {string} masterApikey
- Your pachube api key.
- feedID
- streamID
Method Detail
-
{string} create(callback, optionalDataFormat)Create datapoint: POST /v2/feeds/
/datastreams/ /datapoints - Parameters:
- {function} callback
- The callback function.
- {string} optionalDataFormat
- Optional data format parameter, json, xml or csv, default to json.
- Returns:
- {string} HTTP headers only
-
{string} read(timestamp, callback, optionalDataFormat)Read datapoint: GET /v2/feeds/
/datastreams/ /datapoints/ - Parameters:
- {string} timestamp
- The timestamp for data point.
- {function} callback
- The callback function.
- {string} optionalDataFormat
- Optional data format parameter, json, xml for csv, default to json.
- Returns:
- {string} datapoint