1
I Use This!
Inactive
Analyzed about 12 hours ago. based on code collected 1 day ago.

Project Summary

This is a JavaScript wrapper for the Basecamp API. It covers everything in the API except file attachments for comments and messages. For the API to work it has to be used in an environment like AIR where cross-domain XMLHttpRequest calls are allowed.

Here is an example of getting back an Array of projects from Basecamp.

var basecamp = new Basecamp("your.basecamp.url", "user_name", "password");
basecamp.projects({
success: function( projects_xml ) {
var projects = Basecamp.Project.from_xml( projects_xml );
alert( projects.length );
}
};Here is an example of how to create a new message assuming you've already used the API to retrieve the desired project_id, message_category_id and person_id.

var message = new Basecamp.Message({
title: "Testing from API",
body: "This is a test from the JavaScript API wrapper.",
category_id: message_category_id
});
basecamp.post_message( project_id, message, [person_id], {
success: function( message_xml ) {
var message = Basecamp.Message.from_xml( message_xml )[0];
alert( message.id );
}
});Why?I finally found some time to explore Adobe AIR and thought ... "Hey, why don't I write an AIR app for Basecamp." The first step was to write this API wrapper/adapter so that I could easily communicate with Basecamp.

RoadmapIf I continue to find time (and have a Basecamp account to play with) this API will surely evolve as I begin to use the different parts while building the AIR app. Beware that as it stands right now this API wrapper is mostly untested.

I'm particularly anxious to add the file uploading for messages and comments.

DocumentationFirst place to look is the actual Basecamp API documentation (http://developer.37signals.com/basecamp/index.shtml). Currently this API follows their Ruby wrapper (http://developer.37signals.com/basecamp/basecamp.rb) very closely. Other than that ... its all code for now. :)

Tags

air api basecamp javascript

In a Nutshell, basecampjs...

MIT License
Permitted

Commercial Use

Modify

Distribute

Sub-License

Private Use

Forbidden

Hold Liable

Required

Include Copyright

Include License

These details are provided for information only. No information here is legal advice and should not be used as such.

This Project has No vulnerabilities Reported Against it

Did You Know...

  • ...
    nearly 1 in 3 companies have no process for identifying, tracking, or remediating known open source vulnerabilities
  • ...
    anyone with an Open Hub account can update a project's tags
  • ...
    use of OSS increased in 65% of companies in 2016
  • ...
    you can embed statistics from Open Hub on your site

30 Day Summary

May 1 2024 — May 31 2024

12 Month Summary

May 31 2023 — May 31 2024

Ratings

Be the first to rate this project
Click to add your rating
  
Review this Project!