Skip to Content
Aug 22, 2017 at 01:44 PM

How to connect Twitter Streaming API with Java on SAP Cloud Platform?

226 Views Last edit Aug 22, 2017 at 01:45 PM 2 rev


I developed an java application which can be executed on SAP Cloud Platform. In application, I am using twitter streaming api to connect and get twitter data. The related twitter library is hbc-twitter java library.

Connection is build in hbc java library. Therefore, I am not able to use destination on the server. Because the related java library can access the twitter apis.

I tried creating destinations and getting the HttpURLConnection object from java but I could not use the related http connection object to twitter hbc library.

How can I solve this issue on SAP Cloud Platform? In my localhost the application works fine. Any solutions?