/instagram-sdk

An unofficial Instagram SDK for Android written in Kotlin.

Primary LanguageKotlinMozilla Public License 2.0MPL-2.0

kHttp

Instagram-SDK

An unofficial Instagram SDK for Android written in Kotlin.

Kotlin Build Status Codecov GitHub (pre-)release

GETTING STARTED

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]"
}

USAGE

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")

CONTRIBUTING

There are many ways to contribute, you can

  • submit bugs,
  • help track issues,
  • review code changes.