1

I need to be able to include an API key as a header within my GET request to an api using oraclize in solidity.

The oraclize documentation states that you can define arguments to send however, you must add them to a second bracket and by doing so, this makes the request a POST request.

When I try to do this, the API responds saying I have not included my key as a header.

Is this possible?

1

You can do this by using the computation query. They wrote a library for people to use. https://github.com/oraclize/ethereum-examples/blob/master/solidity/computation-datasource/url-requests/urlRequests.sol

| improve this answer | |
0

Reply to @jazzhole answer. the repo got updated , here is the updated link

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.