Skip to content

Commit 506f69d

Browse files
author
Abedalaziz Jamous
committed
accept array of ids in manpower
1 parent 26a5402 commit 506f69d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Articles/Article.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public function fetchWriter(Int $writer_id)
195195
return $responseContent->data;
196196
}
197197

198-
public function fetchArticleManpower(Int $article_id)
198+
public function fetchArticleManpower(Array $article_ids)
199199
{
200200
$request_uri = self::GET_ARTICLE_MANPOWER;
201201
// Send a request to $request_uri
@@ -205,7 +205,7 @@ public function fetchArticleManpower(Int $article_id)
205205
'Content-Type' => 'application/json',
206206
'Accesp' => 'application/json'
207207
],
208-
'body' => json_encode(["articles" => [$article_id]]),
208+
'body' => json_encode(["articles" => $article_ids]),
209209
]);
210210

211211
$responseContent = json_decode($response->getBody()->getContents());

0 commit comments

Comments
 (0)