How to get your own id?

I succesfully integrated the OAuth in my website, but when I login, I see in “cincluded” the list of all the Patreon campaigns I supported.

For example:
[included] => Array{
[0] => stdClass Object
(
[attributes] => stdClass Object
(
[currently_entitled_amount_cents] => 0
[last_charge_date] => 2019-01-02T03:00:10.000+00:00
[last_charge_status] => Paid
[lifetime_support_cents] => 700
[patron_status] => former_patron
[pledge_relationship_start] => 2018-06-04T14:02:20.539+00:00
)

                [id] => 01631a4a-f848-41c9-ac71-12REDACTED3cf
                [type] => member
            )

How can I know which ID is my site?
You know, this part:

01631a4a-f848-41c9-ac71-12REDACTED3cf

I am using PHP, and this is my cal to fetch the user:

return $this->get_data(‘identity?include=memberships&fields’.urlencode(’[user]’).’=email,first_name,full_name,image_url,last_name,thumb_url,url,vanity,is_email_verified&fields’.urlencode(’[member]’).’=currently_entitled_amount_cents,lifetime_support_cents,last_charge_status,patron_status,last_charge_date,pledge_relationship_start’);

In identity resource, it should come in user info. The member id is specific to membership so its not that.

I don’t see that.

I am helping a friend, so I made a pledge to his Patreon, and when I login to his site, I get only the pledge to that user.

So I guess that when I login using my own account, I see all of my memberships, and when I login to another account, I see only that Patreon’s account.

But I do not see anything in identity resources. here is, with some info redacted, the output I get (links edited due to rescriptions of this board:

[data] => stdClass Object
(
[attributes] => stdClass Object
(
[first_name] => Martin-Pierre
[full_name] => Martin-Pierre Frenette
[image_url] => [thumbnail]
[last_name] => Frenette
[thumb_url] => [thumbnail]
[url] => [https]www.patreon.com/mpfrenette
[vanity] => mpfrenette
)

        [id] => 6630104
        [relationships] => stdClass Object
            (
                [memberships] => stdClass Object
                    (
                        [data] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [id] => d8785819-d233-47ba-a32c-REDACTED
                                        [type] => member
                                    )

                            )

                    )

            )

        [type] => user
    )

[included] => Array
    (
        [0] => stdClass Object
            (
                [attributes] => stdClass Object
                    (
                        [currently_entitled_amount_cents] => 100
                        [last_charge_date] => 2021-04-02T19:53:31.000+00:00
                        [last_charge_status] => Paid
                        [lifetime_support_cents] => 100
                        [patron_status] => active_patron
                        [pledge_relationship_start] => 2021-04-02T19:53:31.000+00:00
                    )

                [id] => d8785819-d233-47ba-a32c-REDACTED
                [type] => member
            )

    )

[links] => stdClass Object
    (
        [self] => [https-patreron]api/oauth2/v2/user/REDACTED
    )

)

Ok, so my hypothesis is this:

When I logged in to my own site, using my own credentials, I see my Patreon Creator account, and as such, I see all of the people I support on Patreon.

When I log in to my friend’s site, despite is being the same user, it is my supporter Patreon account, so I only see the pledge of my friend’s account.

Yes, you need your friend’s creator access token to access his Patreon campaign. If you have him authorize your app via a normal access token though, you could get his id from his user by using that token.