How to add an authentication header for ChainLink API requests?
For example, this guide on connecting ChainLink to Twitter API to post a tweet doesn't implement anything of the sort, so how would it post the tweet?
Thank you.
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.
Sign up to join this communityHow to add an authentication header for ChainLink API requests?
For example, this guide on connecting ChainLink to Twitter API to post a tweet doesn't implement anything of the sort, so how would it post the tweet?
Thank you.
You use an external adapter.
The node side has the OAuth information. So you don't add the information into the smart contract itself.
You can check out the Twitter External Adapter and see that all the password information is actually stored on the node, and the jobId on the node is associated with the external adapter.