send post request with bearer authentication using cURL command

0

i want to send post request using curl command like the following

curl -X POST \
https://api2.sprinklr.com/api/v1/case/search \ 
-H 'Content-Type:application/json' \
-H  'Authorization: Bearer <TOKEN>' \
-H  'key:<KEY>'\
-d '{"query": "","filters":[{"filterType":"IN","field":"channelType","values":["SPRINKLR"]}],"paginationInfo": {"start": 0,"rows": 10,"sinceDate": 1513468800000,"untilDate":1545040611208}}'

and give me the following error

curl: (35) schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate.
curl: (6) Could not resolve host: Bearer
curl: (6) Could not resolve host: cRDhkii5llO
curl: (3) [globbing] bad range specification in column 11
curl: (3) [globbing] unmatched brace in column 1
curl: (6) Could not resolve host: 0,rows
curl: (6) Could not resolve host: 10,sinceDate
curl: (3) [globbing] unmatched close brace/bracket in column 38
curl
oauth-2.0
bearer-token
asked on Stack Overflow Oct 14, 2019 by fathy elshemy • edited Oct 15, 2019 by fathy elshemy

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0