Sample android github API client, using streamdata.io
Switch branches/tags
Nothing to show
Clone or download
fzanaroli
Latest commit c5e8ef0 Dec 3, 2015
Permalink
Failed to load latest commit information.
app change EventSource implementation. Dec 3, 2015
gradle/wrapper first commit Jul 13, 2015
.gitignore code review Aug 14, 2015
GibHub client.iml first commit Jul 13, 2015
LICENSE first commit Jul 13, 2015
README.md Update README Aug 11, 2015
build.gradle first commit Jul 13, 2015
gradle.properties first commit Jul 13, 2015
gradlew first commit Jul 13, 2015
gradlew.bat first commit Jul 13, 2015
settings.gradle first commit Jul 13, 2015

README.md

Streamdata-android/github-android

This android application shows how to use the streamdata.io proxy in a sample app.

Streamdata.io allows to get data pushed from various sources and use them in your application. This sample application provides GiuHub repositories commits data, pushed by Streamdata.io proxy using Server-sent events.

License

To run the sample, you can clone this GitHub repository, and then open the project with Android Studio.

Add the Streamdata.io authentication token

Before running the project on a phone or emulator, you have to paste a token to be authenticated by the proxy, as well as a GitHub API token, which you can generate from the settings menu of github.com.

Modify res/values/config.xml on line 10 & 14 :

   <!--Streamdata.io app token, got from web portal -->
    <string name="streamdata_app_token">YOUR_STREAMDATA_APP_TOKEN</string>

    <!-- GitHub access token for public utilization
         this token allows only to read public repos-->
    <string name="github_public_token">GITHUB_API_PUBLIC_TOKEN</string>

    <!-- GitHub OAuth client public key  -->
    <string name="app_client_id">GITHUB_OAUTH_PUBLIC_KEY</string>

    <!-- GitHub OAuth client secret key  -->
    <string name="app_client_secret">GITHUB_OAUTH_PRIVATE_KEY</string>

To get a token, please sign up for free to the streamdata.io portal and follow the guidelines. You will find your token in the 'security' section.

Project dependencies

The application dependencies are available on GitHub

If you have any questions or feedback, feel free to contact us at support@streamdata.io

Enjoy!