// paying back in a small way - in the switch section near line 1840
case 'Basecamp':
$this->oauth_version = '2.0';
$this->dialog_url = 'https://launchpad.37signals.com/authorization/new?type=web_server&client_id={CLIENT_ID}&redirect_uri={REDIRECT_URI}&state={STATE}';
$this->offline_dialog_url = 'https://launchpad.37signals.com/authorization/new?type=web_server&client_id={CLIENT_ID}&redirect_uri={REDIRECT_URI}&state={STATE}&access_type=offline&approval_prompt=force';
$this->access_token_url = 'https://launchpad.37signals.com/authorization/token?type=web_server';
break;
###
only tricky part above was the change in type from code to web_server - from their comments this requirement may not persist.
#####
Basecamp web app registration is:
integrate.37signals.com/
###
Can copy login_with_stocktwits.php and change the success page to:
$success = $client->CallAPI(
'https://launchpad.37signals.com/authorization.json',
'GET', array(), array('FailOnAccessError'=>true), $user);
#####
And of course at the top:
require('http.php');
require('oauth_client.php');
$client = new oauth_client_class;
$client->server = 'Basecamp';
$client->debug = true;