You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by chrishsr June 23, 2022
I'm fighting Bot accounts on my page, and an API endpoint to Block and report these users would make my life a lot easier.
Thanks in advance.
The text was updated successfully, but these errors were encountered:
defunblock(self, user_id : str) ->bool:
""" Unblock an Instagram user Parameters ---------- user_id: str User ID Returns ------- bool A boolean value """data= {"surface":"profile","is_auto_block_enabled":"true","user_id":user_id,"_uid":self.user_id,"_uuid":self.uuid}
response=self.private_request(f"friendships/unblock/{user_id}/",data=data)
returnresponse.get("friendship_status",{}).get("blocking") ==Falsedefblock(self, user_id : str) ->bool:
""" Block an Instagram user Parameters ---------- user_id: str User ID Returns ------- bool A boolean value """data= {"surface":"profile","is_auto_block_enabled":"true","user_id":user_id,"_uid":self.user_id,"_uuid":self.uuid}
response=self.private_request(f"friendships/unblock/{user_id}/",data=data)
returnresponse.get("friendship_status",{}).get("blocking")
Discussed in #740
Originally posted by chrishsr June 23, 2022
I'm fighting Bot accounts on my page, and an API endpoint to Block and report these users would make my life a lot easier.
Thanks in advance.
The text was updated successfully, but these errors were encountered: