GitXplorerGitXplorer
m

twirkov-api

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
babe91f88d62e23f94343dd60f1007f7dabef3de

made sure seeds arent empty

mmpolson64 committed 7 years ago
Unverified
c0476fbfff57cb41e1492821d16b6c93d1e05e68

fixed boolean order of operations causing inf loop

mmpolson64 committed 7 years ago
Verified
fa025165ac3fd7ba6d65633267446fdd632e3283

Back to web dyno

mmpolson64 committed 7 years ago
Unverified
1c5967ca7cc31750ca25dbc23e68b2c0b81df048

Finished cleaning

mmpolson64 committed 7 years ago
Unverified
31e10b5087c8c97fb6f5af15b8410f708f779a18

Cleaned package.jsons

mmpolson64 committed 7 years ago
Unverified
178a58b1ed5a0fce88ae984c55e3f267cbe4e9ed

Removed eslint

mmpolson64 committed 7 years ago

README

The README file for this repository.

twirkov-api

Overview

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"

Routes

GET chain

Returns a Markov chain object based on a user's recent tweets.

Resource Information

Name Information
Resource URL https://twirkov-api.herokuapp.com/api/chain
Response format JSON

Parameters

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

Example Request

GET https://twirkov-api.herokuapp.com/api/chain?screen_name=davidleebron&order=2

GET seed

Returns an array of the first words of a user's recent tweets

Resource Information

Name Information
Resource URL https://twirkov-api.herokuapp.com/api/seed
Response format JSON

Parameters

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

Example Request

GET https://twirkov-api.herokuapp.com/api/seed?screen_name=davidleebron