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
37a7820c
Commit
37a7820c
authored
Oct 17, 2018
by
wangjj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
时间线api
parent
e0c0ffd2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
56 additions
and
0 deletions
+56
-0
ucenter_timeline.php
example/ucenter_timeline.php
+15
-0
Timeline.php
src/ucenter/Timeline.php
+41
-0
No files found.
example/ucenter_timeline.php
0 → 100644
View file @
37a7820c
<?php
/**
* Created by PhpStorm.
* User: QQ
* Date: 2018/10/17
* Time: 10:37
*/
use
internalApi\ucenter\Timeline
;
require
__DIR__
.
'/_init.php'
;
Timeline
::
setDebug
();
$info
=
Timeline
::
removeTimeline
(
'reply_145'
);
print_r
(
$info
);
\ No newline at end of file
src/ucenter/Timeline.php
0 → 100644
View file @
37a7820c
<?php
/**
* Created by PhpStorm.
* User: QQ
* Date: 2018/10/17
* Time: 10:01
*/
namespace
internalApi\ucenter
;
use
internalApi\base\Client
;
class
Timeline
extends
Client
{
/**
* 添加时间线
* @param int $uid
* @param string $type
* @param string $key
* @param array $content
* @param array $quote
* @param array $ext
* @param null $time
* @return mixed
*/
public
static
function
addTimeline
(
$uid
,
$type
,
$key
,
$content
=
[],
$quote
=
[],
$ext
=
[],
$time
=
null
)
{
return
self
::
call
(
'Timeline.addTimeline'
,
compact
(
'uid'
,
'type'
,
'key'
,
'content'
,
'quote'
,
'ext'
,
'time'
));
}
/**
* 从时间线中删除动态
* @param string $key
* @return mixed
*/
public
static
function
removeTimeline
(
$key
)
{
return
self
::
call
(
'Timeline.removeTimeline'
,
compact
(
'key'
));
}
}
\ 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