Skip to content

Commit

Permalink
update pagination to api
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdullahGhanem committed Aug 12, 2021
1 parent a89606b commit fc772e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ static public function getUserFeeds($user_name, $cursor, $count)
{
$endpoint = 'v1/users/' . $user_name . '/gfycats';
$params = [];
isset($count) ? $params['count'] = urlencode($count) : null;
isset($cursor) ? $params['cursor'] = urlencode($cursor) : null;
isset($count) ? $params['count'] = $count : null;
isset($cursor) ? $params['cursor'] = $cursor : null;
return Request::request($endpoint, $params);
}
}

0 comments on commit fc772e8

Please sign in to comment.