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="pugetive">
  <username>pugetive</username>
  <name>Todd Gehman</name>
  <url>http://www.pugetive.com</url>
  <flickr_username>pugetive</flickr_username>
  <num_open_places>42</num_open_places>

<profile_image_url>http://images.43things.com/profile/00/00/55/21881s.jpg</profile_image_url>
  <link href="http://www.43places.com/person/pugetive" rel="alternate" type="text/html"/>
  <num_entries>10</num_entries>
</person>

Example of a Place Object:

<?xml version="1.0" encoding="UTF-8"?>
<place place_id="191426">
  <name>The Robot Co-op Office</name>
  <link href="http://www.43places.com/places/view/191426" rel="alternate" type="text/html"/>
  <!-- Parent and child information will be included in get_place_by_id method -->
  <parent id="200977">Capitol Hill</parent>
  <children>
    <child id="192017">Bathroom</child>
  </children>
  <num_registered_people>61</num_registered_people>
  <worth_it_data>
    <num_say_worth_it>19</num_say_worth_it>
    <num_say_not_worth_it>2</num_say_not_worth_it>
    <percentage_worth_it>90</percentage_worth_it>
  </worth_it_data>
  <tags>
<tag>seattle</tag>
<tag>capitol hill</tag>
<tag>office</tag>
<tag>style</tag>
<tag>robots</tag>
<tag>geeks</tag>
<tag>43things</tag>
<tag>yoga studio</tag>
<tag>43places</tag>

<tag>where it's at</tag>
  </tags>
  <id>tag:43places.com:place:191426</id>
</place>

Example of an Entry Object:

<?xml version="1.0" encoding="UTF-8"?>
<entry xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns="http://43places.com/xml/2005/rc#">
  <title>Mixed feelings</title>
  <author>
    <name>Todd Gehman</name>
    <username>pugetive</username>
    <url>http://www.pugetive.com</url>
    <num_open_places>43</num_open_places>

    <link href="http://master.43places.com/person/pugetive" rel="alternate" type="text/html"/>
  </author>
  <dc:subject>Sambar</dc:subject>
<place place_id="254997">
  <name>Sambar</name>
  <link href="http://master.43places.com/places/view/254997" rel="alternate" type="text/html"/>
  <num_registered_people>1</num_registered_people>
  <id>tag:43places.com:place:254997</id>
</place>
  <content mode="escaped" xml:lang="en">My standard experience with "mixed drinks" is asking a bartender to add ice cubes to my bourbon, so at first I was like a fish out of whiskey at this fancy-cocktail establishment.  Having no idea what to order (nor what many of the ingredients were on their descriptive menu), I took a shot in the dark with the Fontlesomethingfrench Sidecar.  It was delicious, clearly very well made, and a bit too sweet for someone who generally prefers drinks _instead of_ dessert.  Wanting a change of pace and knowing that the staff would be knowledgeable, I made the mistake of explaining my preference for drier drinks to the waitress, who made the mistake of explaining my preference for drier drinks to the bartender, who made the mistake of introducing the Vesper into my life.  Vesper is named after a femme fatale in an old James Bond book.  She's three parts gin, one part vodka, a half part lillet, and a twist of lemon peel.  I like her name and I like her drink and I do not like being hungover at work.  A two martini dinner with a couple of beers and a sidecar appetizer does not make for a pleasant morning at the office.  So I have mixed feelings about the Sambar after my first visit.  And I'm totally going back.  Soon.</content>
  <num_comments>1</num_comments>
  <issued>2005-08-09T19:13:34Z</issued>

  <link href="http://www.43places.com/entries/view/173241" rel="alternate" type="text/html"/>
  <link href="http://www.43places.com/service/entry/173241" rel="service.edit" type="application/x.atom+xml"/>
  <id>tag:43things.com:pugetive:entry:173241</id>
</entry>