anuj607 / google-api-php-client

Automatically exported from code.google.com/p/google-api-php-client
Apache License 2.0
0 stars 0 forks source link

Create a config parameter for sending the userIp parameter. #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
We can limit the number of requests per second per user for an API  to prevent 
individual users from eating up API quota.

Documentation. https://code.google.com/apis/console-help/#PreventMonopolizing

Simply need to add the userIp query parameter.

Original issue reported on code.google.com by chirags@google.com on 23 Sep 2011 at 1:33

GoogleCodeExporter commented 9 years ago
You can pass the UserIP in the parameters. It will be added correctly to the 
query string.

Example:
$params = array("maxResults" => 100, "userIp" => $user_ip);
$activity_list = $plus->activities->listActivities($user_id, "public", $params);

Original comment by scaryg...@gmail.com on 26 Sep 2011 at 9:57

GoogleCodeExporter commented 9 years ago
Thanks gerwin! Seems like we can fix this with docs then. 

Original comment by ianbar...@google.com on 22 Mar 2013 at 1:34