Resources »

Guides »

Integrations »

Twitter »

Cerb + Twitter

Introduction

In this guide we’ll walk through the process of linking Cerb to Twitter. You’ll be able to use Twitter’s full API from bots in Cerb to automate whatever you need.

Create an OAuth application at Twitter

Next, you need to create a new OAuth app on Twitter for Cerb to connect to. Review the Twitter Developer Documentation additionally if needed.

  1. Visit the Twitter Create an application developer page.

  2. Enter the following details replacing the highlighted blocks with your info:
    • Name: Cerb for Your Company Name
    • Description: Connects your Twitter account with Cerb Helpdesk
    • Website: https://example.cerb.me
    • Callback URL: https://YOUR-CERB-HOST/oauth/callback
  3. Click the Create your Twitter application button.

  4. Make a note for the next step of your Consumer Key and Consumer Secret which can be found in the Keys and Access Tokens tab on the following page.

Create the Twitter service in Cerb

  1. Navigate to Search » Connected Services.

  2. Click the (+) icon in the top right of the list.

  3. Select Twitter.

  4. Enter your Consumer Key and Consumer Secret.

  5. Click the Create button.

Link the connected account to Twitter in Cerb

  1. Navigate to Search » Connected Accounts.

  2. Click the (+) icon in the top right of the list.

  3. Select Twitter.

  4. Click the blue Link to Twitter button.

  5. Accept consent on Twitter.

  6. Click the Save Changes button.

Use the connected account in bot behaviors

You can use the connected account you just created to access Twitter’s API from bot behaviors in Cerb. This is typically accomplished using the Execute HTTP Request action from a bot, and selecting the connected account in the Authentication: section.

You can import the Twitter Bot package for a working example.