Commit 76e58605 authored by wangjj's avatar wangjj

获取帖子接口

parent 861c9f9b
......@@ -11,4 +11,4 @@ use internalApi\bbs\Thread;
require __DIR__.'/_init.php';
Thread::setDebug(true);
print_r(Thread::getQuestionDigest());
\ No newline at end of file
print_r(Thread::getThreadDigest());
\ No newline at end of file
......@@ -81,4 +81,14 @@ class Thread extends Client
public static function getQuestionDigest($num = 1){
return self::call('thread.getQuestionDigest',compact('num'));
}
/**
* 获取维修中精华3的帖子
* @param int $num
* @return mixed
*/
public static function getThreadDigest($num = 1)
{
return self::call('thread.getThreadDigest',compact('num'));
}
}
\ 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