Ballerina can also become a useful tool for DevOps engineers who welcome the challenge of learning a new language. The example below shows how a ballerina script that uses the twitter API can be embedded into a shell script. Similarly you can avail any one of the ballerina connectors listed here[1].
Execute the script as follows,
./script.sh <consumerKey> <consumerSecret> <accessToken> <accessTokenSecret>
Look to the ballerina 0.8X twitter connector sample readme for further instructions. Find out more about ballerina here: http://ballerinalang.org
[1] - http://ballerinalang.org/docs/api/0.8/
Note: this example was written for ballerina 0.86 and may not work with other versions.
No comments:
Post a Comment