Code Monkey home page Code Monkey logo

api-truewallet-gift-class's Introduction

api-truewallet-gift-class

API TrueWallet Gift Class By Hyper Studio

สารบัญการใช้งาน

เริ่มต้นใช้งาน | เกี่ยวกับเว็บไซต์ | การใช้งาน API | วิธีการเติมเงิน | เพิ่มเติม

เริ่มต้นใช้งาน

  1. ไปที่เว็บไซต์ hyperstudio.xyz
  2. สมัครสมาชิก และ เข้าสู่ระบบ
  • หมายเหตุ : หลังจากสมัครสมาชิกเสร็จระบบจะให้ Request เริ่มต้น 50 Requests โดยถ้าใช้ Request จนเหลือ 0 จะไม่สามารถส่งข้อมูลมา Server ได้

เกี่ยวกับเว็บไซต์

  • API Key คือกุญแจที่ใช้ในการเชื่อมต่อ API ระหว่าง Server ผู้ใช้ กับ Server ของระบบ โดยที่เราสามารถรับ API Key ได้หลังจาก เข้าสู่ระบบ และ คลิ้กที่ปุ่ม "คัดลอก KEY" API Key จะไม่มีทางซ้ำกับของผู้ใช้งานอื่น Result
  • การอัพเดท ข้อมูล ของ Server โดยที่ Server จะอัพเดทข้อมูลอัตโนมัติทุกๆ 1 นาที โดยที่ระบบจะอัพเดทข้อมูลคือ Log API , Request คงเหลือ , การใช้ Request ต่อวัน , รายได้ต่อวัน

การใช้งานAPI

  1. ดาวน์โหลดไฟล์ hyperclass.php จาก Github เพื่อเรียกใช้งาน Class
  2. ให้ไปที่ไฟล์ hyperclass.php และนำ API Key มาใส่
  public $apikey = 'นำ API Key มาใส่ที่นี่'; 
  1. สร้าง Form สำหรับไว้ส่งค่า Link (การส่งค่าให้ใช้ Method="POST")
  • รูปตัวอย่าง Form
    • Result
  1. หลังจากสร้าง Form ให้นำ Code ด้านล่าง ไปใส่ในไฟล์ใช้ที่รับค่า
<?php

  include('hyperclass.php');
  $useapi = new Hyper();
  $value = $_POST['link']; //ค่าลิ้งซองของขวัญ
  $mygiftlink = str_replace(' ','',$value);
  $result = $useapi->hyperRequest($mygiftlink);
  
  if($result['code'] == '200'){ //ทำรายการสำเร็จ	
  
	  $link =  $result['link']; //ลิ้งที่ใช้ในการเติมเงิน
	  $money =  $result['amount']; //จำนวนเงินที่เติม
	  $date =  $result['date']; //เวลาที่เติมเงิน		
    
  }else{ //ทำรายการไม่สำเร็จ		
  
	  $errormsg = $result['msg']; //แสดงข้อความ Error	
    
  }
  
 ?>

วิธีการเติมเงิน

  1. เข้าไปที่แอป Truewallet
  2. ไปที่ บัตรเติมเงิน & ของขวัญ -> ส่งซองของขวัญ ดูรูปตัวอย่าง
  3. หลังจากเข้าที่ ส่งซองของขวัญ แล้วให้กรอก จำนวนเงิน และ จำนวนผู้รับซอง แนะนำให้กรอกจำนวนแค่ 1 ไม่งั้นจะได้เงินไม่เต็มจำนวน ดูรูปตัวอย่าง
  4. หลังจากกรอกข้อมูลแล้วให้กด สร้างซองของขวัญ และจะขึ้นหน้ายืนยันข้อมูลให้กด ยืนยัน ดูรูปตัวอย่าง
  5. หลังจากกดยืนยันแล้วจะมี Link มาให้กด คัดลอก และนำไปเติมตามเว็บได้เลย ดูรูปตัวอย่าง

เพิ่มเติม

  • ถ้ามีปัญหาในการใช้งานสามารถติดต่อได้ที่ Hyper Studio "หมายเหตู : ทำมาแจกฟรีห้ามนำไปจำหน่ายนะจ๊ะ"
  • สามารถบริจาคค่ากาแฟที่เว็บไซต์ที่ให้บริการ API hyperstudio.online

api-truewallet-gift-class's People

Contributors

sharpaddroot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.