Access total_historical_amount_cents from current_user?

I’m trying to include total_historical_amount_cents in a call to current/user. So far I haven’t had any luck using the PHP library.

Similarly, I get a 400 error, “Invalid value for parameter ‘Unknown’.” When trying to add include variables to the PHP library call

https://www.patreon.com/api/oauth2/api/current_user?fields[user]=like_count,comment_count

 public function fetch_user($parse = true) {
    return $this->__get_data("current_user?fields[user]=like_count,comment_count", $parse);
  }
1 Like

Try This:
"current_user?fields%5Buser%5D=like_count,comment_count"

1 Like

That was it. Thanks!

I’m glad this post was here. Does the documentation actually say this anywhere? I think It’s kind of absurd the example they give you won’t work without percent-encoding…