Re:Free Address Verification by EasyPost
by funthree on Wednesday January 16, 2013 @02:45PM
(#5068625)
The example doesnt really work
[ Parent
| on HN ]
Re:Free Address Verification by EasyPost
by bpartridge on Wednesday January 16, 2013 @04:08PM
(#5069041)
This is because their demo uses https, as recommended in their documentation ("We suggest that you make API requests over HTTPS..."). But, if you switch to using the http protocol, the request will return a response correctly. It's a bug.
Also interesting because their website redirects http requests to the https protocol (eg. http://geteasypost.com/docs).
Re:Free Address Verification by EasyPost
by jstreebin on Wednesday January 16, 2013 @04:35PM
(#5069177)
Yes, sorry about that. It's fixed so both work now
Re:Free Address Verification by EasyPost
by bpartridge on Wednesday January 16, 2013 @05:00PM
(#5069311)
Great, thanks!
Re:Free Address Verification by EasyPost
by jstreebin on Wednesday January 16, 2013 @04:22PM
(#5069119)
Oops, we were forcing SSL for Auth.net and there was an error
Try this:
curl http://www.geteasypost.com/api/address/verify \ -u cueqNZUb3ldeWTNX7MU3Mel8UXtaAMUi: \ -d 'address[street1]=388 Townsend St' \ -d 'address[street2]=Apt 20' \ -d 'address[city]=San Francisco' \ -d 'address[state]=CA' \ -d 'address[zip]=94107'