Skip to Content

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


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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Aug 23, 2017 at 05:27 PM

    Have you looked at the ConnectivityConfiguration API?

    What does the twitter library expect as input?

    Add comment
    10|10000 characters needed characters exceeded