An unofficial Instagram SDK for Android written in Kotlin.
Instagram-SDK (pre-)releases are available via JitPack. It is recommended that a specific release version is selected when using the library in production as there may be breaking changes at anytime.
Tip: Test out the canary channel to try out features by using the latest develop snapshot;
develop-SNAPSHOT
.
// Project level build.gradle
// ...
repositories {
maven { url 'https://jitpack.io' }
}
// ...
// Module level build.gradle
dependencies {
// Replace version with release version, e.g. 1.0.0-alpha, -SNAPSHOT
implementation "io.karn:instagram-sdk:[VERSION]"
}
The most basic case is as follows:
// Initialize the SDK -- do this before attempting to use the rest of the SDK functions. Use the application context
// and not a wrapper to ensure that the displayMetrics object is available.
Instagram.init(context)
// Attempt to sign-in to an account.
val res = Instagram.getInstance().authentication.authenticate("username", "password")
// Print the response.
Log.v("SDK", "Auth Response: $res")
There are many ways to contribute, you can
- submit bugs,
- help track issues,
- review code changes.