Hello,
As I type the following command in the command line with my access token:
curl -H “Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx” https://api.particle.io/v1/events/motion-detected
I get:
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: http://curl.haxx.se/docs/sslcerts.html
curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn’t adequate, you can specify an alternate file
using the --cacert option.
I tried to kill of the certificate verification thing by running:
curl -k “Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx” https://api.particle.io/v1/events/motion-detected
But I got:
curl: (6) Could not resolve host: Authorization
{
“error”: “invalid_request”,
“error_description”: “The access token was not found”
}
I’m not sure why the cloud returned an invalid request error. I will appreciate any help on this point or any suggestion on how to fix the certificate issue.
Best,