instauto.api.actions package
instauto.api.actions.authentication module
instauto.api.actions.challenge module
instauto.api.actions.direct module
- class instauto.api.actions.direct.DirectMixin
Bases:
StubMixin
- device_profile: DeviceProfile
- direct_get_thread(obj: DirectThread) Thread
Retrieve more information about a thread.
If this thread exists in the inbox, it will be updated. If not, it will be added to the thread lists.
- Returns
The retrieved thread.
- Return type
- direct_send(obj: Union[Message, MediaShare, LinkShare, ProfileShare, DirectPhoto, DirectVideo]) Response
Send a message to a thread.
- direct_update_inbox() bool
Request your inbox status from Instagram.
Updates the threads with a distinct set of the old & new threads. Overwrites all other properties.
- Returns
True if the inbox has been updated
- Return type
bool
- property inbox
instauto.api.actions.friendships module
- class instauto.api.actions.friendships.FriendshipsMixin
Bases:
StubMixin
- device_profile: DeviceProfile
- follow_request_approve(obj: ApproveRequest) Response
Accept a follow request/
- follow_requests_get(obj: PendingRequests) List[dict]
Retrieve all follow requests
- follower_remove(obj: Remove) Response
Remove someone from your followers list, that is currently following you
- follower_show(obj: Show) Response
Retrieve information about a user
- followers_get(obj: GetFollowers) Tuple[GetFollowers, Union[Response, bool]]
Retrieves the followers of an Instagram user.
- Returns
(GetFollowers, Response || bool): A tuple that contains the object that was passed in as an argument, but with updated max_id and page attributes, and the response or False. If the second item is False, there were no more items available.
- following_get(obj: GetFollowing) Tuple[GetFollowing, Union[Response, bool]]
Retrieves the following of an Instagram user.
- Returns
A tuple that contains the object that was passed in as an argument, but with updated max_id and page attributes, and the response or False. If the second item is False, there were no more items available.
- Return type
(GetFollowing, Response || bool)
- user_follow(obj: Create) Response
Follow a user
- user_unfollow(obj: Destroy) Response
Unfollow a user
instauto.api.actions.helpers module
instauto.api.actions.post module
- class instauto.api.actions.post.PostMixin
Bases:
StubMixin
- device_profile: DeviceProfile
- post_archive(obj: Archive) Response
- post_carousel(posts: List[PostFeed], caption: str, quality: int) Dict[str, Response]
- post_comment(obj: Comment) Response
Comments on a post
- post_get_commenters(obj: RetrieveCommenters) List[Dict]
- post_get_comments(obj: RetrieveComments) Response
- post_get_likers(obj: RetrieveLikers) List[Dict]
Retrieve all likers of specific media_id
- post_like(obj: Like) Response
Likes a post
- post_post(obj: Union[PostStory, PostFeed, PostNull], quality: Optional[int] = None) Response
Uploads a new picture/video to your Instagram account. :param obj: Should be instantiated with all the required params :type obj: Post :param quality: Quality of the image, defaults to 70. :type quality: int
- Returns
The response returned by the Instagram API.
- Return type
Response
- post_retrieve_by_id(obj: RetrieveById) Response
- post_retrieve_by_tag(obj: RetrieveByTag) Tuple[RetrieveByTag, Union[dict, bool]]
- post_retrieve_by_user(obj: RetrieveByUser) Tuple[RetrieveByUser, Union[dict, bool]]
Retrieves 12 posts of the user at a time. If there was a response / if there were any more posts available, the response can be found in original_requests/post.json:4
- Returns
Will return the updated object and the response if there were any posts left, returns the object and False if not.
- Return type
PostRetrieveByUser, (dict, bool)
- post_retrieve_story(obj: RetrieveStory) Response
- post_save(obj: Save) Response
Saves a post to your Instagram account
- post_unarchive(obj: Unarchive) Response
- post_unlike(obj: Unlike) Response
Unlikes a post
Updates the caption of a post
instauto.api.actions.profile module
- class instauto.api.actions.profile.ProfileMixin
Bases:
StubMixin
- device_profile: DeviceProfile
- profile_info(obj: Info) Union[Dict, int]
- profile_set_biography(obj: SetBiography) Response
Sets the biography of the currently logged in user
- profile_set_gender(obj: SetGender) Response
Sets the gender of the currently logged in user
- profile_set_picture(obj: SetPicture) Response
- profile_update(obj: Update)
Updates the name, username, email, phone number and url for the currently logged in user.