Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - SniffingPickles

Pages: [1]
1
Guides, Tutorials & Demo Videos / Re: DeepBot PHP API
« on: October 16, 2015, 04:12:16 AM »
Sent you a PM

2
Guides, Tutorials & Demo Videos / 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);
    }

Pages: [1]