问题
I am trying to consume an API and the instructions are below:
To send authenticated requests, provide the client_id and client_secret values as a base64 encoded HTTP Authorization header.
curl --user {YOUR_CLIENT_ID}:{YOUR_CLIENT_SECRET} https://www.somewebsite.com/api-2.0/something
I am sending the request like this:
What am I doing wrong?
回答1:
Use the Basic Auth
in the Authorization
tab. If you add those details as the Username / Password it will create the Base64 encoded header for you and add this to the request.
The header
will look like this:
来源:https://stackoverflow.com/questions/48769575/postman-sending-request-with-headers