GithubHelp home page GithubHelp logo

epin.center-api-php's Introduction

Epin.Center için geliştirilmiş PHP Api Class

Bu class epin.center için geliştirilmiştir.

API Object Creation

$api = new EpinCenter("TOKENKEY");

API Game Listing

$GameList = $api->GameList();
if($GameList['success']){
	print_r($GameList['data']);
}else{
	echo "Error : ".$GameList['error'];
}

API Game Products Listing Reponses

{
  "success": true,
  "data": [
    {
      "id": 5,
      "name": "Valorant VP"
    },
    {
      "id": 81,
      "name": "Black Desert Online"
    },
    {
      "id": 6,
      "name": "League Of Legends RP"
    },
    {
      "id": 3,
      "name": "Steam Cüzdan Kodu"
    },
    {
      "id": 4,
      "name": "PUBG Mobile UC"
    },
    {
      "id": 7,
      "name": "Zula Altın"
    }
  ],
  "error": ""
}

API Game Products Listing

$Product = $api->GameProductsList(5); // 5 => Valorant
if($Product['success']){
	print_r($Product['data']);
}else{
	echo "Error : ".$Product['error'];
}

API Game Products Listing Reponses

{
  "success": true,
  "data": [
    {
      "id": 16,
      "gid": 5,
      "name": "300 VP Valorant Points",
      "info": "Sadece Türkiye sunucusunda geçerlidir",
      "count": 832,
      "discount": 20.38,
      "oldprice": 16,
      "price": 12.74,
      "bonus": 0,
      "status": 1,
      "promoteend": 0,
      "promoteendprice": 13.6,
      "vat": 0
    },
    {
      "id": 17,
      "gid": 5,
      "name": "600 VP Valorant Points",
      "info": "Sadece Türkiye sunucusunda geçerlidir",
      "count": 773,
      "discount": 20.38,
      "oldprice": 32,
      "price": 25.48,
      "bonus": 0,
      "status": 1,
      "promoteend": 0,
      "promoteendprice": 27.2,
      "vat": 0
    },
    {
      "id": 18,
      "gid": 5,
      "name": "1250 VP Valorant Points",
      "info": "Sadece Türkiye sunucusunda geçerlidir",
      "count": 389,
      "discount": 20,
      "oldprice": 64,
      "price": 51.2,
      "bonus": 0,
      "status": 1,
      "promoteend": 0,
      "promoteendprice": 54.4,
      "vat": 0
    },
    {
      "id": 19,
      "gid": 5,
      "name": "2500 VP Valorant Points",
      "info": "Sadece Türkiye sunucusunda geçerlidir",
      "count": 90,
      "discount": 20,
      "oldprice": 125,
      "price": 100,
      "bonus": 0,
      "status": 1,
      "promoteend": 0,
      "promoteendprice": 0,
      "vat": 0
    },
    {
      "id": 20,
      "gid": 5,
      "name": "4400 VP Valorant Points",
      "info": "Sadece Türkiye sunucusunda geçerlidir",
      "count": 205,
      "discount": 20.03,
      "oldprice": 216,
      "price": 172.74,
      "bonus": 0,
      "status": 1,
      "promoteend": 0,
      "promoteendprice": 0,
      "vat": 0
    },
    {
      "id": 21,
      "gid": 5,
      "name": "8400 VP Valorant Points",
      "info": "Sadece Türkiye sunucusunda geçerlidir",
      "count": 85,
      "discount": 20.13,
      "oldprice": 400,
      "price": 319.5,
      "bonus": 0,
      "status": 1,
      "promoteend": 0,
      "promoteendprice": 0,
      "vat": 0
    }
  ],
  "error": ""
}

API Buying Product

$BuyProduct = $api->BuyProduct(16,1); // 16 => 300 VP
if($BuyProduct['success']){
	$Keys = $BuyProduct['data'];
	$KeyCounter = 0;
	foreach($Keys as $Key){
		$KeyCounter++;
		echo $KeyCounter.". e-pin key : ".$Key."<br>";
	}
}else{
	echo "Error : ".$BuyProduct['error'];
}

API Buying Product Responses

{
  "success": true,
  "data": [
    "xxx",
    "yyy",
    "zzz"
  ],
  "error": ""
}

API Error Response

{
  "success": false,
  "data": "",
  "error": "Bakiyeniz yetersiz(7.66 TL Eksik)!"
}

epin.center-api-php's People

Contributors

menesakdeniz avatar

Watchers

 avatar

Forkers

w0fly

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.