-
Notifications
You must be signed in to change notification settings - Fork 24
Examples using CURL
The curl
commands allows you to get text from HTTP endpoints to output anything you like!
Here are some examples of how it can be used:
/yt!ds,curl(https://kboard-api.glitch.me/youtube/$0)
An endpoint that searches the Youtube API, and returns the URL for the first video found.
/tweet!ds,curl(https://kboard-api.glitch.me/tweet/$0)
An endpoint that gets a human-sounding tweet for the provided text.
/askreddit!ds,curl(https://kboard-api.glitch.me/reddit/AskReddit)
Prints a random title from the trending posts on AskReddit (can be used with any subreddit)
/wolfram!ds,curl(https://api.wolframalpha.com/v1/result?appid=<APP_ID>&i=$0)
Uses the Wolfram Short Answers API to retrieve answers to anything Wolfram Alpha can answer. (Requires API key, by registering on the API page. Note - the api key may take a while to be activated!)
/cat!curl(https://kboard-api.glitch.me/catfact)
Outputs a cat fact from a Cat Fact API
/dad joke!curl(https://icanhazdadjoke.com/)
Outputs a random lame joke.