![]() ![]() If you did not manage to receive push message using provided example, take a look the Streamdata.io Documentation or contact us before going further. Of course, if your API requires more URL parameters, you can add them at the end. X-Sd-Token= – The Streamdata.io token identifying your application.– The URL of the JSON API you wan’t to subscribe to.– Streamdata.io proxy prefix (DO NOT change it!).Here is an example of a call that you can do in a shell: curl Īs you have understood, this URL request is composed of three parts: To do this, you have to pass a URL parameter named X-Sd-Token. You can try your token by using a CURL request in a shell. Once registered on our Portal, you can create an application or use the default one to get your own App Token. Streamdata.io requires an App Token to accept requests from a client. tThreadPolicy(policy) Streamdata.io proxy authentication If you wish to handle your event source in the activity main thread, you’ll need to add the following instructions at the beginning of the onCreate() android callback: StrictMode.ThreadPolicy policy = new ().permitAll().build() In order to use Eventsource, you should create and connect the event source from a separate thread. To perform networking operations, your application manifest must include the following permissions: ![]() Subscribe to an API Allowing network operations ![]() Streamdata.io needs three Java external dependencies. We will focus first on how to use Streamdata.io with Java Android. Please follow this guide to install Android Studio. Receive messages from Streamdata.io proxy. ![]() In this article, we will walk through a step-by-step tutorial on developing a GitHub Android Client App that provides real-time notifications when commits are pushed to repositories, thanks to streamdata.io service. You can request a proxy from different contexts and using different languages. Streamdata.io is a service acting as a reverse proxy that translates REST API into a stream of data. ![]()
0 Comments
Leave a Reply. |