项目作者: agamkoradiya

项目描述 :
Using this library you can get any Insta Profile Information.
高级语言: Kotlin
项目地址: git://github.com/agamkoradiya/InstaData.git
创建时间: 2020-08-17T16:27:07Z
项目社区:https://github.com/agamkoradiya/InstaData

开源协议:MIT License

下载


InstaData

License: MIT

Setup

Add this to your project level build.gradle file

  1. allprojects {
  2. repositories {
  3. ...
  4. maven { url 'https://jitpack.io' }
  5. }
  6. }

Add this to your module level build.gradle file

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

How to use?

Kotlin

  1. InstaProfile.getInfo(this, "userName", object : InstaProfileListener {
  2. override fun onError(error: String?) {
  3. }
  4. override fun onSuccess(full_name: String?,
  5. followers: Int?,
  6. following: Int?,
  7. profile_pic_url_hd: String?,
  8. biography: String?,
  9. external_url: String?,
  10. is_private: Boolean?,
  11. is_verified: Boolean?,
  12. total_media_timeline: Int?,
  13. total_video_timeline: Int?,
  14. highlight_count: Int?) {
  15. }
  16. })

Java

  1. InstaProfile.Companion.getInfo(this, "coding_boy_", new InstaProfileListener() {
  2. @Override
  3. 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) {
  4. }
  5. @Override
  6. public void onError(String s) {
  7. }
  8. });

Change

  1. 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

  1. 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) {}