Okay, so. Yes, v2 endpoint with the v2 creator token. What was missing was the [post] after fields, which was not clear in the documentation.
However, it still did not work. I’m using the patreon/patreon ^1 composer library. Doing the request ends up with one of two errors depending on whether or not I run the URL through a urlencode.
Sending the following to the get_data method:
posts/99999999?fields[post]=title,content,is_paid,is_public,published_at,url,embed_data,embed_url,app_id,app_status
Without urlencode():
{
“errors”:[
{
“code”:1,
“code_name”:“Bad Request”,
“detail”:“Error trying to decode a non urlencoded string. Found invalid characters: {’[’, ‘]’} in the string: ‘fields[post]=title,content,is_paid,is_public,published_at,url,embed_data,embed_url,app_id,app_status’. Please ensure the request/response body is x-www-form-urlencoded.”,“id”:“40ac36eb-c95f-45ff-961a-3df198902955”,“status”:“400”,“title”:“Bad Request”
}
]
}
With urlencode():
{
“errors”:[
{
“code”:4,
“code_name”:“ResourceMissing”,
“detail”:“post with id 99999999?fields[post]=title,content,is_paid,is_public,published_at,url,embed_data,embed_url,app_id,app_status was not found.”,“id”:“02fab95f-665d-4bf1-8761-5b94ea14a697”,“status”:“404”,“title”:“post was not found.”
}
]
}
Yet, if I do the post without fields listed, I receive back a success, without data.