Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wxh_internal_api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
杨培培
wxh_internal_api
Commits
6e2dc4f8
Commit
6e2dc4f8
authored
Aug 15, 2018
by
陈曦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口
parent
4fa12f44
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
58 additions
and
0 deletions
+58
-0
sv_myvideo.php
example/sv_myvideo.php
+15
-0
client_config.exmaple.php
src/client_config.exmaple.php
+5
-0
client_config_dev.php
src/client_config_dev.php
+5
-0
client_config_prod.php
src/client_config_prod.php
+5
-0
client_config_test.php
src/client_config_test.php
+5
-0
Video.php
src/sv/Video.php
+23
-0
No files found.
example/sv_myvideo.php
0 → 100644
View file @
6e2dc4f8
<?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
);
src/client_config.exmaple.php
View file @
6e2dc4f8
...
...
@@ -17,6 +17,11 @@ $internalApiClientConfig = [
'apiUrl'
=>
'http://u.yunya.com/test/api-server'
,
'clientId'
=>
'common'
,
'clientSecret'
=>
'Kuy2dVHKRWKAFRXX2l6k'
],
'sv'
=>
[
'apiUrl'
=>
'http://sv.yunya.com/api/server'
,
'clientId'
=>
'common'
,
'clientSecret'
=>
'6A23057D233DA902B5D603A758B0438E'
]
];
...
...
src/client_config_dev.php
View file @
6e2dc4f8
...
...
@@ -32,5 +32,10 @@ return [
'apiUrl'
=>
'http://s.yunya.com/e/api/internal.php'
,
'clientId'
=>
'common'
,
'clientSecret'
=>
'TveYDczsq7LTllIUlM5t'
],
'sv'
=>
[
'apiUrl'
=>
'http://sv.yunya.com/api/server'
,
'clientId'
=>
'common'
,
'clientSecret'
=>
'6A23057D233DA902B5D603A758B0438E'
]
];
\ No newline at end of file
src/client_config_prod.php
View file @
6e2dc4f8
...
...
@@ -31,5 +31,10 @@ return [
'apiUrl'
=>
'http://s.ibanshou.cn/e/api/internal.php'
,
'clientId'
=>
'common'
,
'clientSecret'
=>
'TveYDczsq7LTllIUlM5t'
],
'sv'
=>
[
'apiUrl'
=>
'http://sv.ibanshou.cn/api/server'
,
'clientId'
=>
'common'
,
'clientSecret'
=>
'6A23057D233DA902B5D603A758B0438E'
]
];
\ No newline at end of file
src/client_config_test.php
View file @
6e2dc4f8
...
...
@@ -31,5 +31,10 @@ return [
'apiUrl'
=>
'http://s.test.yunyamooc.com/e/api/internal.php'
,
'clientId'
=>
'common'
,
'clientSecret'
=>
'TveYDczsq7LTllIUlM5t'
],
'sv'
=>
[
'apiUrl'
=>
'http://sv.test.yunyamooc.com/api/server'
,
'clientId'
=>
'common'
,
'clientSecret'
=>
'6A23057D233DA902B5D603A758B0438E'
]
];
\ No newline at end of file
src/sv/Video.php
0 → 100644
View file @
6e2dc4f8
<?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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment