Dhravya / dhravyaAPI

2 stars 0 forks source link

Dhravya API Endpoints

/8ball (GET) {/eightball} - Get a random answer

Params: None

/qrcode (GET) {/qr} - Get a QR code

Params:

QR code returns: A PNG image of the qr code

/meme (GET) {/memes} - Gets a random meme from reddit

Params: subreddit - Choose a subreddit to get memes from (Instead of using the default) Current sources of random memes are:

/meme/ (GET) {/memes/} - Gets a meme according to your query

Pre-Listed topics (For subreddits):

{
"random" : ["memes","meme","dankmemes"],
"memes" : ["memes"],
"coding" : ["programmerhumor","programmingmemes","programminghumor","codingmemes","pythonmemes","javascriptmemes"]
}

Pre listed topics means that these endpoints automatically choose from these "hot" subreddits for you, instead of searching for a relevant subreddit.

Returns: A response with the information about the meme on reddit, as a json

/ocr (GET) - Get the text from an image

Params:

Returns: A response with the text from the image as a JSON

/compliment (GET) {/compliments} - Get a compliment

Params: None

Returns: A compliment as a JSON response

/wyr (GET) {/wouldyourather} - Get a would you rather question

Params: None

Returns: A would you rather question as a JSON response

/joke (GET) {/jokes} - Gets a random joke

Params: None

Returns: A random joke as a JSON response

Currently accepted colours: