Messages
GET /messages
Parameters
- team_short_name – (required) Team nickname
- start_date – (required) Game date
- page – (optional) Number specifying results page
- per_page – (optional) Number specifying results per page
Example
Get all messages for a Game by specifying a team name and date, like this:
$ curl http://fanvibe.com/api/messages.xml?team_short_name=Bulls&start_date=2010-12-13T17:00:00-08:00
Or, get all messages for a Game by specifying the game_id, like this:
$ curl http://fanvibe.com/api/messages.xml?game_id=175627 <?xml version="1.0" encoding="UTF-8"?> <messages> <game_id>175627</game_id> <count>2</count> <message> <id>3899</id> <content>Hello, World!</content> <created_at>2010-09-28T15:00:50-07:00</created_at> <user> <id>2</id> <first_name>First</first_name> <last_name>Last</last_name> <profile_link>http://fanvibe.com/users/2</profile_link> <status>I'm watching Athletics vs Angels</status> <points>3</points> <rank>1</rank> <avatar_url>http://s3.amazonaws.com/user_avatars_production/avatars/3899/large.png?1272476980</avatar_url> <twitter_user>true</twitter_user> </user> </message> <message> <id>3900</id> <content>Goodbye, World!</content> <created_at>2010-09-28T15:01:50-07:00</created_at> <user> <id>2</id> <first_name>First</first_name> <last_name>Last</last_name> <profile_link>http://fanvibe.com/users/2</profile_link> <status>I'm watching Athletics vs Angels</status> <points>3</points> <rank>1</rank> <avatar_url>http://s3.amazonaws.com/user_avatars_production/avatars/3900/large.png?1272476980</avatar_url> </user> </message> </messages>
Or, get all messages for a Game by specifying the NBA id, like this:
$ curl http://fanvibe.com/api/messages.xml?game_id=0021000001&id_type=NBA
Next: Favorites →