API description

Add data

URL

https://www.intchart.com/api/{id}/files/{name}/data

Headers

Authorization Mandatory API key
Content-Type Optional Media types : text/html or application/json
Accept Optional Media types : text/html or application/json

Parameters

{id} API user ID
{name} The name of your file
sep Optional for text data - Not used for json data Determines the data separator between the data values. Possible values , ; | or tab Default : the last separator used for this file
names Optional for text data - Not used for json data Indicates if your data contain field names Possible values : 0 or 1 Default : 0
xcol Optional Determines the column to be used for the x-axis (horizontal axis) Possible values : integer from 1 to 10 Default : the last xcol used for this file
dec Not used (the default is used) Determines the decimal character for the floating-point numbers Default : the last dec used for this file
lang Not used (the default is used) Determines the language used for the dates Default : the last lang used for this file
format Not used (the default is used) Determines the format used for a dates Default : the last format used for this file

Text data example

Request

https://www.intchart.com/api/ABCDEFGH/files/File1/data

Header

Authorization: Bearer TNz7QwucuGythvQa71vYMQY0gKfyBP82DQ5LAaS9

Data

2016-06-09,320,240

Response

{ "message":"File2 has sucessfully been updated.", "version":"1.0", "href":"https://www.intchart.com/api/ABCDEFGH/files/File2/data", "doc":"https://www.intchart.com/overview/api", "data characteristics": { "number of lines added":"1" }, "notice":"To use other characteristics, please specify parameters in the URL." }

Json data example

Request

https://www.intchart.com/api/ABCDEFGH/files/File3/data

Headers

Authorization: Bearer TNz7QwucuGythvQa71vYMQY0gKfyBP82DQ5LAaS9 Content-Type: application/json Accept: application/json

Data

[{"date":"2016-06-08","line1":304.98,"line2":222.23}]

Response

{ "message": "File3 has sucessfully been updated.", "version": "1.0", "href": "https://www.intchart.com/api/ABCDEFGH/files/File3/data", "doc": "https://www.intchart.com/overview/api", "data characteristics": { "number of lines added": "1" }, "notice": "To use other characteristics, please specify parameters in the URL." }