AnsweredAssumed Answered

API Authentication

Question asked by walfwood on Oct 6, 2017
Latest reply on Oct 17, 2017 by walfwood

I am trying to make a request to an API and I am having some trouble. I am not really familiar with APIs and so I am sure I am doing something wrong. Would anyone be able to give me a hand on this?

 

This is the example request

 

curl https://api.wheniwork.com/2/login \
  --data '{"username":"user@example.com", "password": "*******"}' \
  -H "W-Key: iworksoharditsnotfunny"

 

I have tried using insert from url setup as "https://api.wheniwork.com/2/login/username=user@example.com&password=*********&W-Key=iworksoharditsnotfunny"

 

and also as

"https://api.wheniwork.com/2/login/"

 

Specifying cURL as

 

"--data username=user@example.com&password=*******"

  "-H W-Key&iworksoharditsnotfunny"

Outcomes