Jump to content

Backpack.tf API Case Sensitivity


Fulgur
 Share

Recommended Posts

Hi, I was wondering if the API serving backpack.tf data could be made so that input is no longer case sensitive. I'm currently working on a chat application that pulls price info for members of my tf2 discord server for quick price checks, and I'd really like it if we didn't have to capitalize item names to get price data. Applying title case across the board doesn't really work without a bunch of workarounds. The "of" in HOUWAR needs to be lowercase, and typing "PDA" for the construction PDA is a bit niggly.
"

Link to comment
Share on other sites

You could validate their input and fix it as necessary, because I don't see them refactoring the entire API to be case-insensitive anytime soon

Link to comment
Share on other sites

Using some predictive logic is what I ended up doing. However, this is a place for feature requests, so I am simply requesting a feature-- I don't need any feedback from anyone who isn't employed by ScrapTF.

  • Haha 1
  • Confused 1
Link to comment
Share on other sites

On 2/10/2020 at 1:55 PM, Fulgur said:

Using some predictive logic is what I ended up doing. However, this is a place for feature requests, so I am simply requesting a feature-- I don't need any feedback from anyone who isn't employed by ScrapTF.

 

I apologize for giving you a practical solution and a realistic answer.

Link to comment
Share on other sites

On 2/10/2020 at 5:28 PM, Zeus_Junior said:

Theres this https://backpack.tf/developer/particles

Not sure what you'd want in an api for it

 

Regarding case sensitivity, could be a nice change. But you should be able to use the tf2 schema and get the correct name that way if you need it.

 

Thanks for pointing this out to me! I didn't know about this file previously.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...