Skip to main content

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.5.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

meanderapi-0.1.5-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file meanderapi-0.1.5.tar.gz.

File metadata

  • Download URL: meanderapi-0.1.5.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for meanderapi-0.1.5.tar.gz
Algorithm Hash digest
SHA256 6bfde578855f5e11b753108a58456164984f1caf618523bc8209783eb60789a3
MD5 f7608b7f43d13fe154594dafecfc9698
BLAKE2b-256 6ae791a37973448a88abd65d66be50a42cd21484c4a72215a799c161494f5660

See more details on using hashes here.

File details

Details for the file meanderapi-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: meanderapi-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for meanderapi-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1e500c7a468f5f8f528fce3dc9b544b3a53f7478f91a69582f1eedb9808f16c6
MD5 d6bea587b17f8abf90667362f7162375
BLAKE2b-256 b2e907e7f4b9a60818c8f23a35528f3601f5ba21e29300b95fc79083c75a3068

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page