You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by nf...@apache.org on 2021/03/29 13:34:40 UTC
[camel-kamelets] branch master updated (910d5bd -> d352b1b)
This is an automated email from the ASF dual-hosted git repository.
nferraro pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git.
from 910d5bd Twitter search kamelet: Removed modeline
new 715355f Added Twitter Timeline Kamelet Source
new 2d779f9 Added Twitter Timeline Kamelet Source
new d352b1b Added Twitter Timeline Kamelet Source
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
...arch-source.svg => twitter-timeline-source.svg} | 0
docs/modules/ROOT/nav.adoc | 1 +
...ch-source.adoc => twitter-timeline-source.adoc} | 24 +++++++++++-----------
...h.kamelet.yaml => twitter-timeline.kamelet.yaml | 19 +++++++++--------
4 files changed, 23 insertions(+), 21 deletions(-)
copy docs/modules/ROOT/assets/images/kamelets/{twitter-search-source.svg => twitter-timeline-source.svg} (100%)
copy docs/modules/ROOT/pages/{twitter-search-source.adoc => twitter-timeline-source.adoc} (68%)
copy twitter-search.kamelet.yaml => twitter-timeline.kamelet.yaml (92%)
[camel-kamelets] 03/03: Added Twitter Timeline Kamelet Source
Posted by nf...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
nferraro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit d352b1b2a42e50ca411e02d62310ce048f4087d5
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Mar 29 13:34:10 2021 +0200
Added Twitter Timeline Kamelet Source
---
.../images/kamelets/twitter-timeline-source.svg | 6 ++
.../ROOT/pages/twitter-timeline-source.adoc | 71 ++++++++++++++++++++++
2 files changed, 77 insertions(+)
diff --git a/docs/modules/ROOT/assets/images/kamelets/twitter-timeline-source.svg b/docs/modules/ROOT/assets/images/kamelets/twitter-timeline-source.svg
new file mode 100644
index 0000000..c0364cc
--- /dev/null
+++ b/docs/modules/ROOT/assets/images/kamelets/twitter-timeline-source.svg
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg width="256px" height="209px" viewBox="0 0 256 209" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid">
+ <g>
+ <path d="M256,25.4500259 C246.580841,29.6272672 236.458451,32.4504868 225.834156,33.7202333 C236.678503,27.2198053 245.00583,16.9269929 248.927437,4.66307685 C238.779765,10.6812633 227.539325,15.0523376 215.57599,17.408298 C205.994835,7.2006971 192.34506,0.822 177.239197,0.822 C148.232605,0.822 124.716076,24.3375931 124.716076,53.3423116 C124.716076,57.4586875 125.181462,61.4673784 126.076652,65.3112644 C82.4258385,63.1210453 43.7257252,42.211429 17.821398,10.4359288 C13.3005011, [...]
+ </g>
+</svg>
\ No newline at end of file
diff --git a/docs/modules/ROOT/pages/twitter-timeline-source.adoc b/docs/modules/ROOT/pages/twitter-timeline-source.adoc
new file mode 100644
index 0000000..1ed593b
--- /dev/null
+++ b/docs/modules/ROOT/pages/twitter-timeline-source.adoc
@@ -0,0 +1,71 @@
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
+= image:kamelets/twitter-timeline-source.svg[] Twitter Timeline Source
+
+*Provided by: "Apache Software Foundation"*
+
+Allows to get tweets from the timeline of a specific user from Twitter.
+
+It requires tokens that can be obtained by creating an application
+in the Twitter developer portal: https://developer.twitter.com/.
+
+== Configuration Options
+
+The following table summarizes the configuration options available for the `twitter-timeline-source` Kamelet:
+[width="100%",cols="2,^2,3,^2,^2,^3",options="header"]
+|===
+| Property| Name| Description| Type| Default| Example
+| *accessToken {empty}* *| Access Token| The Access Token from the Twitter application in the developer portal| string| |
+| *accessTokenSecret {empty}* *| Access Token Secret| The Access Token Secret from the Twitter application in the developer portal| string| |
+| *apiKey {empty}* *| API Key| The API Key from the Twitter application in the developer portal| string| |
+| *apiKeySecret {empty}* *| API Key Secret| The API Key Secret from the Twitter application in the developer portal| string| |
+| *user {empty}* *| User| The user we want to read the timeline| string| | `"ApacheCamel"`
+|===
+
+NOTE: Fields marked with ({empty}*) are mandatory.
+
+== Usage
+
+This section summarizes how the `twitter-timeline-source` can be used in various contexts.
+
+=== Knative Source
+
+The `twitter-timeline-source` Kamelet can be used as Knative source by binding it to a Knative object.
+
+.twitter-timeline-source-binding.yaml
+[source,yaml]
+----
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+ name: twitter-timeline-source-binding
+spec:
+ source:
+ ref:
+ kind: Kamelet
+ apiVersion: camel.apache.org/v1alpha1
+ name: twitter-timeline-source
+ properties:
+ accessToken: "The Access Token"
+ accessTokenSecret: "The Access Token Secret"
+ apiKey: "The API Key"
+ apiKeySecret: "The API Key Secret"
+ user: "ApacheCamel"
+ sink:
+ ref:
+ kind: InMemoryChannel
+ apiVersion: messaging.knative.dev/v1
+ name: mychannel
+
+----
+
+Make sure you have xref:latest@camel-k::installation/installation.adoc[Camel K installed] into the Kubernetes cluster you're connected to.
+
+Save the `twitter-timeline-source-binding.yaml` file into your hard drive, then configure it according to your needs.
+
+You can run the source using the following command:
+
+[source,shell]
+----
+kubectl apply -f twitter-timeline-source-binding.yaml
+----
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
[camel-kamelets] 01/03: Added Twitter Timeline Kamelet Source
Posted by nf...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
nferraro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 715355ff4580e6619027d10520e96c75fa1fdb0f
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Mar 29 13:33:21 2021 +0200
Added Twitter Timeline Kamelet Source
---
twitter-timeline.kamelet.yaml | 74 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 74 insertions(+)
diff --git a/twitter-timeline.kamelet.yaml b/twitter-timeline.kamelet.yaml
new file mode 100755
index 0000000..ea2f599
--- /dev/null
+++ b/twitter-timeline.kamelet.yaml
@@ -0,0 +1,74 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+ name: twitter-timeline-source
+ annotations:
+ camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+Cjxzdmcgd2lkdGg9IjI1NnB4IiBoZWlnaHQ9IjIwOXB4IiB2aWV3Qm94PSIwIDAgMjU2IDIwOSIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCI+CiAgICA8Zz4KICAgICAgICA8cGF0aCBkPSJNMjU2LDI1LjQ1MDAyNTkgQzI0Ni41ODA4NDEsMjkuNjI3MjY3MiAyMzYuNDU4NDUxLDMyLjQ1MDQ4NjggMj [...]
+ camel.apache.org/provider: "Apache Software Foundation"
+ labels:
+ camel.apache.org/kamelet.type: "source"
+ camel.apache.org/kamelet.group: "Twitter"
+spec:
+ definition:
+ title: "Twitter Timeline Source"
+ description: |-
+ Allows to get tweets from the timeline of a specific user from Twitter.
+
+ It requires tokens that can be obtained by creating an application
+ in the Twitter developer portal: https://developer.twitter.com/.
+ required:
+ - user
+ - apiKey
+ - apiKeySecret
+ - accessToken
+ - accessTokenSecret
+ properties:
+ user:
+ title: User
+ description: The user we want to read the timeline
+ type: string
+ example: "ApacheCamel"
+ apiKey:
+ title: API Key
+ description: The API Key from the Twitter application in the developer portal
+ type: string
+ format: password
+ x-descriptors:
+ - urn:alm:descriptor:com.tectonic.ui:password
+ 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:alm:descriptor:com.tectonic.ui:password
+ accessToken:
+ title: Access Token
+ description: The Access Token from the Twitter application in the developer portal
+ type: string
+ format: password
+ x-descriptors:
+ - urn:alm:descriptor:com.tectonic.ui:password
+ 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:alm:descriptor:com.tectonic.ui:password
+ types:
+ out:
+ mediaType: application/json
+ flow:
+ from:
+ uri: "twitter-timeline:user"
+ parameters:
+ user: "{{user}}"
+ accessToken: "{{accessToken}}"
+ accessTokenSecret: "{{accessTokenSecret}}"
+ consumerKey: "{{apiKey}}"
+ consumerSecret: "{{apiKeySecret}}"
+ steps:
+ - marshal:
+ json: {}
+ - to: "kamelet:sink"
[camel-kamelets] 02/03: Added Twitter Timeline Kamelet Source
Posted by nf...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
nferraro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 2d779f944acc7dc830aa46188e783aeaf3cb2949
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Mar 29 13:33:58 2021 +0200
Added Twitter Timeline Kamelet Source
---
docs/modules/ROOT/nav.adoc | 1 +
1 file changed, 1 insertion(+)
diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc
index db36965..945672a 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -35,5 +35,6 @@
* xref:ROOT:telegram-source.adoc[image:kamelets/telegram-source.svg[] Telegram Source]
* xref:ROOT:timer-source.adoc[image:kamelets/timer-source.svg[] Timer Source]
* xref:ROOT:twitter-search-source.adoc[image:kamelets/twitter-search-source.svg[] Twitter Search Source]
+* xref:ROOT:twitter-timeline-source.adoc[image:kamelets/twitter-timeline-source.svg[] Twitter Timeline Source]
* xref:ROOT:webhook-source.adoc[image:kamelets/webhook-source.svg[] Webhook Source]
// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT