summaryrefslogtreecommitdiff
path: root/docs/api-usage.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/api-usage.rst')
-rw-r--r--docs/api-usage.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/api-usage.rst b/docs/api-usage.rst
index b33913d..4c4ad19 100644
--- a/docs/api-usage.rst
+++ b/docs/api-usage.rst
@@ -24,6 +24,9 @@ To connect to a GitLab server, create a ``gitlab.Gitlab`` object:
# private token authentication
gl = gitlab.Gitlab('http://10.0.0.1', 'JVNSESs8EwWRx5yDxM5q')
+ # oauth authentication
+ gl = gitlab.Gitlab('http://10.0.0.1', my_oauth2_token)
+
# or username/password authentication
gl = gitlab.Gitlab('http://10.0.0.1', email='jdoe', password='s3cr3t')