We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e51b7d5 commit c574161Copy full SHA for c574161
README.md
@@ -41,6 +41,11 @@ $client = \Gitlab\Client::create('http://git.yourdomain.com')
41
->authenticate('your_gitlab_token_here', \Gitlab\Client::AUTH_URL_TOKEN)
42
;
43
44
+// or for OAuth2 (see https://github.com/m4tthumphrey/php-gitlab-api/blob/master/lib/Gitlab/HttpClient/Plugin/Authentication.php#L47)
45
+$client = \Gitlab\Client::create('http://gitlab.yourdomain.com')
46
+ ->authenticate('your_gitlab_token_here', \Gitlab\Client::AUTH_OAUTH_TOKEN)
47
+;
48
+
49
$project = $client->api('projects')->create('My Project', array(
50
'description' => 'This is a project',
51
'issues_enabled' => false
0 commit comments