Add to the config files Twitter consumer/access key/secret from the Twitter developer account
Create a script to insert tweet id, reward, active? (status) information into db
Create a separate service that keeps track of retweets / hashtags coming in
Use set interval similar to blockchain-info to make request to twitter every few minutes
Search for retweets of tweets made by the EQB Twitter account and check if those tweets are made by the user in our system, and the tweet is a tweet in our db we are keeping track of
Perform a payout similar to how ICO/questionnaire rewards work
Create a seperate service to keep track of user rewards
More TODO (campaign features):
[ ] Check dates (from/to) when a tweet is eligible for rewards;
[ ] Check dayAmountCap (number of tweets per day that are eligible for rewards, marketing feature);
[ ] Check maxRewardCap (amount of EQB that can be spent for a tweet, security feature).
TODO:
More TODO (campaign features):
dayAmountCap
(number of tweets per day that are eligible for rewards, marketing feature);maxRewardCap
(amount of EQB that can be spent for a tweet, security feature).References: https://developer.twitter.com/en/docs/tweets/search/guides/premium-operators
Twitter API to query retweets: