Giter Site home page Giter Site logo

pytf's People

Contributors

mninc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

mrmatiiii

pytf's Issues

Error 500 when creating listing

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!

AttributeError: module 'pytf2' has no attribute 'bp_user_info'

Hello, i have this error:
image

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.