Skip to content

how get user media(post) count #72

Description

@mohammad-rj

i get this response with trying getUser(), i need count post of user.
how can get that? i can feed by user and loop until end and counting media but this is a bad solution, is there any other way ?

Instagram\SDK\Response\Responses\Users\UserInformationResponse Object
(
    [user:Instagram\SDK\Response\Responses\Users\UserInformationResponse:private] => Instagram\SDK\Response\DTO\General\User Object
        (
            [id:Instagram\SDK\Response\DTO\General\User:private] => 7431104989
            [username:Instagram\SDK\Response\DTO\General\User:private] => krammpus_nacht
            [fullName:Instagram\SDK\Response\DTO\General\User:private] => Krammpus Nacht
            [isPrivate:Instagram\SDK\Response\DTO\General\User:private] =>
            [profilePictureUrl:Instagram\SDK\Response\DTO\General\User:private] =>
            [friendshipStatus:Instagram\SDK\Response\DTO\General\User:private] =>
            [isVerified:Instagram\SDK\Response\DTO\General\User:private] =>
            [hasAnonymousProfilePicture:Instagram\SDK\Response\DTO\General\User:private] =>
            [followerCount:Instagram\SDK\Response\DTO\General\User:private] => 908
            [followingCount:Instagram\SDK\Response\DTO\General\User:private] => 475
            [client:Instagram\SDK\Response\DTO\General\User:private] => Instagram\SDK\Client\Client Object
                (
                )

        )

    [client:Instagram\SDK\Response\Responses\Users\UserInformationResponse:private] => Instagram\SDK\Client\Client Object
        (
        )

    [status:protected] => ok
    [errorType:protected] =>
    [message:protected] =>
    [invalidCredentials:protected] =>
)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions