Skip to content

ttxdev/ttx.py

Repository files navigation

ttx

TTX API Wrapper

Requirements

Python 3.9+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/ttxdev/ttx.py.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/ttxdev/ttx.py.git)

Then import the package:

import ttx

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import ttx

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import ttx
from ttx.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = ttx.Configuration(
    host = "http://localhost"
)



# Enter a context with an instance of the API client
with ttx.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = ttx.TTXApi(api_client)
    username = 'username_example' # str |  (optional)
    ticker = 'ticker_example' # str |  (optional)

    try:
        api_response = api_instance.create_creator(username=username, ticker=ticker)
        print("The response of TTXApi->create_creator:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling TTXApi->create_creator: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
TTXApi create_creator POST /creators
TTXApi discord_callback GET /sessions/discord/callback
TTXApi gamba PUT /players/me/lootboxes/{lootBoxId}/open
TTXApi get_creator GET /creators/{slug}
TTXApi get_creator_transactions GET /creators/{creatorSlug}/transactions
TTXApi get_creators GET /creators
TTXApi get_player GET /players/{username}
TTXApi get_players GET /players
TTXApi get_self GET /players/me
TTXApi link_discord_twitch POST /sessions/discord/link
TTXApi place_order POST /transactions
TTXApi twitch_callback GET /sessions/twitch/callback

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Author

About

TTX Python SDK

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages