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.6.tar.gz (3.8 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.6-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: meanderapi-0.1.6.tar.gz
  • Upload date:
  • Size: 3.8 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.6.tar.gz
Algorithm Hash digest
SHA256 1a7d740ac3ed403d783799cf4561299a21bede4d07944e14804e1727a704ee3a
MD5 2ec22ee5530c237dd9cb58a503065978
BLAKE2b-256 804448976811686eba3e74d6160b386f23b0b95d4e336d72b2acd86cb4031279

See more details on using hashes here.

File details

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

File metadata

  • Download URL: meanderapi-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 4.4 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 89dc1ffedca357fe915bf48159dec11de7ecc439397dd3949c64584acc0fce77
MD5 f8b9979323a5714c4ca2e450fc7cde44
BLAKE2b-256 d3b371ba54ee05b32e2cad1998aa7b1b55c4da54055262d8d23dcfde0d877a41

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