add support for Github Deployment API

implements #120
The `to_json` should be done by the API client already