Skip to content

api ดึงผลต่างๆ ซื้อสินค้าต่างๆ seagm

Notifications You must be signed in to change notification settings

fewhakko/class-seagm-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

class-seagm-php

LoginToken

<?php
  require("class.seagm.php");
  $seagm = new SeagmIOS($email,$password);
  print_r($seagm->GetUserToken());
  print_r($seagm->Login($user_token));
?>

GetListGame

foreach ($seagm->getListGame()["cardList"] as $data) {
    print_r($data);
}

GetDetailGame

foreach ($seagm->gamedetails($data["id"])["card_type_list"] as $val) {
    print_r($val);
}

BuyOrder

$trade = $seagm->BuyOrderFreeFire($idcard,$player_id)["trade"];
if (isset($trade["id"])) {
  $confirm = $seagm->ConfirmOrder($trade["id"]);

  if ($confirm[0]["alert"][0][0] == "Insufficient account balance") {
      echo "คุณมีเงินไม่พอ.";
  } else {
      print_r($seagm->SendMessageOrder($trade["orders"],$player_id));
  }
}

About

api ดึงผลต่างๆ ซื้อสินค้าต่างๆ seagm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages