PHP code example of yiranzai / byrobot

1. Go to this page and download the library: Download yiranzai/byrobot library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

yiranzai / byrobot example snippets


$robot = Yiranzai\Byrobot\Byrobot::init(
    [
        'appKey' => 'YOU_APP_KEY',
        'appSecret' => 'YOU_APP_SECRET'
    ]);

$robot = Yiranzai\Byrobot\Byrobot::init();
$robot->key(YOU_APP_KEY)->secret(YOU_APP_SECRET);