From 505c74907fca52d315b273033e3d62643623425b Mon Sep 17 00:00:00 2001 From: Matus Ferech Date: Fri, 13 Apr 2018 11:59:37 +0200 Subject: [PATCH 1/2] Change method for getting content of snippet --- docs/gl_objects/snippets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/gl_objects/snippets.py b/docs/gl_objects/snippets.py index f32a11e36..8edacfdfa 100644 --- a/docs/gl_objects/snippets.py +++ b/docs/gl_objects/snippets.py @@ -9,7 +9,7 @@ # get snippet = gl.snippets.get(snippet_id) # get the content -content = snippet.raw() +content = snippet.content() # end get # create From 5c16c8d03c39d4b6d87490a36102cdd4d2ad2160 Mon Sep 17 00:00:00 2001 From: Matus Ferech Date: Sat, 28 Apr 2018 12:57:04 +0100 Subject: [PATCH 2/2] Add API v3 example --- docs/gl_objects/snippets.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/gl_objects/snippets.py b/docs/gl_objects/snippets.py index 8edacfdfa..87d1a429b 100644 --- a/docs/gl_objects/snippets.py +++ b/docs/gl_objects/snippets.py @@ -8,8 +8,11 @@ # 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