Skip to content

PHP class for the new Basecamp API

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING
Notifications You must be signed in to change notification settings

ukneeq/BasecampPHP-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Synopsis

Basecamp is a web service project manager found at http://www.basecamp.com/. Basecamp provides a REST API for developer access. The all-new Basecamp has an all-new API. It is not compatible with the Basecamp Classic API. All integrations will have to be updated to use the new API. The core ingredients are still the same, though. This is a REST-style API that uses JSON for serialization and OAuth 2 for authentication.

BasecampPHP-API is a PHP library that encapsulates all of the Basecamp API features into a simple to use PHP class.

See the README for details.

Author

Fedil Grogan http://fedil.ukneeq.com/

Requirements

  • PHP 5.3 with cURL support

Getting Started

Download

Download the latest version of BasecampAPI.php:

Require

<?php
require '/path/to/BasecampAPI.php';
?>

Usage

Currently only supports private apps.

<?php
  $appName = 'MyApp';
  $appContact = '[email protected]';

  $basecampAccountID = '0000000';
  $basecampUsername = 'username';
  $basecampPassword = 'password';

  $bc = new Basecamp("$basecampAccountID", "$basecampUsername", "$basecampPassword", "$appName", "$appContact");

?>

Function List

Projects

createProject($name, $description)
getProjects()
getArchivedProjects();
getProject($projectID)
updateProject($projectID, $name, $descption)
archiveProject($projectID, $archive)

People

Accesses

Events

Topics

Messages

Comments

Todo lists

Todos

Documents

Attachments

Uploads

Calendars

Calendar Events

Thanks

Although my attempts to search for a php library for the new basecamp API came up empty I drew inspiration from a library for the old version (basecamp-php-api) and a wrapper class (bdunlap / basecamp.php). I wanted to thank them for their work and give them credit for any pieces of code that may be similar or borrowed.

License

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

About

PHP class for the new Basecamp API

Resources

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages