mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 11:21:16 +00:00
* Add hook support for organizations Specifically, the create_hook, get_hook, and get_hooks calls * Added support for the edit and delete hook functions
21 lines
1.3 KiB
Plaintext
21 lines
1.3 KiB
Plaintext
https
|
|
POST
|
|
api.github.com
|
|
None
|
|
/orgs/BeaverSoftware/hooks
|
|
{'Content-Type': 'application/json', 'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
|
|
{"config": {"url": "http://foobar.com"}, "name": "web"}
|
|
201
|
|
[('status', '201 Created'), ('x-ratelimit-remaining', '4994'), ('content-length', '298'), ('server', 'nginx/1.0.13'), ('connection', 'keep-alive'), ('x-ratelimit-limit', '5000'), ('etag', '"276d18854081948260c44cf645c54bd0"'), ('date', 'Sat, 19 May 2012 05:03:14 GMT'), ('content-type', 'application/json; charset=utf-8'), ('location', 'https://api.github.com/orgs/BeaverSoftware/hooks/257967')]
|
|
{"updated_at":"2012-05-19T05:03:14Z","url":"https://api.github.com/orgs/BeaverSoftware/hooks/257967","config":{"url":"http://foobar.com"},"last_response":{"status":"unused","message":null,"code":null},"active":true,"events":["push"],"name":"web","created_at":"2012-05-19T05:03:14Z","id":257967}
|
|
|
|
https
|
|
DELETE
|
|
api.github.com
|
|
None
|
|
/orgs/BeaverSoftware/hooks/257967
|
|
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
|
|
None
|
|
204
|
|
[('status', '204 No Content'), ('x-ratelimit-remaining', '4965'), ('server', 'nginx/1.0.13'), ('connection', 'keep-alive'), ('x-ratelimit-limit', '5000'), ('etag', '"d41d8cd98f00b204e9800998ecf8427e"'), ('date', 'Sat, 19 May 2012 07:26:55 GMT')]
|