File tree 4 files changed +9
-3
lines changed
4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
1
PATH
2
2
remote: .
3
3
specs:
4
- twitty (0.1.3 )
4
+ twitty (0.1.4 )
5
5
oauth
6
6
7
7
GEM
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ Use twitty to register your webhook on twitter as below
40
40
$twitter.fetch_webhooks
41
41
42
42
#register a new webhook
43
- $twitter.register_webhooks (url: "https://xyc.com/webhooks/twitter")
43
+ $twitter.register_webhook (url: "https://xyc.com/webhooks/twitter")
44
44
```
45
45
46
46
You should handle the crc checks from twitter by processing the get requests to your webhooks url with a controller method similar to
Original file line number Diff line number Diff line change @@ -90,6 +90,12 @@ module Twitty::Constants
90
90
method : :post ,
91
91
endpoint : '/1.1/favorites/destroy.json' ,
92
92
required_params : [ :tweet_id ]
93
+ } ,
94
+
95
+ user_show : {
96
+ method : :get ,
97
+ endpoint : '/1.1/users/show.json?screen_name=%<screen_name>s' ,
98
+ required_params : [ :screen_name ]
93
99
}
94
100
} . freeze
95
101
end
Original file line number Diff line number Diff line change 2
2
3
3
module Twitty ::Payload
4
4
EMPTY_PAYLOAD_ACTIONS = %w[ fetch_webhooks register_webhook unregister_webhook fetch_subscriptions
5
- create_subscription remove_subscription destroy_tweet retweet unretweet ] . freeze
5
+ create_subscription remove_subscription destroy_tweet retweet unretweet user_show ] . freeze
6
6
7
7
EMPTY_PAYLOAD_ACTIONS . each do |action |
8
8
define_method "#{ action } _payload" do
You can’t perform that action at this time.
0 commit comments