Hi Team ,
I have configured developer account on X and have access for necessary keys .
1.Trying to call "https://api.twitter.com/2/tweets " with required inputs but its failing always with unauthorized error . Yes I am not clear on how to pass OAuth type to 1.0 in outsystems
2. the same endpoint is working fine in postman
need help to understand how we can make the same endpoint working in outsustems.
Thanks,
Santosh
Please have a look at this documentation.
curl --request POST \ --url 'https://api.x.com/1.1/statuses/update.json?status=Hello%20world' \ --header 'authorization: OAuth oauth_consumer_key="CONSUMER_API_KEY", oauth_nonce="OAUTH_NONCE", oauth_signature="OAUTH_SIGNATURE", oauth_signature_method="HMAC-SHA1", oauth_timestamp="OAUTH_TIMESTAMP", oauth_token="ACCESS_TOKEN", oauth_version="1.0"' \
pay attention to the header section you need to pass these values in the header when consumed from OutSystems.
Thanks a lot Siya , I forgot to check the request format from that document earlier .
Hi,
To add to what Siya shared, here is documented how to added headers to the API Method call.
https://success.outsystems.com/documentation/10/extensibility_and_integration/rest/consume_rest_apis/simple_customizations/
Regards,
Daniel
Thanks Daniel for your input .