Twitter binding spec

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

Warning

以上示例将密钥明文存储, It is recommended to use a secret store for the secrets as described .

字段名为 。

  • get

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

输出绑定

get

Where the payload is:

The metadata parameters are:

  • query - any valid Twitter query (e.g. dapr or dapr AND serverless). See Twitter docs for more details on advanced query formats
  • - (optional, default: en) restricts result tweets to the given language using
  • result - (optional, default: recent) specifies tweet query result type. Valid values include:
    • mixed - both popular and real time results
    • popular - most popular results