Users

GET /users

Get information about a user with their Fanvibe UID:

$ curl http://fanvibe.com/api/users/2.xml
<?xml version="1.0" encoding="UTF-8"?>
<user> 
  <id>2</id> 
  <first_name>Joe</first_name> 
  <last_name>Pestro</last_name> 
  <profile_link>http://fanvibe.com/users/2</profile_link> 
  <status>I'm watching Cowboys vs Redskins</status> 
  <points>190</points> 
  <rank>6</rank> 
  <avatar_url>http://s3.amazonaws.com/user_avatars_production/avatars/2/large.png?1265265854</avatar_url> 
  <facebook_user>true</facebook_user> 
  <twitter_user>true</twitter_user> 
</user>

Or, get information about the current user who has already successfully Authenticated.

$ curl http://fanvibe.com/api/users/me.xml
<?xml version="1.0" encoding="UTF-8"?>
<user> 
  <id>2</id> 
  <first_name>Joe</first_name> 
  <last_name>Pestro</last_name> 
  <profile_link>http://fanvibe.com/users/2</profile_link> 
  <status>I'm watching Cowboys vs Redskins</status> 
  <points>190</points> 
  <rank>6</rank> 
  <avatar_url>http://s3.amazonaws.com/user_avatars_production/avatars/2/large.png?1265265854</avatar_url> 
  <facebook_user>true</facebook_user> 
  <twitter_user>true</twitter_user> 
</user>

Check if the current user is logged in to Fanvibe:

$ curl http://fanvibe.com/api/users/logged_in.xml
<?xml version="1.0" encoding="UTF-8"?> 
<hash> 
  <logged-in type="boolean">true</logged-in> 
</hash>