Coder Social home page Coder Social logo

sanardev / instagramapiforjava Goto Github PK

View Code? Open in Web Editor NEW
13.0 1.0 2.0 277 KB

Private Instagram Api for Java and Kotlin

License: MIT License

Kotlin 9.24% Java 90.76%
instagram java instagram-api instagram-client instagram-kotlin instagram-sdk instagram-java instagram-java-client instagram-private-api instagram-private

instagramapiforjava's Introduction

InstagramApiForJava

A complete Private Instagram API for Java and Kotlin.

Features

Some of features:

Login Logout Share media to direct thread
Edit profile Change/remove profile picture Get user tags by username
Get user timeline feed Get all user media by username Get media by its id
Get current user info Get current user media Get user info by its username
Get direct mailbox Get recent recipients Get ranked recipients
Like media Unlike media Follow user
Unfollow user Set account private Set account public
Delete comment Get inbox thread Send comment
Change password Send direct message Share story
Get location feed Collection create/get by id/get all/add items Send direct photo/video/ stories/profile/ link/location like/live

Version 2.0 Details:

  • [Add] currentUser
  • [Add] UnsendMessage in direct
  • [Add] Load More TimeLine Posts
  • [Add] Bundle To MediaOrAdd
  • [Add] Bundle To Thread
  • [Add] Get User Posts
  • [Add] Get Me
  • [Add] Get Thread By UserRecipient
  • [Add] Bundle To Message
  • [Add] ReelMentions to story
  • [Add] StoryPolls to story
  • [Add] ReelMentions To Story
  • [Add] StoryFeedMedia To Story
  • [Add] StoryHashtag To Story
  • [Add] StoryLocation To Story
  • [Add] StoryQuestion To Story
  • [Add] StoryQuiz To Story
  • [Add] StoryCountDown To Story
  • [Add] StorySlider To Story
  • [Add] StoryAntiBullySticker To Story
  • [Add] Put Vote Slider To StoryProcessor
  • [Add] MarkStoriesAsSeen To StoryProcessor
  • [Add] StoryQuestionResponse To StoryProcessor
  • [Add] StoryQuizAnswer To StoryProcessor
  • [Change] threadId type in shareStory
  • [Change] threadId type in shareMedia
  • [Change] model of lastPermanentItem in IGThread
  • [Bug Fixed] sendMediaImage in direct
  • [Bug Fixed] sendVoice in direct

Requirememt

RxJava RxAndroid

    implementation 'io.reactivex.rxjava2:rxjava:2.2.9'
    implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'

Gradle

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    kotlinOptions {
        jvmTarget = "1.8"
    }

Usage

Gradle

repositories {
    maven {
        url 'https://jitpack.io'
    }
}
dependencies {
    implementation 'com.github.SanarDev:InstagramApiForJava:2.0'
}

Use instance of InstaClient:

instaClient = InstaClient(applicationContext, "username","password");

Sample

Login Sample link

Two Step Auth Sample link

License

MIT.

Developer

Name Github Email Telegram
Behzad Arabi @Sanardev [email protected] https://t.me/theSanardev

instagramapiforjava's People

Contributors

sanardev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

instagramapiforjava's Issues

Cannot login when proguard enabled

when i develop with this library, i cannot login with release flavor which has proguard enabled.
when i develop with debug flavor it can login succesfully.

what i build is check feed by username

can you provide proguard rule for this library?

Login Not Work!

hello,
thank you for your library.

I login with this code:

InstaClient instaClient = new InstaClient(MainActivity.this,"username","password"); IGLoginResponse loginResponse = instaClient.accountProcessor.login().blockingFirst(); if(loginResponse.getStatus().toLowerCase().equals("ok")) { IGUserInfoResponse userInfoResponse =instaClient.userProcessor.getUserInfoByUsername("Mehrshad.rp78").blockingFirst(); }

login is ok but when get user info app catch and show this Message:
java.lang.RuntimeException: You must login first

please help me!

how to get all post or feed ?

is there a pagination in this method => instaClient.userProcessor.getPosts ("username") ?
it's give me 18 post from 60.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.