class Github::Repos::PubSubHubbub

def unsubscribe_service(user_name, repo_name, service_name, params={})


github.repos.pubsubhubbub.unsubscribe_service 'user-name', 'repo-name', 'campfire'
github = Github.new :oauth_token => '...'
= Examples

* :event - Optional hash key for the type of event. The default event is push
* service-name - Required string
* repo-name - Required string,
= Parameters

Subscribe repository to service hook through pubsubhubbub
def unsubscribe_service(user_name, repo_name, service_name, params={})
  _validate_presence_of user_name, repo_name, service_name
  _normalize_params_keys(params)
  event = params.delete('event') || 'push'
  topic = "https://github.com/#{user_name}/#{repo_name}/events/#{event}"
  callback = "github://#{service_name}"
  unsubscribe(topic, callback)
end