Coder Social home page Coder Social logo

r6statsapi-php's Introduction

R6StatsAPI-PHP

概要 - Overview

日本語-Japanese

RainbowSix:Siegeのプレイヤーの戦績を取得します。 使うにはR6Stats,さんのAPIキーが必要です。 R6Statsさんのdiscordに入り、APIキーを個別に取得してきてください。

英語-English

Get player stats for RainbowSix:Siege. You need R6Stats's API key to use it. Please enter R6Stats's discord and get the API key individually.

使い方 - How To Use

日本語 - Japanese

1,R6StatsAPI.phpを移してhtmlのヘッダーに

<?php
include("path/R6StatsAPI.php");
?>

を書き込みます。

2, R6StatsAPI.phpを編集します

<?php
    const APIKEY="";//APIキーを貼り付けてください
    
    const SEASON="shadow_legacy";//今のシーズンを入力してください。
    
    const LOCATION="apac";//ランクでプレイしているサーバーを入力してください。
?>

英語 - English

1, Move R6StatsAPI.php to your working folder.

2, Write

<?php
include("path/R6StatsAPI.php");
?>

in the html header.

3, Edit in R6StatsAPI.php

<?php
    const APIKEY="";//Paste the API key.
    
    const SEASON="shadow_legacy";//Please write the current season name.
    
    const LOCATION="apac";//Please write the server name of the rank.
?>

サンプル - sample code

<?php
	include("path/R6StatsAPI.php");
	$api=new R6StatsAPI("playername","pc");
	$api->getUserLevel();//return UserLevel
	$api->getAllAssists();//return Assist in all matches
	$api->getCasualKills();//return Kills in casual match
	$api->getRankedKills();//return Kills in Ranked match
	$api->getRankedWinLoseRatio();//return win lose ratio in Ranked match
	$api->getLatestMMR();//return Latest MMR
?>

TODO

  • Gamemode stats
  • Season stats
  • weapon stats

Contact

yurisi

r6statsapi-php's People

Contributors

onewalkdev avatar

Watchers

James Cloos 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.