Skip to content

billhibazzz/StreamHub-Android-SDK

 
 

Repository files navigation

StreamHub-Android-SDK

Make Android apps powered by Livefyre StreamHub

Read the docs: http://livefyre.github.com/StreamHub-Android-SDK/

This StreamHub-Android-SDK can be used for both Eclipse and Android Studio

Steps to use in Eclipse:

Get the fresh StreamHub-Android-SDK from Github

  1. Start with an existing project or create a new one

  2. To import StreamHub-Android-SDK into your workspace go to: File > Import Project > General > Existing Project into Workspace

  3. Browse and select StreamHub-Android-SDK; it should now show in the package explorer

  4. Right click on your project and select properties then select Android tab

  5. Under the Library section, select Add button then select StreamHub-Android-SDK from the list of libraries

  6. Click on Apply and OK.


Steps to use in Android Studio:

Get the fresh StreamHub-Android-SDK from Github

  1. Start with an existing project or create a new one

  2. Right click on your project and select 'Open Module Settings'

  3. Select the '+' button on the top left corner of window

  4. Select "Import Existing Module"

  5. Browse and select StreamHub-Android-SDK

  • Android Studio may request to convert the SDK to gradle version; if this occurs, select next and finish
  1. Add the following dependency by going to project folder -> "app" folder -> "build.gradle" file under dependencies as follows:
dependencies {
  compile project(':streamHubAndroidSDK')
}

Make sure that the following line is in your project folder -> settings.gradle file

include ':streamHubAndroidSDK'

Note: You can customize configurations from within Config.java.

Sample App

SDK Client Classes

The StreamHub Android SDK exposes several Client classes that can be used to request StreamHub APIs.

  • AdminClient - Exchange a user authentication token for user information, keys, and other metadata

  • BootstrapClient - Get recent Content and metadata about a particular Collection

  • StreamClient - Poll a stream for a collection to retrieve new, updated, and deleted content

  • WriteClient - Post content, flag content, like content in a collection

License

Copyright 2013 Livefyre Inc.

Licensed under the MIT License

About

Make Android apps powered by Livefyre StreamHub

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%