Module Web Services API REST (developer): Difference between revisions

Jump to navigation Jump to search
→‎Use: accepted date format
Tag: 2017 source edit
(→‎Use: accepted date format)
Line 182: Line 182:
* $url : string, url to call. Ex : "<nowiki>http://<my_server>/api/index.php/invoices</nowiki>"
* $url : string, url to call. Ex : "<nowiki>http://<my_server>/api/index.php/invoices</nowiki>"
* $data : string, datas in json format. This parameter is not mandatory.
* $data : string, datas in json format. This parameter is not mandatory.
==Accepted parameters==
This is documented somewhat in the REST Explorer. Check that first. Second try and see what response you get. Third look at the source code for the given API.
===Date==
The ISO date format is accepted: %Y-%m-%d e.g. 2020-07-14. yymmdd is not accepted.


= Examples with PHP =
= Examples with PHP =
53

edits

Navigation menu