用户工具

站点工具


vhall_open:响应示例

响应示例PHP版


        $url = 'http://e.vhall.com/api/vhallapi/v2/webinar/create';//webinar为资源名,create为函数名
        $post_data = array(
            'auth_type'=>'1',
            'account'=>'vhall',
            'password'=>'XXXXX',
            'subject'=>'myvhall',
            'start_time'=>1376934451,
        );
        $data = http_build_query($post_data);
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_POST, 1);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch, CURLOPT_HEADER, 0);
        curl_setopt($ch, CURLOPT_URL, $url);
        curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
        curl_setopt($ch, CURLOPT_TIMEOUT, 6);
        $result = curl_exec($ch);
        curl_close($ch);
        var_dump($result);//操作成功,返回{'code':200,'data':'123456789'}
vhall_open/响应示例.txt · 最后更改: 2017/10/16 17:29 由 xiaomeng