Currently i have a sandbox developer account and my app name is ‘Zammad Zaihan’
I had used https://github.com/twitterdev/SnowBotDev
getting all_webhook_configs() has no error
[4] pry(main)> wh.all_webhook_configs()
Retrieving webhook configurations...
twitter API: #<OAuth::AccessToken:0x00007fc4b59629c8 @token="xxxx", @secret="xxxxx", @consumer=#<OAuth::Consumer:0x00007fc4b5962d38 @key="xxxx", @secret="xxxx", @options={:signature_method=>"HMAC-SHA1", :request_token_path=>"/oauth/request_token", :authorize_path=>"/oauth/authorize", :access_token_path=>"/oauth/access_token", :proxy=>nil, :scheme=>:header, :http_method=>:post, :debug_output=>nil, :oauth_version=>"1.0", :site=>"https://api.twitter.com"}>, @params={:oauth_token=>"xxx", :oauth_token_secret=>"xxx"}>
No existing twitter webhook configurations...
=> []
But if i were to add a new webhook i came with this error:
[3] pry(main)> wh.add_webhook_config('https://mn.taqisystems.com/webhook')
Setting a webhook configuration...
POST ERROR occurred with /1.1/account_activity/all/devel/webhooks.json?url=https://mn.taqisystems.com/webhook, request:
Error code: 401 #<Net::HTTPUnauthorized:0x00007ff56ee65ad0>
Error Message: {"errors":[{"code":32,"message":"Could not authenticate you."}]}
[{"code"=>32, "message"=>"Could not authenticate you."}]
=> {"errors"=>[{"code"=>32, "message"=>"Could not authenticate you."}]}
It is urgent for us to get this working since we need to implement it (before august) for our opensource Zammad system which allows our users to get support through twitter.