InstaPublicApi class

Create a constructor by passing username

Constructors

InstaPublicApi(String username, {int postsLimit = 100})

Properties

hashCode int
The hash code for this object.
no setterinherited
postsLimit int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
username String
final

Methods

checkPrivate(bool isPrivate) → void
Checks if the account is private
fetchNextResponse(String? id, String endCursor) Future<String>
For getting next response
fetchResponse() Future<String>
For Getting initial JSON
getAllPosts() Future<List<Post>>
Get all posts
getBasicInfo() Future<BasicInfo>
Returns Basic info like isPrivate, isVerified, profilePic, noOfPosts
getNestedPosts(List<EdgeOwnerToTimelineMediaEdge> edges) List<Post>
Get Nested Posts
getProfilePic() Future<String?>
Returns Profile Pic of the user
getTimelinePosts() Future<List<Post>>
Returns first 12 Posts and its details e.g. likes, comments, caption etc.
getTimelinePostsImages() Future<List<String?>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited