Ritetag
Ritetag API documentation: http://docs.ritetag.apiary.io/
This software is released under the MIT license. See LICENSE
for more details
Download and Installation
From the command line
$ npm install ritetag
package.json
dependencies: {
...
"ritetag": "*$version*",
...
}
...
Example use
var Ritetag = ; var rt = clientId: 'YOUR_CONSUMER_KEY' clientSecret: 'YOUR_CONSUMER_SECRET' oauthToken: 'YOUR_OAUTH_TOKEN' oauthSecret: 'YOUR_OAUTH_SECRET'; rt;
Documentation
Initialize Ritetag object:
var Ritetag = ;var rt = clientId: 'YOUR_CONSUMER_KEY' || processenvRitetagClientId clientSecret: 'YOUR_CONSUMER_SECRET' || processenvRitetagClientSecret oauthToken: 'YOUR_OAUTH_TOKEN' || processenvRitetagOauthToken oauthSecret: 'YOUR_OAUTH_SECRET' || processenvRitetagOauthSecret debug: false //optional;
hashtagStats(hashtag, callback)
Returns an array of up to 10 hashtags most frequently used in tweets containing your query + returns stats on 'query hashtag' (hashtag created by adding # sign to your query).
rt;
trendingHashtags(query, callback)
Returns an array of up to 20 hashtags trending in the last 24 hours (hourly floating averages)
rt { ...});
influencer(hashtag, callback)
Returns an array of up to 10 influential Twitter accounts using a specific hashtag
rt { ...});
historicalData(hashtag, callback)
Returns daily stats of a hashtag for the last 30 days (tweets, retweets, images, links, mentions etc.)
rt { ...});
socialMediaCoach(query, callback)
Analyzes content of a social media post and returns a tailored array of textual tips on how to improve the reach and engagement of that particular post
rt { ...});
autoEnhancePost(query, callback)
Analyzes content of a social media post and returns arrays of suggested hashtags, images and final version of enhanced post
rt { ...});
API v 2.0
hashtagDirectory(query, callback)
Returns an array of up to 10 hashtags most frequently used in tweets containing your query + returns stats on 'query hashtag' (hashtag created by adding # sign to your query).
rt;
trendingHashtag(query, callback)
Where query
is an object with green
(boolean, optional, default: false) and onlylatin
(boolean, optional, default: false) properties.
rt;
hashtagsForURL(url, callback)
The api call doesn't work.
influencersForHashtag(hashtag, callback)
rt;
historicalData(hashtag, callback)
rt;
tweetGrader(query, callback)
Where query
is an object with tweet
(string, required), photo
(boolean, required) and networks
(string, required, [TWITTER,FACEBOOK]) properties.
rt;