Official Urlcut Public API package.
Project description
Urlcut.py
This is the official Urlcut Python package.
Install
pip install Urlcut.py
Usage
import urlcutpy as Urlcut
Urlcut.Authenticate("API-Key")
How to shortend a link
Response = Urlcut.Create("https://www.example.com")
print(Response)
Output
{
"success": true,
"shortened": "CxTYCb",
"domain": "example.com",
"credits": 0.4
}
How to delete an existing short link
Response = Urlcut.Delete("Example-Short")
print(Response)
Output
{
"success": true
}
How to get the analytics of a short link
Response = Urlcut.Analytics("Example-Short")
print(Response)
Output
{
"success": true,
"countriesOfTheUsers": [ { "DE": 1 } ],
"usersDeviceType": { "PC": 1, "PHONE": 0 }
}
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
Urlcut.py-1.1.0.tar.gz
(2.9 kB
view details)
File details
Details for the file Urlcut.py-1.1.0.tar.gz.
File metadata
- Download URL: Urlcut.py-1.1.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f621b02bd337d2db473504e53589e081ee726a0205b79e30c1652e0e61050f24
|
|
| MD5 |
46effda88422309dc5dc194220a47e58
|
|
| BLAKE2b-256 |
71749766156a8039b17e2f67be2fb586b43d240e31ea8a39047f709f5432db0e
|