An unofficial API wrapper for gamee.com.
Project description
gameeapi
An unofficial API wrapper for gamee.com written in Python.
Installation
Installing through pip:
pip install gameeapi
Installing through source:
git clone https://github.com/zrekryu/gameeapi.git
cd gameeapi
pip install .
Gamee API
Initializing API Client
To initialize the API Client:
from gameeapi import GameeAPIClient
client: GameeAPIClient = GameeAPIClient()
Version Information
To print the version of the gameeapi
library:
from gameeapi import __version__
print(__version__)
Authorizing user
To authorize the user:
from typing import Any
game_url: str = "<game-url>"
auth_data: dict[str, Any] = await client.auth_user(game_url)
Print the authentication token and save it for later use.
print("Authentication Token:", auth_data["result"]["tokens"]["authenticate"])
Get Web Gameplay Details
To retrieve web gameplay details:
game_url: str = "<game-url>"
gameplay_details: dict[str, Any] = await client.get_web_gameplay_details(game_url)
print(gameplay_details)
Get Geographical Block Status
To retrieve geographical block status:
auth_token: str = "<auth-token>"
geo_block_status: dict[str, Any] = await client.get_geo_block_status(auth_token)
print(geo_block_status)
Get Web Surrounding by Game
To get web surrounding by the game:
game_url: str = "<game-url>"
auth_token: str = "<auth-token>"
game_surrounding: dict[str, Any] = await client.get_web_surrounding_by_game(auth_token, game_url)
print(game_surrounding)
Save Web Gameplay
To save web gameplay score:
auth_token: str = "<auth-token>"
game_url: str = "<game-url>"
score: int = 100
play_time: int = 120
gameplay_data: dict[str, Any] = await client.save_web_gameplay(auth_token, game_url, score, play_time)
print(gameplay_data)
License
© 2024 Zrekryu. Licensed under MIT License. See the LICENSE file for details.
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
gameeapi-1.0.2.tar.gz
(3.7 kB
view details)
Built Distribution
File details
Details for the file gameeapi-1.0.2.tar.gz
.
File metadata
- Download URL: gameeapi-1.0.2.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfe97b7ff2097fc19667a45137badd63361ee779372f2ab3194fefae3781709e |
|
MD5 | ac0d6f50fe33448c3e19c6da66b79390 |
|
BLAKE2b-256 | 95fc0d12d5433bff1bc0eeae3cd156a67e8ba28a7fca1f9c81ece13ebc0e4f17 |
File details
Details for the file gameeapi-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: gameeapi-1.0.2-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ac458f15c70f438a44ed9c0e66698f79121ea6f885fe9e78981c8bf046743d0 |
|
MD5 | 21f64e7b3945486f3c4649d2895edc81 |
|
BLAKE2b-256 | 184517adaa3227070ca3fc0356cef7674b4ccb98f41038cdb6aa9a2f276436b9 |