Web Service Objects

API → Common Objects

These aren’t method calls, but rather common XML structures that will appear in many of the method call results.


Example of a Person Object:

<person person_id="1">
  <username>erik</username>
  <name>Erik Benson</name>
  <url>http://erikbenson.com</url>
  <num_open_goals>32</num_open_goals>
  <profile_image_url>http://images.43things.com/profile/00/00/17/6124s.jpg</profile_image_url>
  <num_open_goals>32</num_open_goals>
  <flickr_username>erikbenson</flickr_username>
  <link href="http://www.43things.com/people/view/erik" rel="alternate" type="text/html"/>
  <city city_id="1">
    <name>Seattle</name>
    <region>Washington</region>
    <country>United States</country>
    <num_people>258</num_people>
    <upcoming_metro_id>9</upcoming_metro_id>
    <link href="http://www.43things.com/city/view/1" rel="alternate" type="text/html"/>
  </city>
</person>

Example of a Goal Object:

<goal goal_id="44">
  <name>throw a party with more than 30 people attending</name>
  <link href="http://www.43things.com/things/view/44" rel="alternate" type="text/html"/>
  <progress_link href="http://www.43things.com/people/progress/erik/59" rel="alternate" type="text/html"/>
  <worth_it_data>
    <num_say_worth_it>0</num_say_worth_it>
    <num_say_not_worth_it>0</num_say_not_worth_it>
    <percentage_worth_it>0</percentage_worth_it>
  </worth_it_data>
  <!-- If this is a particular person's goal, we'll include team data as below -->
  <team team_id="59" num_members="2">
    <link href="http://www.43things.com/teams/progress/59" rel="alternate" type="text/html"/>
  </team>
  <id>tag:43things.com:Erik Benson:goal:44</id>
</goal>

Example of an Entry Object:

<entry xmlns="http://43things.com/xml/2005/rc#">
  <title>Company started, 1 and 3/4 years to go</title>
  <author>
    <name>Erik Benson</name>
    <username>erik</username>
    <url>http://erikbenson.com</url>
    <num_open_goals>32</num_open_goals>
    <link href="http://www.43things.com/people/view/erik" rel="alternate" type="text/html"/>
  </author>
  <dc:subject>start a company that survives longer than 2 years</dc:subject>
  <GOAL_OBJECT>
  <content mode="escaped" xml:lang="en">I consider the first day of the company to be September 1st
 2004, which happily coincides with my own first official day at the co-op.  It being 3 months to the day
 today, I can already look back and see how far we've come.  Quite exciting.  Can't wait to see what the
 world thinks of 43 Things, not to mention the better answering machine that I so much want to build
 at some point.</content>
  <num_comments>0</num_comments>
  <issued>2004-12-02T07:55:17Z</issued>
  <link href="http://www.43things.com/entries/view/44" rel="alternate" type="text/html"/>
  <link href="http://www.43things.com/service/entry/44" rel="service.edit" type="application/x.atom+xml"/>
  <id>tag:43things.com:erik:entry:44</id>
</entry>

Example of a City Object:

<city city_id="54">
  <name>London</name>
  <region></region>
  <country>United Kingdom</country>
  <num_people>54</num_people>
  <link href="http://www.43things.com/city/view/54" rel="alternate" type="text/html"/>
</city>

 

43 Things Login