Coder Social home page Coder Social logo

agamkoradiya / instadata Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 0.0 142 KB

Using this library you can get any Insta Profile Information.

License: MIT License

Kotlin 100.00%
instagram information profile android kotlin java androidlibrary library android-studio android-app

instadata's Introduction

InstaData

License: MIT

Setup

Add this to your project level build.gradle file

allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}

Add this to your module level build.gradle file

	dependencies {
	        implementation 'com.github.agamkoradiya:InstaData:0.1.0'
	}

How to use?

Kotlin

        InstaProfile.getInfo(this, "userName", object : InstaProfileListener {
            override fun onError(error: String?) {

            }

            override fun onSuccess(full_name: String?,
                                   followers: Int?,
                                   following: Int?, 
                                   profile_pic_url_hd: String?, 
                                   biography: String?, 
                                   external_url: String?, 
                                   is_private: Boolean?, 
                                   is_verified: Boolean?, 
                                   total_media_timeline: Int?, 
                                   total_video_timeline: Int?, 
                                   highlight_count: Int?) {
            }

        })
        

Java

InstaProfile.Companion.getInfo(this, "coding_boy_", new InstaProfileListener() {
            @Override
            public void onSuccess(String s, Integer integer, Integer integer1, String s1, String s2, String s3, Boolean aBoolean, Boolean aBoolean1, Integer integer2, Integer integer3, Integer integer4) {
                
            }

            @Override
            public void onError(String s) {

            }
        });

Change

public void onSuccess(String s, Integer integer, Integer integer1, String s1, String s2, String s3, Boolean aBoolean, Boolean aBoolean1, Integer integer2, Integer integer3, Integer integer4) {}

to

public void onSuccess(String full_name, Integer followers, Integer following, String profile_pic_url_hd, String biography, String external_url, Boolean is_private, Boolean is_verified, Integer total_media_timeline, Integer total_video_timeline, Integer highlight_count) {}

instadata's People

Contributors

agamkoradiya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.