This is a topic in Basecamp API

Get listing of files / messages / projects?

 
Avatar glawrie 31 posts

Does anyone know if it is possible to obtain the following information via the API (or any other route).

List of files attached to messages, and for each file:
  • Name of message to which it is attached
  • URL of message on basecamp

We hoped that this information might be included in the XML dump of a Basecamp – but apparently not.

Suggestions / ideas anyone?

 
Avatar Stickman 73 posts

You can get that information, but only by listing out all messages and looking at their attachments. To do this via tha API, you’ll need to:

  1. list all projects
  2. list all message categories in each project
  3. list all messages in each message category

Because the message list only returns summary details of each message, you’ll probably also need to read each message to get info about attached file (I don’t remember exactly which details are returned).

A message’s URL breaks down like this:

http://[company url]/projects/[project id]/msg/cat/[message category id]/[message id]/comments

 
Avatar glawrie 31 posts

Thanks! Given that this is probably a bit of information others need too – do you know if anyone has written something to do this yet?

 
Avatar Stickman 73 posts

What language will you be using?

 
Avatar Ramya 1 post

hi,
i too need help in this.. i’ll be using PHP for this kind. can anybody pls help me to do this?

 
Avatar PeterRust 43 posts

Ramya,

There’s a PHP example and a PHP wrapper, linked to on the Code Examples page of the unofficial API wiki.

[advertisement removed – admin]

Signup or login to post a reply.