NicklasWallgren
NicklasWallgren
Hmm, not that I'm aware of. The library mimics the IOS application, which only supports authentication via user credentials and nonce, as far as I know.
The nonce token is returned by the logout api endpoint, and enables on-click-login, so that the end user can easily switch between user accounts in the application.
Hey, not as of yet. I'm might add it as a feature during the upcoming hacktoberfest.
It's possible, the raw response from the api includes additional fields such as contact information, but the information is not exposed in the `Instagram\SDK\Response\DTO\General\User` class. A PR is welcome.
The raw response for `$instagram->userByName('dogsofinstagram');` looks like below. You need to extend `Instagram\SDK\Response\DTO\General\User` with additional fields, like for example `$publicEmail` or `$publicPhoneNumber`, and then expose them via getters. ``` {...
What methods are you referring to? You're able to add and remove followers. Have a look at https://github.com/NicklasWallgren/instagram-api/blob/master/src/Traits/MakeFriendshipsRequestsAccessible.php
Alright, the following example seems to work. You are welcome to create a PR. The response looks like this. ``` { "friendship_statuses":{ "2108351612":{ "following":true, "is_private":false, "incoming_request":false, "outgoing_request":false, "is_blocking_reel":false, "is_muting_reel":false, "is_bestie":true,...
@hussainsheikh048 Does the `ApiResponseException` contain any descriptive error message?
Thanks. It's a bit strange, it works fine on my end, with the code posted above. ``` $instagram->addBestFriend(['2108351612']); ``` Could you dump the whole response body?
> What php version you’re using? > […](#) > Sent from my iPhone > On 19-Jul-2021, at 12:01 AM, NicklasWallgren ***@***.***> wrote: Thanks. It's a bit strange, it works...