A Python package for interacting with the Lytics SMM API
Project description
lytics-smm-demo
A Python package for interacting with the Lytics.lol SMM API.
Installation
Install the package using pip:
pip install lytics-smm-demo
* currently demo *
Usage
To use the functions in this package, import the Lytics class from lytics, and create an instance with your API key.
from lytics import Lytics
api_key = 'API_Key_Here'
lytics = Lytics(api_key)
you can then use any of the functions below using the 'lytics' object.
Functions
For a list of availible services:
services = lytics.services()
print(services)
To check your balance:
balance = lytics.balance()
print(balance)
To create a new order, there is multiple options:
# Default
order = lytics.order(service_id=1, link='http://example.com/username', quantity=100, runs=2, interval=5)
print(order)
# Custom Comments
order = lytics.order(service_id=1, link='http://example.com/username', comments="good pic\ngreat photo\n:)\n;)")
print(order)
# Mentions with Hashtags
order = lytics.order(service_id=1, link='http://example.com/username', quantity=100, usernames="test, testing", hashtags="#goodphoto")
print(order)
# Mentions User Followers
order = lytics.order(service_id=1, link='http://example.com/username', quantity=1000, username="test")
print(order)
# Package
order = lytics.order(service_id=1, link='http://example.com/username')
print(order)
# Subscriptions (Old posts only)
order = lytics.order(service_id=1, username='username', min=100, max=110, posts=0, delay=30, expiry='11/11/2022')
print(order)
# Subscriptions (Unlimited new posts and 5 old posts)
order = lytics.order(service_id=1, username='username', min=100, max=110, old_posts=5, delay=30, expiry='11/11/2022')
print(order)
# Poll
order = lytics.order(service_id=1, link='http://example.com/test', quantity=100, answer_number='7')
print(order)
# Invites from Groups
order = lytics.order(service_id=1, link='http://example.com/test', quantity=100, groups="group1\ngroup2")
print(order)
To check the status of a order / multiple orders:
status = lytics.status(order_id=11234)
print(status)
# check multiple order status's
multi_status = lytics.multi_status(order_ids=[12342, 34634, 12301, 34453])
print(multi_status)
To create a new refill / multiple refills:
refill = lytics.refill(order_id=12345)
print(refill)
# create multiple refills
multi_refill = lytics.multi_refill(order_ids=[12342, 34634, 12983, 23443])
print(multi_refill)
To check the status of a refill / multiple refills:
status = lytics.refill_status(refill_id=23423)
print(status)
# check multiple refill status's
multi_status = lytics.multi_refill_status(refill_ids=[23423, 12344, 91818, 12311])
print(status)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lytics-smm-demo-0.1.1.tar.gz.
File metadata
- Download URL: lytics-smm-demo-0.1.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e03d3e7cb3c65d730ceac9504726395f80d425d5bec7ef155011b4fed2b7c9cf
|
|
| MD5 |
ddb8748373f81516824aa7d4e05378a0
|
|
| BLAKE2b-256 |
3ead4a3adf634d45780fa66668961d59438c1512fd5be508dae85a937fe8b0a4
|
File details
Details for the file lytics_smm_demo-0.1.1-py3-none-any.whl.
File metadata
- Download URL: lytics_smm_demo-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae61dfd64ed4b17027011599eb3865139495fac51d13cab2dc8228840f2e3103
|
|
| MD5 |
9456f17ac34f73b4e908e0d0c23cca3e
|
|
| BLAKE2b-256 |
c1cee5c0fb6c1b2d0f5c97286672fbc755bf9512ce3eaa309f08394901dc599d
|