ruby - How to subscribe to the PubSubHubbub github? -
i'm attempting write basic client listens events (enterprise) github, , makes api calls accordingly.
the problem have can't manage pubsubhubbub client configured. thought client/authentication i'm using, can't basic call the docs working!
in attempt work out i'm doing wrong, i'm making curl request normal github account:
curl -u "joepym" -i \ https://api.github.com/hub \ -f "hub.mode=subscribe" \ -f "hub.topic=http://github.com/joepym/faraday/events/push" \ -f "hub.callback=*callbackurl*"
and i'm getting back
http/1.1 100 continue http/1.1 422 unprocessable entity server: github.com date: wed, 08 may 2013 18:13:24 gmt content-type: application/json; charset=utf-8 connection: keep-alive status: 422 unprocessable entity x-ratelimit-limit: 5000 x-ratelimit-remaining: 4989 x-github-media-type: github.beta x-content-type-options: nosniff content-length: 38 { "message": "invalid event: nil" }
this invalid event message main client getting when attempt call enterprise github account enterprise credentials.
has encountered before?
try using https://github.com/joepym/faraday/events/push hub.topic. note using 'https'.
Comments
Post a Comment