Hi team,
With the new API for Twitter, I've been having difficulty trying to set-up a connection from my host to twitter.
QUESTION: Is there a way to connect Twitter to a server?
Every time I run the curl command on the server, I would get curl: (7) couldn't connect to host. What have I done wrong?
Thank you for helping! 🙂
Code:
*Note: I have the actual values for both: OAUTH_1_Client_Key_VALUE and OAUTH_1_Access_Token_VALUE hiding for privacy purposes
curl
--request POST --url 'https://api.twitter.com/1.1/account_activity/all/SplunkAPI/webhooks.jsonurl=https%3A%2F%2Fsplunk.yooza.tcnz.net'
--header 'authorization: OAuth oauth_consumer_key="OAUTH_1_Client_Key_VALUE", oauth_nonce="GENERATED", oauth_signature="GENERATED", oauth_signature_method="HMAC-SHA1", oauth_timestamp="GENERATED", oauth_token="OAUTH_1_Access_Token_VALUE", oauth_version="1.0"'
Configuration:
In Splunk:
Data inputs » REST » Twitter
Endpoint URL
https://api.twitter.com/1.1/account_activity/all/SplunkAPI/webhooks.json
URL Arguments:
follow=423424432^stall_warnings=true
In Twitter:
App Name
SplunkAPI
Website URL
https://splunk.yooza.tcnz.net (Is this needed in the technical terms? because we are using a splunk server which wont be avaialble for internet connection)
... View more