NicklasWallgren / instagram-api

Instagram Private API
MIT License
147 stars 47 forks source link

Get user info by username #33

Closed furkan6116 closed 3 years ago

furkan6116 commented 3 years ago

Hi ı just trying to get spesicified users profile picture and full name by username.

I searched everywhere but ı did not find anything about it.

Can anyone help me please

NicklasWallgren commented 3 years ago

Hey,

The library doesn’t include that particular functionality, but it’s pretty easy to extend. The endpoint in question is users/$username/usernameinfo/ which includes a user object in the response.

I might add it later this week.

Regards Nicklas

furkan6116 commented 3 years ago

Hey.

I really need that function, ı searched all php packages about instagram, but ı did not found anything. if you will extend that function to this project. It would be very good my friend.

Regards Furkan

NicklasWallgren commented 3 years ago

@furkan6116 Alright. I'll add the the functionality later today.

NicklasWallgren commented 3 years ago

Added in the latest release. Closing this issue.

patriotaki commented 3 years ago

how can this be used? how can we find which functions are available is there any documentation?

NicklasWallgren commented 3 years ago

@patriotaki You can use the userByName method, ie

$response = $instagram->userByName('dogsofinstagram');

There isn't any documentation available, but you can find all available methods using an IDE.