Barn
Retrieves the cows owned by a particular 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 "barn" |
appid | string | Your application's unique identifier |
uid | long integer | The user id of the user retrieved (use for verification) |
sig | string | Must be a valid request authentication token |
Returns
JSON object with the following members:
name | type | description |
cows | An array of JSON objects containing cow_name, cow_image, and retired fields. | { "cow_name": "Sample Cow", "cow_image": "http://host/cow.png", "retired": false } |
error | string | A JSON string with a description of the error. Only returned if an error occurs. |
Notes
Cow images are 165x179 pixel PNG files with transparency. |
Applications that load cow images via URLs returned from this method must cache the resulting images to avoid unnecessary retrieval. |