Browse Source

fix getPosts method

main
ghost 11 months ago
parent
commit
99aa68abeb
  1. 10
      src/Client.php

10
src/Client.php

@ -151,6 +151,16 @@ class Client
public function getPosts(array $userNames, int $limit, array &$errors = []): ?array public function getPosts(array $userNames, int $limit, array &$errors = []): ?array
{ {
$data = [];
foreach ($userNames as $userName)
{
$data[] =
[
'username' => $userName
];
}
return $this->_exec( return $this->_exec(
'/', '/',
'POST', 'POST',

Loading…
Cancel
Save