Deep Bot - Twitch Streamer Assistant

Deep Bot => Guides, Tutorials & Demo Videos => Topic started by: SniffingPickles on October 16, 2015, 02:24:27 AM

Title: DeepBot PHP API
Post by: SniffingPickles 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);
    }
Title: Re: DeepBot PHP API
Post by: emrerocky on October 16, 2015, 04:09:56 AM
Hello,  may I ask where you got DeepBot?
Title: Re: DeepBot PHP API
Post by: SniffingPickles on October 16, 2015, 04:12:16 AM
Sent you a PM