Twitter binding spec

Deprecation notice

The Twitter binding component has been deprecated and will be removed in a future release. See for details.

To setup Twitter binding create a component of type . See on how to create and apply a binding configuration.

Warning

The above example uses secrets as plain strings. It is recommended to use a secret store for the secrets as described .

This component supports output binding with the following operations:

For input binding, where the query matching Tweets are streamed to the user service, the above component has to also include a query:

Output binding

get

For output binding invocation the user code has to invoke the binding:

The metadata parameters are:

  • query - any valid Twitter query (e.g. dapr or dapr AND serverless). See for more details on advanced query formats
  • lang - (optional, default: ) restricts result tweets to the given language using ISO 639-1 language code
  • result - (optional, default: recent) specifies tweet query result type. Valid values include:
    • recent - most recent results
    • - most popular results

You can see the example of the JSON data that Twitter binding returns