123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <?php
- require_once __DIR__ . '/../autoload.php';
- $config = require_once 'config.php';
- use Easemob\Auth;
- use Easemob\Attachment;
- $easemob = $config['easemob'];
- $auth = new Auth($easemob['app_key'], $easemob['client_id'], $easemob['client_secret']);
- if (isset($easemob['api_uri']) && $easemob['api_uri']) {
- $auth->setApiUri($easemob['api_uri']);
- }
- $attachment = new Attachment($auth);
- echo '<pre>';
|