Sign in | Sign up

API in Xcode App

Tagged:

Currently contains 4 posts

Avatar

July 21, 2018 12:30

shagee08

I’m trying to figure out how to add this API to an Xcode app that scans barcode apps but I am having NO luck. I don’t even know what url to add for the search. Can someone PLEASE help?

Avatar

July 29, 2018 08:46

bogdannistor

Hey mate, you have to make a GET request to
https://trackapi.nutritionix.com/v2/search/item?upc=some_upc_here
The get param is “upc” and you pass the UPC to the request.
Also, don’t forget to add the request headers: x-app-id and x-app-key.
Cheers.

Avatar

July 30, 2018 12:59

shagee08

So where do those go in the URL? Where do the api-id and the key go in that configuration?

Avatar

August 10, 2018 22:40

SmartShopper

im having the same problem. can someone help me?

Reply to thread