Twitter

Getting started

With push.delivery you are able to publish your notification as Twitter message.

Twitter API Access

For publishing direct into Twitter you need the Twitter API access. Here are the steps to get the Twitter API access.

  1. Create a Twitter developer account and a Twitter App: https://developer.twitter.com/ The App might require verification from Twitter.

  2. Go to Projects & Apps, select and open your Twitter App and navigate to App permissions and grant read and write permission to write tweets.

  3. From the Keys & tokens tab, generate:

    • Consumer Keys

      • API Key

      • API Secret Key

    • Authentication Tokens

      • Access Token

      • Access Token Secret

The Keys and Tokens are required for setting up the App in Push.Delivery.

Configure Twitter Channel/App in Admin UI

Please switch to the Push.Delivery Admin UI and go into the "Apps" tab and add a new Twitter App.

  1. Give your App a name, e.g. "My Twitter App".

  2. Configure Payload

  3. Configure Twitter API settings

    • Put in the previously generated Keys & Tokens from your Twitter Developer account.

      • Consumer Keys

        • API Key

        • API Secret Key

      • Authentication Tokens

        • Access Token

        • Access Token Secret

After sucessfully creating the App for Twitter the following information will be automatically shown inside the Apps Information Tab:

  • AccessToken: Instead of using username and password an Acess Token is created.

  • platformId: The platform ID.

  • AppId: The App ID.

After setting up the App now it is time to create tags that users can register for. At least one Tag needs to be connected to the newly set-up Twitter-App.

Customize Payload

You can use this default template and modify it to your individual needs:

Jolt-Transformation

[
  {
    "operation": "shift",
    "spec": {
      "message": "message",
      "url": "url"
    }
  }
]

Message and URL fields in Payload are necessary. When performing a Push Message only the message field is mandatory.

Payload in Push Message (Json-Format)

{ "message" : "test" }
To learn more about how to create and modify JOLT templates please follow up in our developer documentation: push-templates