I am developing an app which uses barcode
to get the product information of items after scanning the barcode
.
I don\'t want the user to in
Try adding on your API id to the url. https://developers.google.com/shopping-search/v1/getting_started#getting-started
I tried it and was able to get the information of Michael Kors MK5412 Chronograph Watches based of the url of your code.
https://www.googleapis.com/shopping/search/v1/public/products?country=US&q=691464717759&restrictBy=gtin=691464717759&key={your key here}
As a result, you have to fix your url builder to match ^.
Also make sure you put
<uses-permission android:name="android.permission.INTERNET"/>
in your manifest. Credit to this guy: http://androidforums.com/developer-101/100793-java-net-unknownhostexception.html.
Happy coding :)
I think,"a barcode number used to denote a particular product and the barcode number is unique for all over the world.most barcode apis find the given barcode number from their own database to get that particular product information (if given barcode number exists in their database) otherwise it does not give any result."
01.first you should create your own database including barcode numbers for each item in your database.(there are so many barcode types that you can use)
02.if you introduce a new product, you should get or buy a valid barcode number for your new product(make sure that your number is unique for all over the world).--
** then you can use your database to find the item information for a given barcode **
There are also other barcode databases, like ean-search.org.
You want to use the API and search by GTIN which is what the number encoded in the bar code represents.