Twitter binding spec
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
Where the payload is:
The metadata parameters are:
query
- any valid Twitter query (e.g.dapr
ordapr AND serverless
). See Twitter docs for more details on advanced query formatslang
- (optional, default: ) restricts result tweets to the given language usingresult
- (optional, default:recent
) specifies tweet query result type. Valid values include:mixed
- both popular and real time results- - most popular results