The 7digital Android SDK enables you to you add functionality such as preview streams, music charts and metadata, search and purchasing to your app.
Full SDK documentation is available at http://7digital.github.io/7digital-Android-SDK/apidocs/
-
Register as a developer to get a key and secret at http://developer.7digital.com
-
Clone the repository, which includes a sample app
-
To run the sample app, change the appKey and appSecret in the Constants.java file to your own key and secret.
-
To use the SDK in your app, include the cloned repository as a module in Android Studio. Make sure to compile the 'sdk' module as a dependency.
dependencies { compile project(':sdk') }
-
Alternatively, a compiled .aar or .jar is available in the Releases tab.
To run the sample, or any of the sdk tests, you must add your test credentials to the projects gradle.properties file.
A sample gradle.properties file (gradle.properties.sample) is included.
Copy these varibles to your gradle.properties file and fill in your 7digital credentials.
To add purchasing simply integrate the 7digital Buy Button. This takes care of the checkout and music download process without sending users away to another site. For an example app, see the sample 7digital buy button app.