Skip to content

krissunilm/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/

Install Android Studio Here.

Get the fresh StreamHub-Android-SDK from Github.

Steps to run streamHub-android-sdk and sample apps

  1. Open Android Studio.

  2. Select 'Open an Android Studio project'.

  3. Browse and select StreamHub-Android-SDK -> select Ok.

Steps to use streamHub-android-sdk in your Android Studio project:

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

  2. Select File -> New -> Import Module.

  3. Select the browse option(...) next to the 'Source Directory'.

  4. Select streamHub-android-sdk in StreamHub-Android-SDK (.../StreamHub-Android-SDK/streamHub-android-sdk).

  5. Add the dependency by going to project folder -> "app"(Your Module Name) folder -> "build.gradle" file under dependencies as follows:

dependencies {
  compile project(':streamhub-android-sdk')
}
  1. Make sure that the following line is in your project folder -> settings.gradle file
include ':streamhub-android-sdk'

Note: You can customize configurations from within LivefyreConfig.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 (c) 2015 Livefyre, Inc.

Licensed under the MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Make Android apps powered by Livefyre StreamHub

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%