Skip to content

Commit

Permalink
Merge pull request #1494 from SaeidB/master
Browse files Browse the repository at this point in the history
Update account.py
  • Loading branch information
adw0rd authored Jul 28, 2023
2 parents f90289b + cb4c1df commit cba265f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions instagrapi/mixins/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,16 @@ def account_info(self) -> Account:
result = self.private_request("accounts/current_user/?edit=true")
return extract_account(result["user"])


def set_external_url(self, external_url) -> dict:
"""
Set new biography
"""

signed_body = f"signed_body=SIGNATURE.%7B%22updated_links%22%3A%22%5B%7B%5C%22url%5C%22%3A%5C%22{external_url}%5C%22%2C%5C%22title%5C%22%3A%5C%22%5C%22%2C%5C%22link_type%5C%22%3A%5C%22external%5C%22%7D%5D%22%2C%22_uid%22%3A%22{self.user_id}%22%2C%22_uuid%22%3A%22{self.uuid}%22%7D"
return self.private_request('accounts/update_bio_links/', data = signed_body, with_signature = False)


def account_set_private(self) -> bool:
"""
Sets your account private
Expand Down

0 comments on commit cba265f

Please sign in to comment.