A RESTful API used to create nth-order Markov chains based on the past tweets from a given Twitter handle. These chains can be used to perform analysis on users or to procedurally generate tweets in their "tweeting-style"
Returns a Markov chain object based on a user's recent tweets.
Name | Information |
---|---|
Resource URL | https://twirkov-api.herokuapp.com/api/chain |
Response format | JSON |
Name | Required | Description | Default Value | Example |
---|---|---|---|---|
screen_name | optional | The screen name of the user for whom to return results | jack | mpolson64 |
order | optional | The order of the Markov chain to be returned | 1 | 4 |
GET https://twirkov-api.herokuapp.com/api/chain?screen_name=davidleebron&order=2
Returns an array of the first words of a user's recent tweets
Name | Information |
---|---|
Resource URL | https://twirkov-api.herokuapp.com/api/seed |
Response format | JSON |
Name | Required | Description | Default Value | Example |
---|---|---|---|---|
screen_name | optional | The screen name of the user for whom to return results | jack | mpolson64 |
order | optional | The number of words in each key, the order of the chain the seed is intended to be used with | 1 | 4 |
GET https://twirkov-api.herokuapp.com/api/seed?screen_name=davidleebron