04-18-2012 1:01 PM
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
04-18-2012 1:54 PM
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)
04-18-2012 2:02 PM
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
04-18-2012 2:23 PM
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)
04-19-2012 8:54 AM
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?
04-20-2012 3:20 PM
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