diff --git a/src/Client.php b/src/Client.php index 283cc3a..a0d1346 100644 --- a/src/Client.php +++ b/src/Client.php @@ -151,6 +151,16 @@ class Client public function getPosts(array $userNames, int $limit, array &$errors = []): ?array { + $data = []; + + foreach ($userNames as $userName) + { + $data[] = + [ + 'username' => $userName + ]; + } + return $this->_exec( '/', 'POST',