Activities

Fields

title
title string of the item that cause the activity item to be created
text
text string that specifies what kind of activity happened to the internally linked item
created_at
activity creation time

Methods

get_all

returns activity from the company (all projects) or from a specific project

Parameters

  • company: COMPANY_ALIAS (passed in as a subdomain)- mandatory
  • id: # (amount of activity items to fetch) - not mandatory, defaults to 100
  • project: PROJECT_ALIAS (alias of a specific project) - not mandatory, defaults to company scope
  • format: xml | json - not mandatory, defaults to the HTTP Accept header.
  • callback: JAVASCRIPT_FUNCTION (a javascript function identifier) - not mandatory, only used on json requests.

Endpoint examples


	http://company_alias.goplanapp.com/api/activities/get_all
http://company_alias.goplanapp.com/projectacme/api/activities/get_all/200.json?callback=handleActivity
http://company_alias.goplanapp.com/api/activities/get_all?format=xml&project;=projectacme&id;=200

Output Formats

  • XML

    		
    <?xml version="1.0" encoding="UTF-8"?>
    <activities type="array">
    <activity>
    <created-at type="datetime">2009-03-27T17:52:42+00:00</created-at>
    <text>task_created</text>
    <title>things not to do</title>
    </activity>
    <activity>
    <created-at type="datetime">2009-03-27T15:52:14+00:00</created-at>
    <text>task_reopened</text>
    <title>things to do</title>
    </activity>
    <activity>
    <created-at type="datetime">2009-03-27T15:52:02+00:00</created-at>
    <text>task_finished</text>
    <title>things to think about</title>
    </activity>
    </activities>
  • JSON

    
    handleActivity([{"activity": {"created_at": "2009/04/03 19:18:50 +0100", "title": "testing", "text": "comment_created"}}, {"activity": {"created_at": "2009/04/03 18:55:46 +0100", "title": "stuff", "text": "comment_created"}}, {"activity": {"created_at": "2009/03/27 15:51:47 +0000", "title": "do the stuff", "text": "task_finished"}}])
    		

Follow us on Twitter and Facebook. Talk to us and Get Satisfaction.

Goplan is a product of Reinhardt Media, Ltd. | Contact support | Terms of Service