-
Notifications
You must be signed in to change notification settings - Fork 241
Account
Ramtin Jokar edited this page Dec 16, 2018
·
12 revisions
Account functions is in IInstaApi.AccountProcessor class.
Note: this is related to your own account. you can do these jobs with this class:
var requestForEditProfile = await InstaApi.AccountProcessor
.GetRequestForEditProfileAsync();
string name = "Ramtin Jokar"; // leave null if you don't want to change it
InstaGenderType? gender = InstaGenderType.Male; // leave null if you don't want to change it
string email = "[email protected]"; // leave null if you don't want to change it
string url = ""; // leave empty if you have no site/blog | leave null if you don't want to change it
string phone = "+989171234567"; // leave null if you don't want to change it
string biography = "C# Programmer\n\nIRaN/FARS/KaZeRouN"; // leave null if you don't want to change it
string newUsername = ""; // leave empty if you don't want to change your username
var editProfile = await InstaApi.AccountProcessor
.EditProfileAsync(name, biography, url, email, phone, gender, newUsername);
string name = "Ramtin Jokar";
string phone = "+989171234567";
var setNameAndPhone = await InstaApi.AccountProcessor
.SetNameAndPhoneNumberAsync(name, phone);
string bio = "C# Programmer\n\nIRaN/FARS/KaZeRouN";
var setBiography = await InstaApi.AccountProcessor
.SetBiographyAsync(bio);
var picturePath = @"c:\someawesomepicture.jpg";
var pictureBytes = File.ReadAllBytes(picturePath);
var changeProfilePicture = await InstaApi.AccountProcessor
.ChangeProfilePictureAsync(pictureBytes);
Note: only JPG and JPEG format will accept it in instagram!
var removeProfilePicture = await InstaApi.AccountProcessor
.RemoveProfilePictureAsync()
var storySettings = await InstaApi.AccountProcessor
.GetStorySettingsAsync();
You can find more functions in: Story settings functions
var user = "rmt4006";
var checkUsername = await InstaApi.AccountProcessor
.CheckUsernameAsync(user);
You can find other functions like security settings(enable/disable two factor and get two factor backup codes). in this class:
Iranian Developers (c) 2021 | Bahar 1400