API description
La documentation API est disponible en Anglais. Data upload <100kbURLhttps://www.intchart.com/api/{id}/files/{name}/data Example Requesthttps://www.intchart.com/api/ABCDEFGH/files/File1/data?sep=;&names=0&xcol=2&dec=,&lang=nl&format=unix Headers
Parameters
Text data exampleRequesthttps://www.intchart.com/api/ABCDEFGH/files/File2/data?sep=,&format=ymd HeaderAuthorization: Bearer TNz7QwucuGythvQa71vYMQY0gKfyBP82DQ5LAaS9 Datadate,line1,line2 2016-06-01,58.13,3.41 2016-06-02,63.98,14.55 2016-06-03,87,26.78 2016-06-04,119.7,37.85 2016-06-05,139,48.92 2016-06-06,180.28,59.92 2016-06-07,226.7,90.13 2016-06-08,304.98,222.23 Response{ "message":"File2 has sucessfully been uploaded.", "version":"1.0", "href":"https://www.intchart.com/api/ABCDEFGH/files/File2/data?sep=,&format=ymd", "doc":"https://www.intchart.com/overview/api", "data characteristics": { "data separator":",", "decimal character":".", "language":"", "column x-values":"0", "name x-values":"date", "format x-values":"Year Month Day", "name y-values":"line1 line2 ", "number of lines added":"9" }, "notice":"To use other characteristics, please specify parameters in the URL." } Json data exampleRequesthttps://www.intchart.com/api/ABCDEFGH/files/File3/data?format=ymd HeadersAuthorization: Bearer TNz7QwucuGythvQa71vYMQY0gKfyBP82DQ5LAaS9 Content-Type: application/json Accept: application/json Data[{"date":"2016-06-01","line1":58.13,"line2":3.41},{"date":"2016-06-02","line1":63.98,"line2":14.55},{"date":"2016-06-03","line1":87,"line2":26.78},{"date":"2016-06-04","line1":119.7,"line2":37.85},{"date":"2016-06-05","line1":139,"line2":48.92},{"date":"2016-06-06","line1":180.28,"line2":59.92},{"date":"2016-06-07","line1":226.7,"line2":90.13},{"date":"2016-06-08","line1":304.98,"line2":222.23}] Response{ "message": "File3 has sucessfully been uploaded.", "version": "1.0", "href": "https://www.intchart.com/api/ABCDEFGH/files/File3/data?format=ymd", "doc": "https://www.intchart.com/overview/api", "data characteristics": { "decimal character": ".", "language": "", "column x-values": "0", "name x-values": "date", "format x-values": "Year Month Day", "name y-values": "line1 line2 ", "number of lines added": "9" }, "notice": "To use other characteristics, please specify parameters in the URL." } |