19
Views
4
Comments
Solved
Integrating X (twitter) api in reactive app
Question
Application Type
Reactive

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

2019-01-07 16-04-16
Siya
 
MVP
Solution

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.

2020-05-21 04-56-19
Santosh Chanveer

Thanks a lot Siya , I forgot to check the request format from that document earlier . 

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP
Solution

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

2020-05-21 04-56-19
Santosh Chanveer

Thanks Daniel for your input .

2019-01-07 16-04-16
Siya
 
MVP
Solution

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.

2020-05-21 04-56-19
Santosh Chanveer

Thanks a lot Siya , I forgot to check the request format from that document earlier . 

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP
Solution

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

2020-05-21 04-56-19
Santosh Chanveer

Thanks Daniel for your input .

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.