tan-tan-kanarek / github-php-client

MIT License
184 stars 120 forks source link

Support for web-based Oauth #82

Closed djplaner closed 8 years ago

djplaner commented 8 years ago

New AuthType and the ability to set an oauth token - as per the following excerpt.

        $client = new GitHubClient();
        // The following two methods are new additions
        $client->setAuthType( 'Oauth' );
        $client->setOauthToken( $oauth_token );

Before doing this, the web application will need to take the steps necessary to get the OAUTH token. One example of this can be seen in this issue