Add kamelet definition: twitter-search-source
This commit is contained in:
parent
0391db3f98
commit
8f615b9958
151
kamelet.json
Normal file
151
kamelet.json
Normal file
@ -0,0 +1,151 @@
|
|||||||
|
{
|
||||||
|
"apiVersion": "camel.apache.org/v1",
|
||||||
|
"kind": "Kamelet",
|
||||||
|
"metadata": {
|
||||||
|
"name": "twitter-search-source",
|
||||||
|
"annotations": {
|
||||||
|
"camel.apache.org/kamelet.support.level": "Stable",
|
||||||
|
"camel.apache.org/catalog.version": "4.22.1",
|
||||||
|
"camel.apache.org/kamelet.icon": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+Cjxzdmcgd2lkdGg9IjI1NnB4IiBoZWlnaHQ9IjIwOXB4IiB2aWV3Qm94PSIwIDAgMjU2IDIwOSIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCI+CiAgICA8Zz4KICAgICAgICA8cGF0aCBkPSJNMjU2LDI1LjQ1MDAyNTkgQzI0Ni41ODA4NDEsMjkuNjI3MjY3MiAyMzYuNDU4NDUxLDMyLjQ1MDQ4NjggMjI1LjgzNDE1NiwzMy43MjAyMzMzIEMyMzYuNjc4NTAzLDI3LjIxOTgwNTMgMjQ1LjAwNTgzLDE2LjkyNjk5MjkgMjQ4LjkyNzQzNyw0LjY2MzA3Njg1IEMyMzguNzc5NzY1LDEwLjY4MTI2MzMgMjI3LjUzOTMyNSwxNS4wNTIzMzc2IDIxNS41NzU5OSwxNy40MDgyOTggQzIwNS45OTQ4MzUsNy4yMDA2OTcxIDE5Mi4zNDUwNiwwLjgyMiAxNzcuMjM5MTk3LDAuODIyIEMxNDguMjMyNjA1LDAuODIyIDEyN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5ODcxNjEsMTg2LjAwNDYwNCA0LjEwODg4NDc0LDE4NS43NTY0NiAwLDE4NS4yNzE0MDkgQzIzLjI0MzEwMzMsMjAwLjE3MzEzOSA1MC44NTA3MjYxLDIwOC44Njc1MzIgODAuNTEwOTE4NSwyMDguODY3NTMyIEMxNzcuMTE2NTI5LDIwOC44Njc1MzIgMjI5Ljk0Mzk3NywxMjguODM2OTgyIDIyOS45NDM5NzcsNTkuNDMyNjAwMiBDMjI5Ljk0Mzk3Nyw1Ny4xNTUyOTY4IDIyOS44OTM0MTIsNTQuODkwMTY2NCAyMjkuNzkyMjgyLDUyLjYzODE0NTQgQzI0MC4wNTMyNTcsNDUuMjMzMTYzNSAyNDguOTU4MzM4LDM1Ljk4MjU1NDUgMjU2LDI1LjQ1MDAyNTkiIGZpbGw9IiM1NWFjZWUiPjwvcGF0aD4KICAgIDwvZz4KPC9zdmc+",
|
||||||
|
"camel.apache.org/provider": "Apache Software Foundation",
|
||||||
|
"camel.apache.org/kamelet.group": "Twitter",
|
||||||
|
"camel.apache.org/kamelet.namespace": "Social"
|
||||||
|
},
|
||||||
|
"labels": {
|
||||||
|
"camel.apache.org/kamelet.type": "source"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"spec": {
|
||||||
|
"definition": {
|
||||||
|
"title": "Twitter Search Source",
|
||||||
|
"description": "Allows to get all tweets on particular keywords from Twitter.",
|
||||||
|
"required": [
|
||||||
|
"keywords",
|
||||||
|
"apiKey",
|
||||||
|
"apiKeySecret",
|
||||||
|
"accessToken",
|
||||||
|
"accessTokenSecret"
|
||||||
|
],
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"keywords": {
|
||||||
|
"title": "Keywords",
|
||||||
|
"description": "The keywords to use in the Twitter search (Supports Twitter standard operators)",
|
||||||
|
"type": "string",
|
||||||
|
"example": "Apache Camel"
|
||||||
|
},
|
||||||
|
"apiKey": {
|
||||||
|
"title": "API Key",
|
||||||
|
"description": "The API Key from the Twitter application in the developer portal",
|
||||||
|
"type": "string",
|
||||||
|
"format": "password",
|
||||||
|
"x-descriptors": [
|
||||||
|
"urn:camel:group:credentials"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"apiKeySecret": {
|
||||||
|
"title": "API Key Secret",
|
||||||
|
"description": "The API Key Secret from the Twitter application in the developer portal",
|
||||||
|
"type": "string",
|
||||||
|
"format": "password",
|
||||||
|
"x-descriptors": [
|
||||||
|
"urn:camel:group:credentials"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"accessToken": {
|
||||||
|
"title": "Access Token",
|
||||||
|
"description": "The Access Token from the Twitter application in the developer portal",
|
||||||
|
"type": "string",
|
||||||
|
"format": "password",
|
||||||
|
"x-descriptors": [
|
||||||
|
"urn:camel:group:credentials"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"accessTokenSecret": {
|
||||||
|
"title": "Access Token Secret",
|
||||||
|
"description": "The Access Token Secret from the Twitter application in the developer portal",
|
||||||
|
"type": "string",
|
||||||
|
"format": "password",
|
||||||
|
"x-descriptors": [
|
||||||
|
"urn:camel:group:credentials"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"types": {
|
||||||
|
"out": {
|
||||||
|
"mediaType": "application/json"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"dependencies": [
|
||||||
|
"camel:jackson",
|
||||||
|
"camel:twitter",
|
||||||
|
"camel:kamelet"
|
||||||
|
],
|
||||||
|
"template": {
|
||||||
|
"from": {
|
||||||
|
"uri": "twitter-search:{{keywords}}",
|
||||||
|
"parameters": {
|
||||||
|
"accessToken": "{{accessToken}}",
|
||||||
|
"accessTokenSecret": "{{accessTokenSecret}}",
|
||||||
|
"consumerKey": "{{apiKey}}",
|
||||||
|
"consumerSecret": "{{apiKeySecret}}"
|
||||||
|
},
|
||||||
|
"steps": [
|
||||||
|
{
|
||||||
|
"marshal": {
|
||||||
|
"json": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"to": "kamelet:sink"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"propertiesSchema": {
|
||||||
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
|
"type": "object",
|
||||||
|
"title": "Twitter Search Source",
|
||||||
|
"description": "Allows to get all tweets on particular keywords from Twitter.",
|
||||||
|
"required": [
|
||||||
|
"keywords",
|
||||||
|
"apiKey",
|
||||||
|
"apiKeySecret",
|
||||||
|
"accessToken",
|
||||||
|
"accessTokenSecret"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"keywords": {
|
||||||
|
"type": "string",
|
||||||
|
"title": "Keywords",
|
||||||
|
"description": "The keywords to use in the Twitter search (Supports Twitter standard operators)"
|
||||||
|
},
|
||||||
|
"apiKey": {
|
||||||
|
"type": "string",
|
||||||
|
"title": "API Key",
|
||||||
|
"description": "The API Key from the Twitter application in the developer portal",
|
||||||
|
"format": "password"
|
||||||
|
},
|
||||||
|
"apiKeySecret": {
|
||||||
|
"type": "string",
|
||||||
|
"title": "API Key Secret",
|
||||||
|
"description": "The API Key Secret from the Twitter application in the developer portal",
|
||||||
|
"format": "password"
|
||||||
|
},
|
||||||
|
"accessToken": {
|
||||||
|
"type": "string",
|
||||||
|
"title": "Access Token",
|
||||||
|
"description": "The Access Token from the Twitter application in the developer portal",
|
||||||
|
"format": "password"
|
||||||
|
},
|
||||||
|
"accessTokenSecret": {
|
||||||
|
"type": "string",
|
||||||
|
"title": "Access Token Secret",
|
||||||
|
"description": "The Access Token Secret from the Twitter application in the developer portal",
|
||||||
|
"format": "password"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user