diff options
author | Matus Ferech <matus.ferech@telekom.com> | 2018-04-28 12:57:04 +0100 |
---|---|---|
committer | Matus Ferech <matus.ferech@telekom.com> | 2018-04-28 12:57:04 +0100 |
commit | 5c16c8d03c39d4b6d87490a36102cdd4d2ad2160 (patch) | |
tree | 7fa1f031064a5d2602be30cd1cc5ff83a122b555 /docs/gl_objects/snippets.py | |
parent | 505c74907fca52d315b273033e3d62643623425b (diff) | |
download | gitlab-5c16c8d03c39d4b6d87490a36102cdd4d2ad2160.tar.gz |
Add API v3 example
Diffstat (limited to 'docs/gl_objects/snippets.py')
-rw-r--r-- | docs/gl_objects/snippets.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/gl_objects/snippets.py b/docs/gl_objects/snippets.py index 8edacfd..87d1a42 100644 --- a/docs/gl_objects/snippets.py +++ b/docs/gl_objects/snippets.py @@ -8,8 +8,11 @@ public_snippets = gl.snippets.public() # get snippet = gl.snippets.get(snippet_id) -# get the content +# get the content - API v4 content = snippet.content() + +# get the content - API v3 +content = snippet.raw() # end get # create |