A list of all available actions is available. The list is an XML file containing URLs for more details on each action.
URL: http://v2.dothegreenthing.com/actions.xml
Method: GET
<actions>
<action href="http://v2.dothegreenthing.com/actions/walk_the_walk">Walk The Walk</action>
<action href="http://v2.dothegreenthing.com/actions/stay_grounded">Stay Grounded</action>
<action href="http://v2.dothegreenthing.com/actions/human_heat">Human Heat</action>
<action href="http://v2.dothegreenthing.com/actions/stick_with_what_you_got">Stick With What You Got</action>
<action href="http://v2.dothegreenthing.com/actions/easy_on_the_meat">Easy On The Meat</action>
<action href="http://v2.dothegreenthing.com/actions/all_consuming">All Consuming</action>
<action href="http://v2.dothegreenthing.com/actions/plug_out">Plug Out</action>
</actions>
Each action has an XML representation which contains details for that action.
URL: http://v2.dothegreenthing.com/actions/{action_stub}.xml
Method: GET
Example: http://v2.dothegreenthing.com/actions/walk_the_walk.xml
An example document is shown below:
<action href="http://v2.dothegreenthing.com/actions/walk_the_walk">
<title>Walk The Walk</title>
<stub>walk_the_walk</stub>
<description>
If we could all drive a little less and walk a little more, it would help things. Powered by muscle and a good breakfast rather than petrol engines, walking burns no fossil fuel and causes no CO2 emissions but still gets you there. Slower? Well, sometimes. In a better state of mind? Nearly always.
</description>
<more_actions>
<more_action href="http://v2.dothegreenthing.com/actions/walk_the_walk/more/walk_on_pedals">Walk On Pedals</more_action>
<more_action href="http://v2.dothegreenthing.com/actions/walk_the_walk/more/walk_for_fun">Walk For Fun</more_action>
<more_action href="http://v2.dothegreenthing.com/actions/walk_the_walk/more/share_your_car">Share Your Car</more_action>
</more_actions>
<content count="1">
<item href="http://v2.dothegreenthing.com/content/1615740">Walking Fingers</item>
</content>
<stories>
<story href="http://v2.dothegreenthing.com/stories/101">
<title>My fantastic story</title>
<author href="http://v2.dothegreenthing.com/users/Floppy">Floppy</author>
</story>
</stories>
</action>
The more_actions tag contains links to the deeper actions under this one. See the "More actions" section below for more details. The content tag contains a list of content items. The first item in the list is the currently-featured content item. The stories tag contains a list of the current "most interesting" stories for this action, as displayed on the action page. Further details about all these objects can be requested from the URLs specified.
Each "more" action also has an XML description
URL: http://v2.dothegreenthing.com/actions/{action_stub}/more/{more_action_stub}.xml
Method: GET
Example: http://v2.dothegreenthing.com/actions/walk_the_walk/more/walk_on_pedals.xml
An example document is shown below. All included fields have the same meaning as for main actions, above. The only extra tag is the action tag, which links back to the main action which contains this "more" action.
<more_action href="http://v2.dothegreenthing.com/actions/walk_the_walk/more/walk_on_pedals">
<title>Walk On Pedals</title>
<stub>walk_on_pedals</stub>
<action href="http://v2.dothegreenthing.com/actions/walk_the_walk">Walk The Walk</action>
<description>Quicker than walking, less sweaty than running.</description>
<content count="1">
<item href="http://v2.dothegreenthing.com/content/1615739">Gusty and Ford</item>
</content>
</more_action>