diff options
author | Gauvain Pocentek <gauvain@pocentek.net> | 2018-05-10 14:51:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-10 14:51:15 +0200 |
commit | 85f238846071724c9323df06fdc757de2b453608 (patch) | |
tree | 27d7c9b9e46fdf90184d28f955f66875c39304cc /docs | |
parent | 736fece2219658ff446ea31ee3c03dfe18ecaacb (diff) | |
parent | 5c16c8d03c39d4b6d87490a36102cdd4d2ad2160 (diff) | |
download | gitlab-85f238846071724c9323df06fdc757de2b453608.tar.gz |
Merge pull request #484 from Matusf/docs-example-raises-attribute-error
Change method for getting content of snippet
Diffstat (limited to 'docs')
-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 f32a11e..87d1a42 100644 --- a/docs/gl_objects/snippets.py +++ b/docs/gl_objects/snippets.py @@ -8,7 +8,10 @@ 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 |