Skip to content

Commit c886c5d

Browse files
committed
fix oauth2 token example
1 parent f19f959 commit c886c5d

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)