Changes

Jump to navigation Jump to search
506 bytes added ,  16:44, 29 November 2016
Line 1,968: Line 1,968:     
WARNING: If the password is not correct, the API will currently "silently" fail, both for image addition and product data addition (will return HTML 200 code + an html page with a link to login - [http://world.openfoodfacts.org/cgi/product_jqm2.pl?code=0048151623426&user_id=usernameexample&password=*****&product_name=KIRI%2 example] )
 
WARNING: If the password is not correct, the API will currently "silently" fail, both for image addition and product data addition (will return HTML 200 code + an html page with a link to login - [http://world.openfoodfacts.org/cgi/product_jqm2.pl?code=0048151623426&user_id=usernameexample&password=*****&product_name=KIRI%2 example] )
 +
 +
==== Anonymous contribution ====
 +
 +
* It is possible for new products (no anonymous modification is possible though, for obvious reasons)
 +
* It is possible for adding images (as many as you like)
 +
* If you detect an error 200 (wrong password), please retry the query without user_id and password. That way the contribution will be accepted. Otherwise, the photo will get lost :(
    
==== Global account ====
 
==== Global account ====
 +
If you want to avoid coding the detection of password errors, login stuff… you can create a global account for all your users.
 +
 
You can create a global account to let the users of your app contribute. please name it YourApp_app or something like that, so that we can spot them easily. Better yet, introduce yourself on Slack :-)
 
You can create a global account to let the users of your app contribute. please name it YourApp_app or something like that, so that we can spot them easily. Better yet, introduce yourself on Slack :-)
  

Navigation menu