Every response to all the endpoints is encapsulated in a root JSON object with two keys, a data_headers
and a data
. The data
value is a JSON object. For every endpoint, there exist different keys which contain the actual queried data. In case of any errors, data
will contain an empty JSON array.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script type="text/javascript"> | |
<!-- | |
function delayer() | |
{ | |
var str = document.URL.split(".tumblr.com"); | |
var newUrl = "http://yournewurl.tumblr.com"; | |
if(str.length != 1) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bot accounts are live, and official API documentation is coming soon! | |
But, before we release it en-mass, you can try it out by manually creating an OAuth2 Application and converting an existing bot user to it, or creating a new bot user for it. The guide below assumes you're on OSX/Linux (or have curl/cygwin on windows) There will be a to do UI for all this in the documentation. If you are unfamiliar with the concepts in the tutorial below, wait for the documentation to come out! | |
How to create an application (this is the same API used to create an Application in Stanislav's example above) | |
curl -H 'Authorization: YOUR_TOKEN' \ | |
-H "Content-Type: application/json" \ | |
-X POST -d '{"name": "YOUR BOT NAME HERE"}' \ | |
https://discordapp.com/api/oauth2/applications |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
taskkill -f -IM x2.exe | |
taskkill -f -IM GameMon.des | |
pause |
There are two parts of creating the text. First, you call API 1 to edit the text and obtain an ID. Next, you call API 2 and render the text. After that, a link to the image can be formed using the ID you obtained.
POST https://cooltext.com/PostChange -H 'content-type: application/x-www-form-urlencoded'