A python library for interact with Meander API
Project description
MeanderAPI
A python library for interact with Meander API
Features
- Supports Google auth
- Get all quest list without auth
- Download quests without auth
- Auth by token
Install
pip install MeanderAPI
Usage Example
Here is a comprehensive example demonstrating how to initialize the client, authenticate, browse quests, download them, and interact with the voting system.
from MeanderAPI import client, quests, genres
# Auth by token you can get it by using google auth
user = client.new_auth_by_token("MeanderToken")
# Guest mode
user = client.new_guest()
# Meander google auth
user = client.new_google_auth()
# Get all quests
print(quests.get_quests(user))
# Get quest by id
print(quests.get_quest_by_id(user, "ba0b5e8d-0d4f-4368-af9f-2564bc00c07d"))
# Download quest
quests.download_quest(user, quests.get_quest_by_id(user, "ba0b5e8d-0d4f-4368-af9f-2564bc00c07d"), r"C:\Users\Deniz\Desktop\MeanderAPI\mnd.mnd")
# Get quest by search
print(quests.get_quests_by_search(user, "test", genres.Adventure, "27ed560e-6a0f-4e67-bb7b-ce291e89f075"))
# Get my vote quest (Auth required)
print(quests.get_my_vote(user, quests.get_quest_by_id(user, "7915972f-92bb-4464-b14d-c1a279cd8a26")))
# Unvote quest (Auth required)
print(quests.unvote(user, quests.get_quest_by_id(user, "7915972f-92bb-4464-b14d-c1a279cd8a26")))
# Like quest (Auth required)
print(quests.like(user, quests.get_quest_by_id(user, "7915972f-92bb-4464-b14d-c1a279cd8a26")))
# Dislike quest (Auth required)
print(quests.dislike(user, quests.get_quest_by_id(user, "7915972f-92bb-4464-b14d-c1a279cd8a26")))
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
meanderapi-0.1.7.tar.gz
(4.7 kB
view details)
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 meanderapi-0.1.7.tar.gz.
File metadata
- Download URL: meanderapi-0.1.7.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7824a74ec72f5425d6a8cb05cfa6dba2fedde2f53061fee0f6a2f8d7c7da49d
|
|
| MD5 |
57a9318f63791ef21244254620c07ef0
|
|
| BLAKE2b-256 |
2770713049a5aff76981f98d8466a62b45c5788007b42d6ab89e9622a89105a6
|
File details
Details for the file meanderapi-0.1.7-py3-none-any.whl.
File metadata
- Download URL: meanderapi-0.1.7-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c193d0857732efa01494e4dc67bbcf90288acacaf8283de552154d49c543c790
|
|
| MD5 |
c5b499ff598bc1fcfaf5f00cba87f45d
|
|
| BLAKE2b-256 |
20a3b043b55c40cfefd589fce0f68e719b6aa07ce95ae9012fefa8f8ca5dfcc0
|