0

I want this cURL

curl https://api.cardinity.com/v1/payments\
  -H "Content-Type: application/json" \
  -H 'Authorization: OAuth oauth_consumer_key="<your_consumer_key>", \
      oauth_signature_method="HMAC-SHA1", \
      oauth_timestamp="<timestamp>", \
      oauth_nonce="<unique_random_string>", \
      oauth_version="1.0", \
      oauth_signature="<computed_oauth_signature>"'

transformed into Angular, I've tried everything.

8
  • what do you mean by : transform into angular??? I think you can just make a http request from angular if I didn't get the question wrong. If not so, please explain a little more Commented Jul 30, 2015 at 11:33
  • Yes i want to make http request. I've already tried to make headers and so on, ive tried to make authorization header as a single string, also as an object. When i do it through terminal everything is ok, but i cant make it work through angular Commented Jul 30, 2015 at 12:36
  • what errors you are getting when hitting the url angular way Commented Jul 30, 2015 at 12:54
  • XMLHttpRequest cannot load api.cardinity.com/v1/payments. Invalid HTTP status code 401 Commented Jul 30, 2015 at 13:06
  • Try enabling cors on server side. Commented Jul 30, 2015 at 13:22

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.