src/Api/Providers/Provider.php 1 location
|
@@ 71-77 (lines=7) @@
|
68 |
|
return $this->response->checkResponse($response); |
69 |
|
} |
70 |
|
|
71 |
|
public function execPaginatedRequest($data, $url, $sourceUrl, $bookmarks = []) |
72 |
|
{ |
73 |
|
$data['options'] = $data; |
74 |
|
$response = $this->getRequest()->exec($url . '?' . Request::createQuery($data, $sourceUrl, $bookmarks)); |
75 |
|
|
76 |
|
return $this->getResponse()->getPaginationData($response); |
77 |
|
} |
78 |
|
|
79 |
|
/** |
80 |
|
* @return Request |
src/Helpers/Providers/Traits/HasFollowers.php 1 location
|
@@ 21-27 (lines=7) @@
|
18 |
|
* |
19 |
|
* @return array |
20 |
|
*/ |
21 |
|
public function getData($data, $url, $sourceUrl, $bookmarks = []) |
22 |
|
{ |
23 |
|
$data['options'] = $data; |
24 |
|
$response = $this->getRequest()->exec($url.'?'.Request::createQuery($data, $sourceUrl, $bookmarks)); |
25 |
|
|
26 |
|
return $this->getResponse()->getPaginationData($response); |
27 |
|
} |
28 |
|
|
29 |
|
/** |
30 |
|
* @param array $data |