SnippetService#

class SnippetService[source]#

Methods

create

Add or modify a Snippet by key.

delete

Delete the Snippet with the given id.

patch

Modify the Snippet with the given id.

get_all

Get all snippets of the current user.

create(json_body, *, extra_parameters=None)[source]#

Add or modify a Snippet by key.

Parameters:
Returns:

A response containing the JSON serialized snippet and return code 201.

Return type:

Snippet

delete(*, snippet_id, extra_parameters=None)[source]#

Delete the Snippet with the given id.

Parameters:
Returns:

An empty response with return code 204

Return type:

None

patch(json_body, *, snippet_id, extra_parameters=None)[source]#

Modify the Snippet with the given id.

Parameters:
Returns:

An empty response with return code 204.

Return type:

None

get_all(*, extra_parameters=None)[source]#

Get all snippets of the current user.

Parameters:
Returns:

An array containing all snippets for the currently logged in user.

Return type:

Sequence[Snippet]