Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function getPosts($user_id, $count, $offset = 0){
- return $this->api(
- 'users.getPosts',
- [
- 'user_id' => $user_id,
- 'count' => $count,
- 'offset' => $offset
- ]
- )->posts;
- }
- $posts = $nimses->getPosts($user->userId, 5);
- if(count($posts) > 0) {}
- private $methods = [
- 'users' => [
- // nearby,nim
- 'getPosts' => [
- 'path' => 'v1.1/users/posts/:user_id:',
- 'method' => 'GET'
- ],
- ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement