Set up the X spoke
On this page
Set up the X spoke
Integrate the ServiceNow instance and X account to authenticate the requests from ServiceNow.
Before you begin
-
Request an Integration Hub subscription.
-
Activate the X spoke.
-
Role required: admin.
Obtain the token and secret values from the X developer account
Create an app in the X developer account and obtain the values of Access Token, Access Token Secret, Consumer key, and Consumer Secret for authenticating the requests.
Before you begin
Role required: X admin.
Procedure
-
Log in to the Developer Portal - Twitter Developer - X (formerly Twitter).
-
Obtain the values of API Key, API Key Secret, and Bearer Token.
-
Navigate to Projects & Apps > Default project.
-
Under Apps, click +Add App.
-
Under App Environment, choose the required environment and lick Next.
-
Under App name, provide the app name in DEVELOPMENT APP and click Next.
Under Keys & Tokens, the values of API Key, API Key Secret, and Bearer Token are displayed.[Omitted image "x-spk-keys-tokens.png"] Alt text: Values of API Key, API Key Secret, and Bearer Token.
-
Copy and record these values for later use.
-
-
Provide the required permissions for OAuth 1.0.
-
Navigate to Projects & Apps > Default project.
-
Navigate to the app you had created.
-
In the Settings tab, under User authentication settings, click Set up.
-
On the User authentication settings page, under App permissions select the Read and write and Direct message option.[Omitted image "x-spk-app-permissions.png"] Alt text: App permissions.
-
Click Save.
The systems prompts you to confirm the permissions.
-
Copy and record these values for later use.
-
Click Done.
-
-
Obtain the values of Access Token and Access Token Secret.
-
Navigate to Projects & Apps > Default project.
-
Navigate to the app you had created.
-
Click the Keys and tokens tab.
-
Under Authentication Tokens, click Regenerate for Access Token and Secret.
System prompts you to confirm.
-
Click Yes, regenerate.
The values of Access Token and Access Token Secret are displayed.[Omitted image "x-spk-access-tok-sec.png"] Alt text: Copy the values of Access Token and Access Secret.
-
Copy these values for later use.
-
Configure a connection for the X spoke (formerly Twitter spoke)
Add and configure the X connections to authenticate ServiceNow requests in the X spoke.
Before you begin
-
Access Token and Access Token Secret of your X developer app.
-
Consumer key and Consumer Secret of your X developer app.
-
Ensure that the Application scope is X scope.
-
Role required: ServiceNow admin
See the X Developers documentation for instructions on creating the developer application and gathering the required details.
About this task
Two connections, Twitter and Twitter_Media, are provided in the Flow Designer. You must configure both of these connections.
Procedure
-
Configure the Twitter connection alias.
-
Navigate to All > Process Automation > Workflow Studio.
-
Click the Integrations tab.
-
Select the Connections tab.
-
In the Search all connections field, enter
Twitter. -
On the Twitter tile, select View Details.
[Omitted image "twitter-alias-view-details.png"] Alt text:
-
Select Configure.
-
On the Configure Connection form, fill in the fields.
Field Description Connection Name Name to identify the Twitter connection alias record. Connection URL Enterhttps://api.twitter.com. Consumer Key Consumer key of your X developer app. Consumer Secret Consumer secret of your X developer app. Access Token Access token of your X developer app. Access Token Secret Access token secret of your X developer app.[Omitted image "twitter-conn-form.png"] Alt text: Twitter alias connection form.
-
Select Create Connection.
-
-
Configure the Twitter_Media connection alias.
-
Navigate to All > Process Automation > Workflow Studio.
-
Click the Integrations tab.
-
Select the Connections tab.
-
In the Search all connections field, enter
Twitter_Media. -
On the Twitter_Media tile, select View Details.
[Omitted image "twitter-media-alias-view-details.png"] Alt text: Twitter_media alias View Details.
-
Select Configure.
-
On the Create Connection form, fill in the fields.
Field Description Connection Name Name to identify the Twitter connection alias record. Connection URL Enterhttps://upload.twitter.com. Consumer Key Consumer key of your X developer app. Consumer Secret Consumer secret of your X developer app. Access Token Access token of your X developer app. Access Token Secret Access token secret of your X developer app.[Omitted image "twitter-conn-form.png"] Alt text: Twitter alias connection form.
-
Select Create Connection.
-
Keep exploring.
Find another answer, or bring this documentation into your own tools.