InstagramApiSharp
                                
                                 InstagramApiSharp copied to clipboard
                                
                                    InstagramApiSharp copied to clipboard
                            
                            
                            
                        get post of specific user by username
hi every body i have a question about get post of specific user by username i want to know how this can be done ? tnx a lot
Hey, I think this might work:
string username = "elonmusk"
var currentUserMedia = await api.UserProcessor
   .GetUserMediaAsync(username, PaginationParameters.MaxPagesToLoad(5));
It returns type IResult<InstaMediaList>
So iiuc this will iterate through the uploaded posts.
foreach (var media in currentUserMedia.Value){
//Do stuff here
}
Code from Examples/Samples/Basics
I'd recommend looking at the examples.