Commit 6e2dc4f8 authored by 陈曦's avatar 陈曦

接口

parent 4fa12f44
<?php
/**
* Created by PhpStorm.
* User: cx
* Date: 2018/8/15
* Time: 10:23
*/
use internalApi\sv\Video;
require __DIR__.'/_init.php';
Video::setDebug();
$list = Video::getMyVideoList(658, 1);
print_r($list);
...@@ -17,6 +17,11 @@ $internalApiClientConfig = [ ...@@ -17,6 +17,11 @@ $internalApiClientConfig = [
'apiUrl' => 'http://u.yunya.com/test/api-server', 'apiUrl' => 'http://u.yunya.com/test/api-server',
'clientId' => 'common', 'clientId' => 'common',
'clientSecret' => 'Kuy2dVHKRWKAFRXX2l6k' 'clientSecret' => 'Kuy2dVHKRWKAFRXX2l6k'
],
'sv' => [
'apiUrl' => 'http://sv.yunya.com/api/server',
'clientId' => 'common',
'clientSecret' => '6A23057D233DA902B5D603A758B0438E'
] ]
]; ];
......
...@@ -32,5 +32,10 @@ return [ ...@@ -32,5 +32,10 @@ return [
'apiUrl' => 'http://s.yunya.com/e/api/internal.php', 'apiUrl' => 'http://s.yunya.com/e/api/internal.php',
'clientId' => 'common', 'clientId' => 'common',
'clientSecret' => 'TveYDczsq7LTllIUlM5t' 'clientSecret' => 'TveYDczsq7LTllIUlM5t'
],
'sv' => [
'apiUrl' => 'http://sv.yunya.com/api/server',
'clientId' => 'common',
'clientSecret' => '6A23057D233DA902B5D603A758B0438E'
] ]
]; ];
\ No newline at end of file
...@@ -31,5 +31,10 @@ return [ ...@@ -31,5 +31,10 @@ return [
'apiUrl' => 'http://s.ibanshou.cn/e/api/internal.php', 'apiUrl' => 'http://s.ibanshou.cn/e/api/internal.php',
'clientId' => 'common', 'clientId' => 'common',
'clientSecret' => 'TveYDczsq7LTllIUlM5t' 'clientSecret' => 'TveYDczsq7LTllIUlM5t'
],
'sv' => [
'apiUrl' => 'http://sv.ibanshou.cn/api/server',
'clientId' => 'common',
'clientSecret' => '6A23057D233DA902B5D603A758B0438E'
] ]
]; ];
\ No newline at end of file
...@@ -31,5 +31,10 @@ return [ ...@@ -31,5 +31,10 @@ return [
'apiUrl' => 'http://s.test.yunyamooc.com/e/api/internal.php', 'apiUrl' => 'http://s.test.yunyamooc.com/e/api/internal.php',
'clientId' => 'common', 'clientId' => 'common',
'clientSecret' => 'TveYDczsq7LTllIUlM5t' 'clientSecret' => 'TveYDczsq7LTllIUlM5t'
],
'sv' => [
'apiUrl' => 'http://sv.test.yunyamooc.com/api/server',
'clientId' => 'common',
'clientSecret' => '6A23057D233DA902B5D603A758B0438E'
] ]
]; ];
\ No newline at end of file
<?php
/**
* Created by PhpStorm.
* User: QQ
* Date: 2018/4/20
* Time: 16:49
*/
namespace internalApi\sv;
use internalApi\base\Client;
class Video extends Client
{
/**
* 获取我的视频列表
* @return mixed
*/
public static function getMyVideoList($uid, $page)
{
return self::call('video.getMyVideoList', compact('uid', 'page'));
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment