Download the PHP package writecrow/basecamp_api without Composer
On this page you can find all versions of the php package writecrow/basecamp_api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download writecrow/basecamp_api
More information about writecrow/basecamp_api
Files in writecrow/basecamp_api
Package basecamp_api
Short Description Drupal integration for Basecamp API v3
License GPL-2.0+
Homepage https://github.com/writecrow/basecamp_api
Informations about the package basecamp_api
Basecamp API v3 Integration
This is a Drupal module that facilitates using the [https://github.com/basecamp/bc3-api](Basecamp API v3).
As an integration module, this facilitates transactions between the Basecamp endpoints, and requires simple coding to achieve this.
After creating an authorized application & storing the initial access token & refresh token, this module will continue to renew the token via a cron job that runs once per day.
Once complete, actions, such as creating a new todo, are as simple as:
Proper setup & configuration of the refresh token
At this time, creating the initial access & refresh token is the purview of the developer (and it is pretty easy -- see https://github.com/basecamp/api/blob/master/sections/authentication.md).
- Sign in to Basecamp with the user ID that will provide the integration (in most cases, this should be identified as a non-human account so that people know that actions performed are being triggered by the Drupal integration).
- Go to https://launchpad.37signals.com/integrations and use the Authorization dialog to generate a 1-time code.
-
Trade this code for a long-lived access token & refresh token:
-
Set these tokens in Drupal's non-config-exportable State API:
- Important: by default, this token will not refresh via cron so that development environments don't accidentally invalidate your access token in the production environment. For the token to be refreshed regularly in your production environment, add the following to your
settings.php
or equivalent: