Access total_historical_amount_cents from current_user?


#1

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);
  }

#3

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


#4

That was it. Thanks!