User
Retrieves information about a Cow Clicker user.
Endpoint
http://api.cowclicker.com/api/
Parameters
passed via HTTP GET
name | type | description |
action | string | Must be set to the literal value "user" |
appid | string | Your application's unique identifier |
uid | long integer | The user id of the user to retrieve |
sig | string | Must be a valid request authentication token |
Returns
JSON object with the following members:
name | type | description |
uid | long integer | The user id of the user retrieved (use for verification) |
cow_image | string | Image URL for the user's current cow |
next_click | integer | Seconds remaining until the user's next eligible click in your application |
error | string | A JSON string with a description of the error. Only returned if an error occurs. |
Notes
User id is a standard Facebook user identifier. Implement Facebook's API or integrate with your existing Facebook application. |
You should cache these results for a single session to avoid unnecessary retrievals. Cow Clicker users change their cows often; the cow image URL is not guaranteed to be the same between sessions. |