This neuron allows you to send a tweet on your timeline.
kalliope install --git-url https://github.com/kalliope-project/kalliope_neuron_twitter.git
parameter | required | default | choices | comment |
---|---|---|---|---|
consumer_key | yes | None | User info | |
consumer_secret | yes | None | User info | |
access_token_key | yes | None | User info | |
access_token_secret | yes | None | User info | |
tweet | yes | None | The sentence to be tweeted |
Name | Description | Type | sample |
---|---|---|---|
tweet | The tweet which has been posted | string | coucou kalliopé |
- name: "post-tweet"
neurons:
- twitter:
consumer_key: ""
consumer_secret: ""
access_token_key: ""
access_token_secret: ""
tweet: "{{ tweet }}"
signals:
- order: "post on Twitter {{ tweet }}"
In order to be able to post on Twitter, you need to grant access of your application on Twitter by creating your own app associate to your profile.
- Sign in your Twitter account
- Let's create your app apps.twitter.com
- click on the button "Create New App"
- Fill in your application details
- Create your access token (to post a tweet, you need at least "Read and Write" access)
- Get your consumer_key, consumer_secret, access_token_key and access_token_secret from the tab "Key and access token" (Keep them secret !)
- Post your first message with this neuron !
Copyright (c) 2016. All rights reserved.
Kalliope is covered by the MIT license, a permissive free software license that lets you do anything you want with the source code, as long as you provide back attribution and "don't hold you liable". For the full license text see the LICENSE.md file.