简体   繁体   中英

Steam API with angularJS?

I'm making a website for rust (video game) where you can gamble items. Anyways, I'm wondering of someone can help me out with my issue: I'm trying to find some sort of API? maybe where the user can login via steam, and I'd have their info to use on the website. Examples: - Their Profile picture - Their inventory data? (inv items visible) - Their account name etc.

I've seen something in PHP for this that'd probably work, only issue is I'd have to make the site as php and not a .html file (not sure how to change this with angular as I'm new.) Steam API wrapper (php) reference

Anyways, is there a way I can do this with JS or something better perhaps ? Thank you!

I don't think what you're looking for in the form of an Angular wrapper exists, but you can find the Web API documentation here: https://developer.valvesoftware.com/wiki/Steam_Web_API

You could just build an Angular service to interact with the parts of the API you care about, or you could start building your own wrapper and publish it to GitHub. You can find a tutorial for building an Angular HTTP Service here: https://angular.io/tutorial/toh-pt6

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM