https://github.com/aliaburas80/twitter_microservice
https://github.com/aliaburas80/twitter_microservice
create messages post postgresql posttweets segmantation tinylog tinyurl tweets twitter twitter-server
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/aliaburas80/twitter_microservice
- Owner: aliaburas80
- Created: 2017-05-25T09:28:51.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-30T08:39:10.000Z (over 7 years ago)
- Last Synced: 2025-06-23T23:45:44.164Z (8 months ago)
- Topics: create, messages, post, postgresql, posttweets, segmantation, tinylog, tinyurl, tweets, twitter, twitter-server
- Language: JavaScript
- Size: 78.1 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# twitter_microservice
This microserivce will handel post segment of messages contaion links, hanshtags and messages to tweeter and keep message length equal or less than 140 characters.
You can add as many as you like hashtages and links and this service will manage segment messages and post them.
*You should have account on Twitter Developer, to get your secret and tokens to start using this service
Check out the express interface for this microservice
https://www.npmjs.com/package/twitter-service
How to use.
npm install twitter-service
let tw = require('twitter-service');
tw({
"twitter":{
"consumer_key" :"ENTER YOUR CONSUMER KEY",
"consumer_secret" :"ENTER YOUR CONSUMER SECRET",
"access_token" :"ENTER YOUR ACCESS TOKEN",
"access_token_secret":"ENTER YOUR ACCESS TOKEN SECRET"
},
"links" :['https://github.com/aliaburas80/twitter_microservice'],
"hashtags":"#github#photooftheday#photooftheday#beautiful#fashion#instagood",
"message" :"Hello!"
});
Customiziation
-
Change links
Open index.js and change urls array.
-
Change tweet message.
open service/twitter/twitterManager.js, and change promise message tweetsMessages(twit,links,hashtags,' Amazing! ')
-
Add remove hashtages
open twitter_config/hashtages.js, do your magic.
Dependencies
Ali Abu Ras