Skip to content

Commit

Permalink
Move $data argument before the $params argument in the post() method (#2
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ziming authored Oct 15, 2021
1 parent 1200b36 commit 911ede0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LaravelScrapingBee.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function get(string $url, array $params = [], array $headers = [], array
/**
* Matching it with ScrapingBee Python Library
*/
public function post(string $url, array $params = [], array $data = [], array $headers = [], array $cookies = [], string $postContentType = 'application/x-www-form-urlencoded; charset=utf-8'): Response
public function post(string $url, array $data = [], array $params = [], array $headers = [], array $cookies = [], string $postContentType = 'application/x-www-form-urlencoded; charset=utf-8'): Response
{
return $this->request('POST', $url, $params, $data, $headers, $cookies, $postContentType);
}
Expand Down

0 comments on commit 911ede0

Please sign in to comment.