Simple GET request to a URL.
Posted: Thu Sep 22, 2016 10:45 am
I'm working on a project where I need to validate a barcode number, read by a barcode scanner. My client has provided me with an API to validate the scanned number. The information provided to me is as follows:
I have the URL I need and I don't care about the JSON return, I just need to get the 404 or 200 response. Are there any samples out there on how to accomplish this?There is a barcode verification API, that I'd prefer you use, you simply do a GET to a URL with the barcode value in the URL. This will return a 404 if invalid and a 200 (with a JSON body) if it is valid.