# Is the user subscribed on my campaign?

**URL:** <https://www.patreondevelopers.com/t/is-the-user-subscribed-on-my-campaign/8649>\
**Category:** Friendly Help\
**Created:** [March 4, 2024, 1:53pm UTC](https://www.patreondevelopers.com/t/is-the-user-subscribed-on-my-campaign/8649 "2024-03-04T13:53:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dmitrii](https://avatars.discourse-cdn.com/v4/letter/d/9fc29f/32.png) [@Dmitrii](https://www.patreondevelopers.com/u/Dmitrii)\
**Post date:** [March 4, 2024, 1:53pm UTC](https://www.patreondevelopers.com/t/is-the-user-subscribed-on-my-campaign/8649/1 "2024-03-04T13:53:15Z")

</div>

Hi lads,  
I have my OAuth CLient App that has user’s access\_token.

So my task then is to check if the user who consented to give his access to Patreon is subscribed (has paid subscription) on my campaign (for example Campaign B) or not.

Could you guide me through choosing relevant scope in initial OAuth Request and then help me with forming the complete query URL? Because during the API call I always get notified that I form Bad Request 400 error code.

---

<div class="post-metadata">

**Author:** ![codebard](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/codebard/32/14_2.png) [@codebard](https://www.patreondevelopers.com/u/codebard)\
**Post date:** [March 5, 2024, 6:50pm UTC](https://www.patreondevelopers.com/t/is-the-user-subscribed-on-my-campaign/8649/2 "2024-03-05T18:50:52Z")

</div>

Check out the examples in the easy to read PHP lib:

> **[GitHub - Patreon/patreon-php: Interact with the Patreon API via OAuth](https://github.com/Patreon/patreon-php)**
>
> Interact with the Patreon API via OAuth. Contribute to Patreon/patreon-php development by creating an account on GitHub.

It has various examples for all use cases.

---

<div class="post-metadata">

**Author:** ![Dmitrii](https://avatars.discourse-cdn.com/v4/letter/d/9fc29f/32.png) [@Dmitrii](https://www.patreondevelopers.com/u/Dmitrii)\
**Post date:** [March 6, 2024, 11:01am UTC](https://www.patreondevelopers.com/t/is-the-user-subscribed-on-my-campaign/8649/3 "2024-03-06T11:01:46Z")

</div>

I’ve checked the “examples” folder and tbh I don’t see relevant to my task API calls examples except the fetch\_user request fulfilled with fetch\_user method. Anyway I don’t wanna install the entire Patreon API package in order to execute only 1 API call.

Could you please be more specific?

---

<div class="post-metadata">

**Author:** ![codebard](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/codebard/32/14_2.png) [@codebard](https://www.patreondevelopers.com/u/codebard)\
**Post date:** [March 12, 2024, 9:54pm UTC](https://www.patreondevelopers.com/t/is-the-user-subscribed-on-my-campaign/8649/4 "2024-03-12T21:54:04Z")

</div>

The readme itself has an example for having users log into your app. Then you can use fetch user to fetch user details, including patronage and others as can be seen in the examples.

> Anyway I don’t wanna install the entire Patreon API package in order to execute only 1 API call.

The entire lib is tiny so you should be able to put it in anywhere.
