72
edits
Line 54: | Line 54: | ||
== Posting a new product == | == Posting a new product == | ||
Do a GET request, otherwise you'll get < | Do a GET request, otherwise you'll get | ||
<pre>{ | |||
Ā Ā āstatus_verboseā: āno code or invalid codeā, | |||
Ā Ā āstatusā: 0 | |||
}</pre> | |||
'''Endpoint:''' <code>https://world.openfoodfacts.org/cgi/product_jqm2.pl</code>(Product post)<sup>(remember to do tests on world.openfoodfacts.net - login and password: "off")</sup> | |||
'''Testing endpoint:'''<code>https://world.openfoodfacts.net/cgi/product_jqm2.pl</code> | |||
=== Quick overview === | === Quick overview === | ||
Line 75: | Line 79: | ||
==== Status after save ==== | ==== Status after save ==== | ||
Ā | <pre> | ||
{ | |||
Ā Ā "status_verbose": "fields saved", | |||
Ā Ā "status": 1 | |||
} | |||
</pre> | |||
=== Examples === | === Examples === |
edits