mninc / pytf Goto Github PK
View Code? Open in Web Editor NEWAn API wrapper for some TF2-related sites
License: MIT License
An API wrapper for some TF2-related sites
License: MIT License
I alwas get an error 500 when I try to execute my code. It looks like this:
item = id
price = {"metal": float(get_key_price()[1])}
data = pytf2.bp_create_listing_create_data(intent=1, currencies=price, item_or_id=item, details='')
listing = pytf2.bp_create_listing(listings=data, parse=True)
The error message looks as follows:
Traceback (most recent call last):
File "MyFilePath", line 76, in <module>
main()
File "MyFilePath", line 40, in main
listing = pytf2.bp_create_listing(listings=data, parse=True)
File "__init__.py Path", line 521, in bp_create_listing
response = self.request("POST", "https://backpack.tf/api/classifieds/list/v1", params=data, param_method="json")
File "__init__.py Path", line 49, in sync_request
raise exceptions.BadStatusError(url, response.status_code, response.text)
pytf2.exceptions.BadStatusError: https://backpack.tf/api/classifieds/list/v1 returned the bad status code 500`
I'd appreciate any help because I can't figure this out. Thanks in advance!
and my code is :
`import pytf2
class initialisation:
def init(self, cache: bool=True, bp_api_key: str='', bp_user_token: str='', mp_api_key: str='', no_rate_limits: bool=False, bypass_cf: bool=False):
pass
class currency:
def pp_currency(keys, metal, key_name: str="key", metal_name: str="ref"):
pass
stemids = ''
info = pytf2.bp_user_info(self, steamids, parse=True)
`
Can you help me?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.