blobaugh/Meetup-API-client-for-PHP — pull request #5 by cjlarose (2012-07-16 05:37:29+00:00)
Title: Static OAuth Helper Class

I've completed a utility class to make OAuth integration as easy as possible. It supports redirection for auth requests, access token requests, and access token refreshes; just about everything you need to Meetup's OAuth implementation.

Example Usage:
The authorized portal:
```php
", "");
}
$connection = new MeetupOAuth2Connection($access_token);
```

The redirect_uri page:
```php
" "",
"redirect_uri" => "",
"code" => $code,
"user_agent" => ""
));

$access_token = $response_obj->access_token;
$refresh_token = $response_obj->refresh_token;

$_SESSION['meetup_access_token'] = $access_token;
$_SESSION['meetup_refresh_token'] = $refresh_token;
}
```