Skip to main content

The Galaxy Life API requester.

Project description

Installation

pip install gl-api-requester

Usage

from gl_api_requester import *

try:
	api_requester = GLAPIRequester()

	# Alliance request
	requester.get_alliance(name="France Leader")
	requester.get_alliance_warpoint_leaderboard()

	# Leaderboard request
	requester.get_leaderboard_xp()
	requester.get_leaderboard_xp_from_attack()
	requester.get_leaderboard_rivals_wons()
	requester.get_leaderboard_warpoint()

	# Status request
	requester.get_status()

	# Users request
	requester.get_user_from_name('vadeledav')
	requester.get_user_from_id(player_id="268172")
	requester.get_user_from_name(player_name="vadeledav")
	requester.get_search_user_by_name(player_name="vadeledav")
	requester.get_user_steam_account(player_id=76561198403360223)
	requester.get_user_platform_id(player_id=268172)
	requester.get_user_stats(player_id="268172")
	requester.get_user_count()

except APIErrorException as e:
	print(e.api_error)

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

gl-api-requester-1.0.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

gl_api_requester-1.0.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file gl-api-requester-1.0.0.tar.gz.

File metadata

  • Download URL: gl-api-requester-1.0.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for gl-api-requester-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a212616cf2a5c66e688476dfae33b4db401713638ab616ed81737a8180dba13b
MD5 7c78efb33d5238e4496b33ff793c203e
BLAKE2b-256 8a59131e1ef7c58a0dbb17dff738160c5f81085173a226d82c0ab057741989c9

See more details on using hashes here.

File details

Details for the file gl_api_requester-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for gl_api_requester-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 797034d9816df5ee02fe04ae68be88eee00bbfd3018712a61ca6c37c93c70660
MD5 287bc2b11a20c2d522f0babb56dd3a2b
BLAKE2b-256 20b1c5ad5d6f901a98290dd711a9c4d7df1f13596925e759cde601aa20fd45eb

See more details on using hashes here.

Supported by

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