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'
}
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?) {
}
})
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) {
}
});
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) {}