getUserMood

Get the mood for a user over a given interval of time.

Authentication

This method does not require authentication.

Arguments

userid
User ID
startdate
Get mood data from this date and forward
interval


The number of days to get mood data for. If interval = 1 the you get 24 hours of mood data for startdate

Example Request

/api/getUserMood/1/2007-11-1/7

Response

<?xml version="1.0"?>
<emotionalcities>
<status>ok</status>
<median>
  <date>2007-11-01</date>
  <value>6</value>
</median>
<median>
  <date>2007-11-02</date>
  <value>6</value>
</median>
<median>
  <date>2007-11-03</date>
  <value>3</value>
</median>
<median>
  <date>2007-11-04</date>
  <value>4</value>
</median>
<median>
  <date>2007-11-05</date>
  <value>2</value>
</median>
<median>
  <date>2007-11-06</date>
  <value>6</value>
</median>
<median>
  <date>2007-11-07</date>
  <value>6</value>
</median>
</emotionalcities>

Errors

<?xml version="1.0"?>
<emotionalcities>
<status>error</status>
<message>empty values</message>
</emotionalcities>

User

Groups

City

Country

World

Generic


© 2007