Here's the curl command I'm using : ( I took out my client and secret
values )
curl -v
https://api.hyperpublic.com/api/v1/offers?lat=40.74&lon=-74.01&q=mixology&status=all&client_id=L<CLIENT_KEY>&client_secret=<CLIENT_SECRET>
I get the following response :
* Trying 184.72.235.27... connected
* Connected to
api.hyperpublic.com (184.72.235.27) port 443 (#0)
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server key exchange (12):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using DHE-RSA-AES256-SHA
* Server certificate:
* subject: O=
api.hyperpublic.com; OU=Domain Control Validated;
CN=
api.hyperpublic.com
* start date: 2011-03-18 19:05:12 GMT
* expire date: 2012-03-18 19:05:12 GMT
* subjectAltName:
api.hyperpublic.com matched
* issuer: C=US; ST=Arizona; L=Scottsdale; O=GoDaddy.com, Inc.;
OU=
http://certificates.godaddy.com/repository; CN=Go Daddy Secure
Certification Authority; serialNumber=07969287
* SSL certificate verify ok.
> GET /api/v1/offers?lat=40.74 HTTP/1.1
> User-Agent: curl/7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8r zlib/1.2.5
> Host:
api.hyperpublic.com
> Accept: */*
>
< HTTP/1.1 401 Unauthorized
< Server: nginx/0.7.67
< Date: Sun, 02 Oct 2011 03:10:39 GMT
< Content-Type: text/html; charset=utf-8
< Connection: keep-alive
< X-Ua-Compatible: IE=Edge,chrome=1
< X-Runtime: 0.007649
< Cache-Control: no-cache
< Content-Length: 21
< X-Varnish: 1274196043
< Age: 0
< Via: 1.1 varnish
<
* Connection #0 to host
api.hyperpublic.com left intact
Thanks
Imran
* Closing connection #0
* SSLv3, TLS alert, Client hello (1):
Invalid OAuth Request
On Oct 1, 10:58 pm, Eric Tang <
et...@hyperpublic.com> wrote:
> Btw, for the 401 error on curl, if you can paste your command, I'll have a better idea of how to solve it.
>
> Eric
>