platform-documentation
platform-documentation copied to clipboard
Question: `image_url` and `image_small_url` return the same value
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 ❤️