Skip to content

Commit d1cdfd4

Browse files
authored
Merge pull request #1 from deanrock/deanrock-patch-oauth-readme
fix oath2 example
2 parents f19f959 + 229bc22 commit d1cdfd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api-usage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ To connect to a GitLab server, create a ``gitlab.Gitlab`` object:
2525
gl = gitlab.Gitlab('http://10.0.0.1', 'JVNSESs8EwWRx5yDxM5q')
2626
2727
# oauth authentication
28-
gl = gitlab.Gitlab('http://10.0.0.1', my_oauth2_token)
28+
gl = gitlab.Gitlab('http://10.0.0.1', oauth_token='my_oauth2_token')
2929
3030
# or username/password authentication
3131
gl = gitlab.Gitlab('http://10.0.0.1', email='jdoe', password='s3cr3t')

0 commit comments

Comments
 (0)