2017 © Pedro Peláez
 

library sharkscope

PHP library for working with ShatkSkope API

image

uldisn/sharkscope

PHP library for working with ShatkSkope API

  • Monday, November 6, 2017
  • by uldisn
  • Repository
  • 1 Watchers
  • 0 Stars
  • 49 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 17 % Grown

The README.md

Latest Stable Version Total Downloads Latest Unstable Version License Code Climate, (*1)

PHP SharkScope API

For https://www.sharkscope.com/, (*2)

Features

  • Create/remove groups
  • Add players to groups
  • get group statistic

Installation

php composer.phar require uldisn/sharkscope dev-master

Usage

        $domain = 'http://www.sharkscope.com';
        $userName = '???????????????';
        $password = '??????????';
        $appKey = '??????????????';
        $appName = '???????';

        $client = new SharcScopeClient($domain, $appName, $userName, $password, $appKey);
        $this->client->setLogging('shark-log',$username,'player statistic');

        if($client->requestGroupList()) {
            $groupList = $this->client->responseData;
        }else{
            $this->out('Invalid response from requestGroupList');
            print_r($this->client->respError);
            die();
        }

        $playerStatistic = new ResponseHelper($groupList);
        $groupsPlayers = ($playerStatistic->findGroupPlayersAll('PREFIX_', '_SUFIX'));

        $from = new \DateTime($pgLimit->start_date);
        $to = new \DateTime($pgLimit->end_date);
        $filter = FilterHelper::createDateFromToValue($from, $to);        


        if(!$client->removePlayerFromGroup($groupName,$network,$player,$filter)){
            $this->out('Invalid response from removePlayerFromGroup');
            if($client->respError) {
                print_r($client->respError);
            }else {
                print_r($client->respHeader);
            }

        }                    

Change log

  • 1.0.0 (Apr 25, 2017) - It work!
  • 1.0.1 (Apr 27, 2017) - In FilterHelper implemented SharkScopeEnd date
  • 1.0.2 (Apr 27, 2017) - Implemented GMT time zone for DateTime
  • 1.0.3 (Apr 29, 2017) - To FilterHelper added method dateActualYear()
  • 1.0.4 (Apr 30, 2017) - Solved GMT problem
  • 1.0.8 (Mar 1, 2021) - added method requestActiveTournaments()
  • 1.0.13 (Nov 16, 2022) - added method deleteGroup()
  • 1.0.14 (Nov 22, 2022) - added method requestUser()
  • 1.0.15 (Feb 22, 2023) - added logging
  • 1.0.16 (Mar 3, 2023) - added method requestGroupListByFullName()

The Versions

06/11 2017

dev-master

9999999-dev https://github.com/uldisn/sharkscope

PHP library for working with ShatkSkope API

  Sources   Download

BSD-4-Clause

The Requires

 

api sharkscope

06/11 2017

1.0.6

1.0.6.0 https://github.com/uldisn/sharkscope

PHP library for working with ShatkSkope API

  Sources   Download

BSD-4-Clause

api sharkscope

15/06 2017

1.0.5

1.0.5.0 https://github.com/uldisn/sharkscope

PHP library for working with ShatkSkope API

  Sources   Download

BSD-4-Clause

api sharkscope

15/06 2017

dev-feature

dev-feature https://github.com/uldisn/sharkscope

PHP library for working with ShatkSkope API

  Sources   Download

BSD-4-Clause

api sharkscope

30/04 2017

1.0.4

1.0.4.0 https://github.com/uldisn/sharkscope

PHP library for working with ShatkSkope API

  Sources   Download

BSD-4-Clause

api sharkscope

29/04 2017

1.0.3

1.0.3.0 https://github.com/uldisn/sharkscope

PHP library for working with ShatkSkope API

  Sources   Download

BSD-4-Clause

api sharkscope

27/04 2017

1.0.2

1.0.2.0 https://github.com/uldisn/sharkscope

PHP library for working with ShatkSkope API

  Sources   Download

BSD-4-Clause

api sharkscope

27/04 2017

1.0.1

1.0.1.0 https://github.com/uldisn/sharkscope

PHP library for working with ShatkSkope API

  Sources   Download

BSD-4-Clause

api sharkscope

26/04 2017

1.0.0

1.0.0.0 https://github.com/uldisn/sharkscope

PHP library for working with ShatkSkope API

  Sources   Download

BSD-4-Clause

api sharkscope