Skip to main content

library for working api pilk-clicker.ru

Project description

pilk-clicker

Library for working api pilk-clicker.ru

Installation

pip install pilk-clicker

Usage

Get token (login)

from pilk_clicker.api import Auth
from pilk_clicker.interfaces.auth import ILoginRequest

credentials = ILoginRequest(
    username="", password=""
)

response = Auth.login(credentials)

response.auth_token

Logout

from pilk_clicker.api import Auth
from pilk_clicker.interfaces.auth import ITokenRequest

credentials = ITokenRequest(authorization="token")

Auth.logout(credentials)

Logup

from pilk_clicker.api import Auth
from pilk_clicker.interfaces.auth import ILogupRequest

credentials = ILogupRequest(
    username="", password="", email=""
)

response = Auth.logup(credentials)

clicker detail

from pilk_clicker.api import Clicker
from pilk_clicker.interfaces.auth import ITokenRequest

credentials = ITokenRequest(authorization="token")

response = Clicker.clicker_detail(credentials)

top list

from pilk_clicker.api import Clicker
from pilk_clicker.interfaces.auth import ITokenRequest

credentials = ITokenRequest(authorization="token")

response = Clicker.top_list(credentials)

save clicker

from pilk_clicker.api import Clicker
from pilk_clicker.interfaces.auth import ITokenRequest
from pilk_clicker.interfaces.clicker import IClickerSaveRequest

credentials = ITokenRequest(authorization="token")

data = IClickerSaveRequest(
    arcoin_amount=1,
    arcoins_per_click=1,
    arcoins_per_seconds=1
)

response = Clicker.save_clicker(data, credentials)

shop user

from pilk_clicker.api import Shop
from pilk_clicker.interfaces.auth import ITokenRequest

credentials = ITokenRequest(authorization="token")

response = Shop.shop_user(credentials)

save item

from pilk_clicker.api import Shop
from pilk_clicker.interfaces.auth import ITokenRequest
from pilk_clicker.interfaces.shop import ISaveItemRequest

credentials = ITokenRequest(authorization="token")

items = Shop.shop_user(credentials)

for item in items:
    Shop.save_item(
        ISaveItemRequest(id=item.id, amount=item.amount + 1),
        credentials
    )

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

pilk_clicker-0.1.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

pilk_clicker-0.1.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file pilk_clicker-0.1.0.tar.gz.

File metadata

  • Download URL: pilk_clicker-0.1.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.12 Linux/5.15.0-1042-azure

File hashes

Hashes for pilk_clicker-0.1.0.tar.gz
Algorithm Hash digest
SHA256 064e6661b06d292aeee39af8221ed2f141a8dddb84fe42c832a5be31207eac49
MD5 6a691b755b6c1548a3722e14e6841f59
BLAKE2b-256 3ef455af52281548b034810a0057a2852a36786386d0cd3ad7f91283f70d10e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pilk_clicker-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.12 Linux/5.15.0-1042-azure

File hashes

Hashes for pilk_clicker-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9b30a12a43bd6574e529f6528a6610c382f4ab53a8b8d4ce7a27b4660e1a0ade
MD5 48dbe548eeef824ea6a4824a5681abc8
BLAKE2b-256 74dcfe54202879904d9cb4d7073af64272f1ba0660e712111cb5f8cb0b42bc10

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