Using the API
API to access graph ressources : listing, deleting, modifiying, adding, get a svg graph.
Some of the actions are not yet implemented.
API request :
GET variables : api_user (=key), api_action, api_output, {id}
{POST variables : legend, data...) When adding a data to an existing graph
Action list available ($_GET['api_action'])
graph_publiclist : Get a list of the public graphs
graph_bykey : Get a svg graph by a specific key if public or part of yours
graph_byid : Get a svg graph by a specific id if public or part of yours
graph_listbyuser : Get your graphs list
graph_delete : Delete a graph by a specifc id ($_GET)
graph_copyfromid : Not yet implemented
graph_add : Not yet implemented
graph_adddata : Not yet implemented
graph_update : Not yet implemented
Output formats available ($_GET['api_output'])
json
serialize
Output error codes ($result['code']) and messages ($result['message'])
[0] => All is OK
[-1] => Too many requests. Dropping request
[-2] => Error log file
[-3] => Action unauthorized
[-4] => Authentification failed
[-5] => Output format unrecognized