TotSpot

Details

Methods:

get_all

Returns the profile details for the given user.

parameters: -
formats: xml, json
endpoint: http://totspot.com/api/details/get_all?format=xml / http://totspot.com/api/details/get_all?format=json
Sample response:
<?xml version="1.0" encoding="UTF-8"?>
<baby-profile>
  <after-school-activity>Play with friends</after-school-activity>
  <birth-place-city></birth-place-city>
  <birth-place-state type="integer">0</birth-place-state>
  <born-where>New York, NY</born-where>
  <boy-names>Roger, Watson, John</boy-names>
  <doctor-name>Dr. Lewis Hamilton</doctor-name>
  <due-date type="datetime">2008-11-13T00:00:00Z</due-date>
  <eye-color>c_000000</eye-color>
  <favorite-subject>Math</favorite-subject>
  <first-name>Timoteo</first-name>
  <girl-names>Britney, Lauren</girl-names>
  <hair-color>c_574200</hair-color>
  <hospital-name>Aventura Hospital and Medical Center</hospital-name>
  <last-name>Button</last-name>
  <middle-name>F.</middle-name>
  <name-meaning>A great portuguese hero</name-meaning>
  <nickname>Tim</nickname>
  <parent-firstname>Suzie</parent-firstname>
  <parent-lastname>Welstein</parent-lastname>
  <school-name>Jaime Cortesao</school-name>
  <something-interesting>Love to play piano</something-interesting>
  <teacher-name>Ms. Weistein</teacher-name>
  <who-birth>Daddy</who-birth>
</baby-profile>

Growth

Methods:

get_all

Returns the growth values for the given user.

parameters: units = 0 (imperial units) | 1 (metric units)
formats: xml, json
endpoint: http://totspot.com/api/growth/get_all?format=xml / http://totspot.com/api/growth/get_all?format=json
Sample response:
<?xml version="1.0" encoding="UTF-8"?>
<growths type="array">
  <growth>
    <actual-date type="datetime">2008-01-16T00:00:00Z</actual-date>
    <height type="float">17.0</height>
    <weight type="float">23.0</weight>
  </growth>
  <growth>
    <actual-date type="datetime">2008-02-01T00:00:00Z</actual-date>
    <height type="float">22.0</height>
    <weight type="float">24.0</weight>
  </growth>
</growths>

get_last

Returns the current growth value for the given user.

parameters: units = 0 (imperial units) | 1 (metric units), limit = N (the max number of growth values to receive - default 20)
formats: xml, json
endpoint: http://totspot.com/api/growth/get_last?format=xml / http://totspot.com/api/growth/get_last?format=json
Sample response:
<?xml version="1.0" encoding="UTF-8"?>
<growth>
  <actual-date type="datetime">2008-07-24T17:20:51Z</actual-date>
  <height type="float">41.0</height>
  <weight type="float">53.0</weight>
</growth>

Status (tidbits)

get_all

Returns the status updates (tidbits) created by the given user.

parameters: limit = N (the max number of status to receive - default 20)
formats: xml, json
endpoint: http://totspot.com/api/status/get_all?format=xml / http://totspot.com/api/status/get_all?format=json
Sample response:
<?xml version="1.0" encoding="UTF-8"?>
<tidbits type="array">
  <tidbit>
    <created-at type="datetime">2007-11-29T16:37:39+00:00</created-at>
    <text>watching formula 1</text>
  </tidbit>
  <tidbit>
    <created-at type="datetime">2007-13-29T16:39:42+00:00</created-at>
    <text>playing piano, again</text>
  </tidbit>
</tidbits>

get_last

Returns the current status (tidbit) for the given user.

parameters: -
formats: xml, json
endpoint: http://totspot.com/api/status/get_last?format=xml / http://totspot.com/api/status/get_last?format=json
Sample response:
<?xml version="1.0" encoding="UTF-8"?>
<tidbit>
  <created-at type="datetime">2007-13-29T16:39:42+00:00</created-at>
  <text>playing piano, again</text>
</tidbit>

update

Updates the status (tidbit) for the given user.

parameters: text (mandatory)
formats: xml, json
endpoint: http://totspot.com/api/status/update?format=xml / http://totspot.com/api/status/update?format=json
Sample response:
<?xml version="1.0" encoding="UTF-8"?>
<tidbit>
  <created-at type="datetime">2008-08-22T15:51:37+01:00</created-at>
  <text>Bolsating</text>
</tidbit>

Please Login or Signup to the developer section to manage your applications.

API Documentation

© TotSpot - All rights reserved. | Contact us