mirror of
https://github.com/kevin-DL/services.git
synced 2026-03-11 21:54:56 +00:00
add a twitter service
This commit is contained in:
30
twitter/README.md
Normal file
30
twitter/README.md
Normal file
@@ -0,0 +1,30 @@
|
||||
# Twitter Service
|
||||
|
||||
This is the Twitter service
|
||||
|
||||
Generated with
|
||||
|
||||
```
|
||||
micro new twitter
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
Create a new app in the twitter [developer portal](https://developer.twitter.com/en/apps).
|
||||
|
||||
Then set the config for the api token, secret, consumer key and consumer secret
|
||||
|
||||
```
|
||||
micro config set twitter.api_token xxxx
|
||||
micro config set twitter.api_token_secret xxxx
|
||||
micro config set twitter.consumer_key xxxx
|
||||
micro config set twitter consumer_secret xxxx
|
||||
```
|
||||
|
||||
Now tweet stuff
|
||||
|
||||
```
|
||||
micro twitter api tweet --status "Tweeting via a microservice"
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user