Skip to content

original source code of a simple php based random image delivery system

License

Notifications You must be signed in to change notification settings

BlackFireHUN/rektapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rektapi

originally designed for serving images to discord bot's... u can use it as u wish tho..

install & usage

make a directory inside the rektapi's root dir/img/{yourendpointdir} put a copy of /img/index.php to your endpoint's dir... put an /img/ dir to your endpoints dir put images into your endpoints /img/ dir

u can call it by: yourdomain.com/rektapi/img/{yourendpointdir}

it will output a json like so:

{"url":"http:\/\/cdn.blackfire.hu\/img\/meme\/img\/meme0084.png"}

using the api with node js:

		const superagent = require("superagent");

		const link = "https://yourdomain.com/rektapi/img/{yourendpointdir}";
		superagent.get(link).end((err, response) => {
			  console.log(response.body.url)
		  });	

link and other stuff

https://rektapi.blackfire.hu

AUTHOR

BlackFire

Pippo1101

About

original source code of a simple php based random image delivery system

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published