Author Topic: DeepBot PHP API  (Read 4256 times)

0 Members and 1 Guest are viewing this topic.

SniffingPickles

  • Youngling
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
  • Twitch Name: SniffingPickles
DeepBot PHP API
« on: October 16, 2015, 02:24:27 AM »
I built this for a client, thought it might be useful for you guys:

Original DeepBot API readme: https://github.com/DeepBot-API/client-websocket


Functions below are assembled:

Download:  http://www.mediafire.com/download/tp9d5h5y925cbnt/DeepBot-PHP-API.zip.zip



    public function getUser($username)
    {
        return 
$this->makeRequest('api|get_user|' $username);
    }

    public function 
getUsers($offset 1$limit 100)
    {
        return 
$this->makeRequest('api|get_users|'.$offset.'|'.$limit);
    }

    public function 
getUserPoints($username)
    {
        return 
$this->makeRequest('api|get_points|'.$username);
    }

    public function 
setUserPoints($username$newValue)
    {
        return 
$this->makeRequest('api|set_points|'.$username.'|'.$newValue);
    }

    public function 
addPoints($username$points)
    {
        return 
$this->makeRequest('api|add_points|'.$username.'|'.$points);
    }

    public function 
setUserVip($username$level$days)
    {
        return 
$this->makeRequest('api|set_vip|'.$username.'|'.$level.'|'.$days);
    }

emrerocky

  • Advisor
  • Councilor
  • **
  • Posts: 1240
  • Karma: +163/-8
    • View Profile
    • emrerocky's Website
  • Twitch Name: emrerocky
Re: DeepBot PHP API
« Reply #1 on: October 16, 2015, 04:09:56 AM »
Hello,  may I ask where you got DeepBot?

SniffingPickles

  • Youngling
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
  • Twitch Name: SniffingPickles
Re: DeepBot PHP API
« Reply #2 on: October 16, 2015, 04:12:16 AM »
Sent you a PM