Img2Url-Api for images hosting
Project description
Img2Url-API
API for image hosting eg. www.img2url.site
#Example:
import
from ImgUploader import ImgUploader
init
url = "http://www.vitz.usermd.net"
user_key = "LXJdKWdqR2UEfaOcgLdAupYlFXY"
sec_key = "KMEXnv5PTvmevfIsZbv5Igo7Guc"
img_uploader = ImgUploader(url, user_key, sec_key)
upload
for i in range(100):
print(i)
img_uploader.post_image("test.jpg")
get
img = img_uploader.get_image(107)
print(img)
get all
imgs = img_uploader.get_images()
print(imgs)
remove
print(img_uploader.remove_image(109))
removel all
print(img_uploader.remove_all())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Img2UrlApi-0.2.tar.gz
(2.0 kB
view hashes)