Twitter example
The Kubeless GitHub account has a few more example applications that do something more than printing static content or reposting data you sent. In this example, we are going to look at creating a function that posts to a Twitter account.
The Twitter API
Before we look at launching the function we need to generate keys for our function to be able to authenticate against Twitter and then post to your account. To do this, you need the following:
- A Twitter account
- A mobile number registered with the account
If you have them then going to the Twitter application page at https://apps.twitter.com/ will present you with a form to fill in (Application Details)
—I used the following information. However, a few of the fields need to be unique to you; these are marked with *:
Name*
:MedialGlassesKubeless
Description
:Testing posting to Twitter using Kubeless
Website*
:https://media-glass.es/
Callback URL
: Leave blankDeveloper Agreement
: Agree to the agreement
Once you have filled in the preceding...