Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: image_url and image_small_url return the same value #83

Open
olafkotur opened this issue Feb 16, 2024 · 0 comments
Open

Question: image_url and image_small_url return the same value #83

olafkotur opened this issue Feb 16, 2024 · 0 comments

Comments

@olafkotur
Copy link

Looking specifically at the Campaign v2 attributes here: https://docs.patreon.com/#campaign-v2

The documentation suggests that the values should be as follows:

  • image_url: Banner image URL for the campaign
  • image_small_url: URL for the campaign's profile image

However, when calling the endpoints that have this resource, it always gives me the same value, which is the banner image. I've tried the following endpoints

  • https://www.patreon.com/api/oauth2/v2/campaigns
  • https://www.patreon.com/api/oauth2/v2/campaigns/{campaignId}

The campaign I'm getting these results for has the ID of 11652576.

For clarity, I'm calling both of these using the following encoded params and via fetch node

const params = new URLSearchParams({
   'fields[campaign]': 'url,vanity,patron_count,image_small_url,image_url',
});

const response = await fetch(`${url}?${params.toString()}`, {
   headers: { Authorization: `Bearer ${token}` },
});

I wasn't entirely sure if this was the right place for a bug report as I'm not using the patreon-js package, just the API directly - apologies in advance. Any help is greatly appreciated ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant