Open jeherve opened 7 years ago
Related: #7059
This issue has been marked as stale. This happened because:
No further action is needed. But it's worth checking if this ticket has clear reproduction steps and it is still reproducible. Feel free to close this issue if you think it's not valid anymore — if you do, please add a brief explanation.
FYI (came across this via search) - I think you can work around the argument limit with something like this:
stats_get_from_restapi( array(), 'top-posts?max=100&summarize=1&num=2' );
This issue has been marked as stale. This happened because:
No further action is needed. But it's worth checking if this ticket has clear reproduction steps and it is still reproducible. Feel free to close this issue if you think it's not valid anymore — if you do, please add a brief explanation.
wpcom_json_api_request_as_blog()
is currently used by Jetpack itself, but can also be used by third-party plugin authors via functions likestats_get_from_restapi()
.Unfortunately, one cannot make custom API queries via
stats_get_from_restapi()
right now, because the query parameters are filtered out here: https://github.com/Automattic/jetpack/blob/4.4.2/class.jetpack-client.php#L273Would it be possible to allow more parameters, so one can do requests like this for example:
Reported in 2872802-t