Skip to main content

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


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)

Uploaded Source

Built Distribution

Img2UrlApi-0.2-py3-none-any.whl (2.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page