1

I have managed to build a VB.Net app to look up UPC/EAN codes on OutPan, but cannot get it to accept my attempts to add new items. My url is ...

https://api.outpan.com/v2/products/9300617041207/Cadbury+Crunchie?apikey=[MyAPIkey]

Clearly, I have this malformed. Can you tell me what is wrong?

Jeff Law

Jeff Law
  • 11
  • 2

1 Answers1

1

Based on https://www.outpan.com/developers you have to use POST request which contains name field in the parameters.

And the url should be:
https://api.outpan.com/v2/products/9300617041207/name?apikey=[MyAPIkey]

request example: curl -X POST -d "name=some_product" https://api.outpan.com/v2/products/9300617041207/name?apikey=[MyAPIkey]

tivvit
  • 11
  • 2
  • Are you saying that the word 'name' is replaced with the Name value? – Jeff Law Aug 18 '16 at 06:15
  • Re my previous comment, I tried that with no success. I also tried 'name=[Name]' with success. I suggest that the documentation is somewhat light on detail. – Jeff Law Aug 18 '16 at 06:18
  • No the word 'name' should not be replaced with anything. The second format you are trying to pass is GET parameter. I have added an example to my answer, hope it helps (Maybe this link will explain it http://www.w3schools.com/tags/ref_httpmethods.asp). – tivvit Aug 18 '16 at 22:10
  • There seems to be some confusion in the answer(s). I am trying to add a [Name] to an existing item in the database. In other words, the item already exists, and I want to now update it with it's Name. – Jeff Law Aug 20 '16 at 04:03
  • Now I'm making progress - to add an Attribute, my POST data is 'name=[AttributeName]&value=[AttributeValue]' and this works as expected. However, I cannot fathom the POST data to add a [Name]. I have tried 'name=[Name]' and 'value=[Name]' but these return an error response. – Jeff Law Aug 20 '16 at 09:11
  • Finally, I have it sorted - persistence pays off. Now, I just need to find a way to update a [NAME] which has been incorrectly entered! – Jeff Law Aug 20 '16 at 09:45
  • is outpan even active now? We had an integration with outpan API last year, but now the website itself is down. Anybody have an idea if they are closed or moved to a new address? – yaswanth Jun 22 '18 at 09:57