Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lytics-smm-demo-0.1.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

lytics_smm_demo-0.1.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file lytics-smm-demo-0.1.0.tar.gz.

File metadata

  • Download URL: lytics-smm-demo-0.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.10.9

File hashes

Hashes for lytics-smm-demo-0.1.0.tar.gz
Algorithm Hash digest
SHA256 36b0f1327923a0d370d3e7087a4f750d007df3f4dda869a655565cc9be0b2296
MD5 f3f3b674c22f28b30fc013be16e2bd37
BLAKE2b-256 cb52ea50373994b129ace5c4afab0554cdfd1abc3edbf4308e1908b4a64fd6f6

See more details on using hashes here.

File details

Details for the file lytics_smm_demo-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for lytics_smm_demo-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b293502360b43c82e851fe212ffca002e258659f60299266df3aa3a96a742044
MD5 e5640c48cd2c35acdd4dcfea3d4edfdc
BLAKE2b-256 aff3dbad34f7aa22236945aa841c4c47a543ca77abd4c0e37a594856997f14e7

See more details on using hashes here.

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