Skip to content

Instantly share code, notes, and snippets.

@DasWolke
Last active April 8, 2018 16:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DasWolke/3b1f884ac7779faab7e1026feed78b6c to your computer and use it in GitHub Desktop.
Save DasWolke/3b1f884ac7779faab7e1026feed78b6c to your computer and use it in GitHub Desktop.

Auto-Image

Environment URL Purpose
development http://localhost:9030 local development
staging https://staging.weeb.sh/auto-image/ testing of new features
production https://api.weeb.sh/auto-image/ production usage

Every endpoint either returns a PNG image buffer or a json response in case of an error

Methods

Endpoints

Generate Simple

Endpoint /generate

Method GET

Needed permissions

Permission name description
generate_simple Used for simple generations

Parameters

Parameter name Type description default required
type String type of the generation to create, possible types are listed below x
face String (Hex Color) only used with awooo type, defines color of face fff0d3
hair String (Hex Color) only used with awooo type, defines color of hair/fur cc817c

Types

awooo:

awoo image

eyes:

eyes image

won:

won image

Discord Status

Endpoint /discord-status

Method GET

Needed permissions

Permission name description
generate_simple Used for simple generations

Parameters

Parameter name Type description default required
status String discord status of the mock, has to be one of the states listed below online
avatar String uri encoded http/s url pointing to an avatar, has to have proper headers and be a direct link to an image green default avatar

Discord States

online

awoo online

idle

awoo idle

dnd

awoo dnd

streaming

awoo streaming

offline

awoo offline

License generation

Endpoint /license

Method POST

Needed permissions

Permission name description
generate_license Used for generating licenses

Payload

Name Type description default required
title String Title of the license x
avatar String http/s url pointing to an image, has to have proper headers and be a direct link to an image x
badges String[] Array of http/s urls pointing to images, that should be used in the badges, same conditions as for avatar apply
widgets String[] Array of strings for filling the three boxes with text content

Example payload

{
	"title":"Spook License",
	"avatar":"https://imgur.com/zPn0DYT.png",
	"badges":[
		"https://imgur.com/zPn0DYT.png",
		"https://imgur.com/zPn0DYT.png",
		"https://imgur.com/zPn0DYT.png"
		],
	"widgets":["1", "2", "3"]
}

example license

Generate Waifuinsult

Endpoint /waifu-insult

Method POST

Needed permissions

Permission name description
generate_waifu_insult Used for generating waifuinsults

Parameters

Name Type description default required
avatar String http/s url pointing to an image, has to have proper headers and be a direct link to an image x

Example payload

{
"avatar":"https://cdn.discordapp.com/avatars/121919449996460033/d52f23a57dbe54bb39b77d96d61a5a92.webp"
}

Waifu Insult demo

Generate Loveship

Endpoint /love-ship

Method POST

Needed permissions

Permission name description
generate_love_ship Used for generating love ships

Parameters

Name Type description default required
targetOne String http/s url pointing to an image, has to have proper headers and be a direct link to an image, image will be on the left side. x
targetTwo String http/s url pointing to an image, has to have proper headers and be a direct link to an image, image will be on the right side. x

Example payload

{
	"targetOne": "https://cdn.discordapp.com/avatars/185476724627210241/615ee9f0e97aab7fa0725165531df3a7.webp?size=256",
    "targetTwo": "https://cdn.discordapp.com/avatars/388799526103941121/b5acd5dd89aa8ff7c3600f2b7edaff57.webp?size=256"
}

Love Ship demo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment