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
-
Start with an existing project or create a new one
-
To import StreamHub-Android-SDK into your workspace go to: File > Import Project > General > Existing Project into Workspace
-
Browse and select StreamHub-Android-SDK; it should now show in the package explorer
-
Right click on your project and select properties then select Android tab
-
Under the Library section, select Add button then select StreamHub-Android-SDK from the list of libraries
-
Click on Apply and OK.
Steps to use in Android Studio:
Get the fresh StreamHub-Android-SDK from Github
-
Start with an existing project or create a new one
-
Right click on your project and select 'Open Module Settings'
-
Select the '+' button on the top left corner of window
-
Select "Import Existing Module"
-
Browse and select StreamHub-Android-SDK
- Android Studio may request to convert the SDK to gradle version; if this occurs, select next and finish
- 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.
-
Reviews Demonstrative Example: https://github.com/Livefyre/StreamHub-Android-Reviews-App
-
Comments Demonstrative Example: https://github.com/Livefyre/StreamHub-Android-SDK/tree/master/examples/commentstream
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
Copyright 2013 Livefyre Inc.
Licensed under the MIT License