Chore: Add Twitter documentation (#648)

* Chore: Add Twitter documentation

Co-authored-by: Sojan <sojan@pepalo.com>
This commit is contained in:
Pranav Raj S
2020-03-28 11:51:42 +05:30
committed by GitHub
parent a3c2d4e5bd
commit 50ebbc13b6
20 changed files with 103 additions and 14 deletions

View File

@@ -4,7 +4,7 @@ class Twitter::WebhookSubscribeService
pattr_initialize [:inbox_id]
def perform
register_response = twitter_client.register_webhook(url: webhooks_twitter_url)
register_response = twitter_client.register_webhook(url: webhooks_twitter_url(protocol: 'https'))
twitter_client.subscribe_webhook if register_response.status == '200'
Rails.logger.info 'TWITTER_REGISTER_WEBHOOK_FAILURE: ' + register_response.body.to_s
end