Jump to content

sevastian25

New Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by sevastian25

  1. So i have this API and i got a new file in my directory for it called "mylittleapi.php" <?php $curl = curl_init(); $coupon_code = '****-6dcf-****-4d05-bd68-****-****-****'; $data = json_encode(array( 'coupon_code' => $coupon_code, 'receiver_id64' => '76561************' )); curl_setopt_array($curl, array( CURLOPT_URL => "https://theirwebsite.com/api/v1/money/coupon/redeem", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => $data, CURLOPT_HTTPHEADER => array( "authorization: Basic *******************************************************************=", "cache-control: no-cache", "content-type: application/json", "postman-token: ********-****-****-****-************" ), )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; } when i access it through www.mywebsite.com/mylittleapi.php it does execute but what i want to do is set the coupon_code as a variable which users can just enter their own coupons and set the Textbox and submit button in another page ex: "www.mywebsite.com/redeem" I just need to make the variable for the coupon_code, link it to my textbox and button in the other page. Can somebody help me out please ? i really need this to be done.
  2. 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.
  3. 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.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.