I am calling the api with a zip code list and the response is code 400 with the body=“You must have a city,state,county, or zipcode as a request parameter”
The url is: https://vanitysoft-boundaries-io-v1.p.mashape.com/reaperfire/rest/v1/public/boundary?zipcode=90620%2C90621
as shown in the documentation.
I am using the Unirest\Request, just like the sample in the doc.
Join in the discussion - add comment below:
Hello,
We’ve tested the end point in a php client and found no issues. It returns the GeoJson as expected. Send us an email if your still having a problem.
Thanks!
Hello!
We have a trouble ticket with the Mashape team. Their PHP developer is also looking into this issue, we should have a resolution shortly. Sorry for the inconvenience!
I did cut/paste. I just ran dos2unix and no difference. This was the url I used this time.
Did you happen to ‘cut and paste’ the code? from windows to a file on unix? Try running dos2unix on the source file. or typing code directly in that file instead of copy& paste.
In the mean time we will try to reproduce on our end!
http://unirest.io/php.html
I am using PHP. Below is the code I am using.
Hello! Are you using Java?
let us know if this works.
the below code snipplet gives:
GoogleMap image:
http://i.stack.imgur.com/Y5VRP.jpg
<code>
HttpResponse<JsonNode> response = Unirest.get(“https://vanitysoft-boundaries-io-v1.p.mashape.com/reaperfire/rest/v1/public/boundary?zipcode=90620%2C90621”)
.header(“X-Mashape-Key”, “xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”)
.header(“Accept”, “application/json”)
.asJson();
<code>