Commit 552b978c authored by 杨培's avatar 杨培

Merge remote-tracking branch 'origin/master'

parents c67c7329 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
<?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
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