Changes

Jump to navigation Jump to search
187 bytes added ,  08:30, 20 October 2016
Line 1,918: Line 1,918:  
==== Example ====
 
==== Example ====
 
<sup>(remember to do tests on world.openfoodfacts.net - login and password: off)</sup><br>
 
<sup>(remember to do tests on world.openfoodfacts.net - login and password: off)</sup><br>
===== Query 1 =====
+
===== Query 1 : Unauthentified query =====
 
<pre>http://world.openfoodfacts.net/cgi/product_jqm2.pl?code=0048151623426&product_name=Maryland%20Choc%20Chip&quantity=230g&nutriment_energy=450&nutriment_energy_unit=kJ&nutrition_data_per=serving&ingredients_text=Fortified%20wheat%20flour%2C%20Chocolate%20chips%20%2825%25%29%2C%20Sugar%2C%20Palm%20oil%2C%20Golden%20syrup%2C%20Whey%20and%20whey%20derivatives%20%28Milk%29%2C%20Raising%20agents%2C%20Salt%2C%20Flavouring&traces=Milk%2C+Soya%2C+Nuts%2C+Wheat</pre>
 
<pre>http://world.openfoodfacts.net/cgi/product_jqm2.pl?code=0048151623426&product_name=Maryland%20Choc%20Chip&quantity=230g&nutriment_energy=450&nutriment_energy_unit=kJ&nutrition_data_per=serving&ingredients_text=Fortified%20wheat%20flour%2C%20Chocolate%20chips%20%2825%25%29%2C%20Sugar%2C%20Palm%20oil%2C%20Golden%20syrup%2C%20Whey%20and%20whey%20derivatives%20%28Milk%29%2C%20Raising%20agents%2C%20Salt%2C%20Flavouring&traces=Milk%2C+Soya%2C+Nuts%2C+Wheat</pre>
 
===== Result 2 =====
 
===== Result 2 =====
Line 1,927: Line 1,927:     
===== Result 2 =====
 
===== Result 2 =====
<pre></pre>
+
====== If credentials are correct ======
 +
<pre>Standard success status, see above</pre>
 +
====== If credentials are not correct ======
 +
Will give you a responsive HTML login page.
    
==== See editing a product for details on fields ====
 
==== See editing a product for details on fields ====

Navigation menu