Line 113:
Line 113:
* $method : string "GET", "POST", "PUT", "DELETE"
* $method : string "GET", "POST", "PUT", "DELETE"
* $apikey : string "votre <token> généré plus haut"
* $apikey : string "votre <token> généré plus haut"
−
* $url : string l'url à appeler. Ex : "<nowiki>http://<mon_serveur>/api/index.php/invoices</nowiki"
+
* $url : string l'url à appeler. Ex : "<nowiki>http://<mon_serveur>/api/index.php/invoices</nowiki>"
−
* $data : string flux au format json. ce champ n'est pas obligatoire.
+
* $data : string flux au format json. Ce champ est requis pour les appels POST ou PUT.
= Exemples =
= Exemples =