Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Sending tweets from ABAP using class CL_HTTP_CLIENT

Former Member
0 Kudos

Hi all,

Does anyone know how we can send tweets from ABAP programs(not using TWIBAP)?I tried to do it using the class CL_HTTP_CLIENT but it did not work. I would appreciate sample code or help. Thanks

Kind Regards

Sukru

5 REPLIES 5

UweFetzer_se38
Active Contributor
0 Kudos

Hi Sukru,

sending tweets without Twibap isn't easy, because you have to develop the OAuth functions first (see Twibap wiki https://cw.sdn.sap.com/cw/groups/twibap and Twitter API docu https://dev.twitter.com/docs) to authenticate your system/user to Twitter.

So my suggestion: use Twibap and you are fine.

Best regards
Uwe Fetzer (@se38)

0 Kudos

Hi Uwe,

Thanks a lot for your answer. Is it possible to upload TWIBAP in an SAP system easily?I would appreciate a guideline or example about how to upload it in my SAP system and using it. Thanks a lot in advance

Kind Regards

Sukru

0 Kudos

Hi Sukru,

like I can see, you are already a member of Twibap project (good decision )

Valid for all SAP Code Exchange ABAP projects:
- install SAPLINK https://cw.sdn.sap.com/cw/groups/saplink
- install SAPLINK plugins https://cw.sdn.sap.com/cw/groups/saplink-plugins

For Twibap
- install JSON Document class https://cw.sdn.sap.com/cw/groups/zjson
- install OAuth library https://cw.sdn.sap.com/cw/groups/zoauth
- install Twibap https://cw.sdn.sap.com/cw/groups/twibap

Configuration and testing is described in the Twibap wiki

Have fun
Uwe Fetzer (@se38)

0 Kudos

Hi Uwe,

Vielen Dank:)It took some time to install all but it works now. I could read home timeline and public timeline and list them. Just when I try to send a tweet, a user/password dialog box pops up and asks me for password althought I entered the Twitter User Name and password I have entered in second report of your Twibap User Guideline. SAP Username / password combination does not work too. Do you have any idea about what kind of user/password combination is asked?Thanks a lot for your help

By the way, is it also possible to use the Streaming API of Twitter with TWIBAP?

0 Kudos

Hi Sukru,

1st: no, the streaming API is not implemented (I don't think this is possible).

The user/password popup will only come in case there is something wrong with the OAuth authentication (popup should not appear). Have you checked the server time and the OAuth keys?

Regards, Uwe