Skip to content

Commit d54a29f

Browse files
sandboxapisclaude
andcommitted
docs(api-usage): add an anonymous example against a hosted sample GitLab API
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
1 parent bb9ea1b commit d54a29f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎docs/api-usage.rst‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ To connect to GitLab.com or another GitLab instance, create a ``gitlab.Gitlab``
2828
# anonymous read-only access for public resources (self-hosted GitLab instance)
2929
gl = gitlab.Gitlab('https://gitlab.example.com')
3030
31+
# anonymous read-only access to a third-party hosted copy of the GitLab REST API
32+
# with sample projects (gl.sandboxapis.dev), e.g. to try python-gitlab without
33+
# a GitLab account or token
34+
gl = gitlab.Gitlab('https://gl.sandboxapis.dev')
35+
3136
# private token or personal token authentication (GitLab.com)
3237
gl = gitlab.Gitlab(private_token='JVNSESs8EwWRx5yDxM5q')
3338

0 commit comments

Comments
 (0)