InstagramApiSharp documentation.
This documentation refers to InstagramApiSharp private version
Quick Start
- A quick example of InstagramApiSharp's usage:
IInstaApi instaApi = InstaApiBuilder.CreateBuilder()
.SetUser(UserSessionData.ForUsername("Username").WithPassword("PASSWORD"))
.SetSessionHandler(new FileSessionHandler { FilePath = "SESSION.bin" })
.Build();
var loginResult = await instaApi.LoginAsync();
if (loginResult.Succeeded)
{
Console.WriteLine("User logged in successfully.");
}
else
{
Console.WriteLine($"Couldn't sign-in, Result: {loginResult.Value}");
}