sevastian25 Posted January 25, 2017 Share Posted January 25, 2017 (edited) Hi can anyone help me out introducing a redeem cupons API to my website. The API given by the websites admin is this To use the API you will have to use basic auth with your steam64id as the username and your API key as the password on each request. You can find your API key by looking at the websites html source while you are logged in and looking for Window.App, it will be under api_secret. Redeeming Coupon: POST https://steamgems.com/api/v1/wallet/coupon/redeem coupon_code (required) receiver_id64 (optional) Creating Coupons: POST https://steamgems.com/api/v1/wallet/coupons/create amount (required) quantity (required) It's pretty simple, just use /v1/wallet/coupon/redeem when they deposit and it will go to your account. Then to withdraw use /v1/wallet/coupons/create to create a coupon and use it with /v1/wallet/coupon/redeem while setting receiver_id64 to their steam64id to redeem on their account. I really need this. Help would be much appreciated. A sample code that i can i troduce myself would be awesome ❤️ If anyone can do it for me would be even better. Edited January 25, 2017 by sevastian25 Quote Link to comment https://forums.phpfreaks.com/topic/303025-introducing-an-api-to-website/ Share on other sites More sharing options...
ginerjm Posted January 25, 2017 Share Posted January 25, 2017 Don't they give you any code to use? Or is this supposed to be a manual connection only? Have you researched on how to do basic auth using php? Or do you just want us to do it for you? There is another forum here that does work-for-pay if you are interested. Quote Link to comment https://forums.phpfreaks.com/topic/303025-introducing-an-api-to-website/#findComment-1541982 Share on other sites More sharing options...
sevastian25 Posted January 25, 2017 Author Share Posted January 25, 2017 They didnt give me any sample code to use, and i was hoping this community would help me out with a sample code or something to get me started. i dont want you to do it for me but if you can i could pay for it no problem. Quote Link to comment https://forums.phpfreaks.com/topic/303025-introducing-an-api-to-website/#findComment-1541988 Share on other sites More sharing options...
ginerjm Posted January 25, 2017 Share Posted January 25, 2017 This is a PHP forum. Mostly for help with PHP. Perhaps someone here has some experience with the using basic auth headers ( I know I tried and failed at one time!) that can help you. Quote Link to comment https://forums.phpfreaks.com/topic/303025-introducing-an-api-to-website/#findComment-1541989 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.