diff options
author | Gauvain Pocentek <gauvain@pocentek.net> | 2016-08-09 17:20:13 +0200 |
---|---|---|
committer | Gauvain Pocentek <gauvain@pocentek.net> | 2016-08-09 17:20:13 +0200 |
commit | 5c51bf3d49302afe4725575a83d81a8c9eeb8779 (patch) | |
tree | b4b232316ea911270c4a378b0dad0f550e79a432 /docs/gl_objects/system_hooks.py | |
parent | ab7d794251bcdbafce69b1bde0628cd3b710d784 (diff) | |
download | gitlab-5c51bf3d49302afe4725575a83d81a8c9eeb8779.tar.gz |
docs: system hooks API
Diffstat (limited to 'docs/gl_objects/system_hooks.py')
-rw-r--r-- | docs/gl_objects/system_hooks.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/gl_objects/system_hooks.py b/docs/gl_objects/system_hooks.py new file mode 100644 index 0000000..9bc487b --- /dev/null +++ b/docs/gl_objects/system_hooks.py @@ -0,0 +1,17 @@ +# list +hooks = gl.hooks.list() +# end list + +# test +gl.hooks.get(hook_id) +# end test + +# create +hook = gl.hooks.create({'url': 'http://your.target.url'}) +# end create + +# delete +gl.hooks.delete(hook_id) +# or +hook.delete() +# end delete |