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.4.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.4-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: meanderapi-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 654ad063f65e02c6f09b701c2f394ef3c6c1ccad4a47cab4371b3d0dd75b60eb
MD5 11876e156d0da975eb3a9afc523e018a
BLAKE2b-256 b96e8d92330daa3b28c5d2ac8080e7db4b4441777d77a0776fe95d5e96c853b7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: meanderapi-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9e3049e5ea66d899cbdd49d1efb19d494fa5f79fc45da73396d8121ab98b22f0
MD5 b3bfe268e07981de14fcf859657a1fe3
BLAKE2b-256 2d41235c8c7cd5b46f22bae4aa2a4123295b0ed967137c5398610a7991d0582d

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