Skip to content

Commit

Permalink
Merge pull request #3 from ViT4RGh0ST/master
Browse files Browse the repository at this point in the history
feat: support 200 as status code for json requests
  • Loading branch information
AlexR1712 authored Sep 19, 2022
2 parents 040a956 + 5cc721a commit ca139a5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SAPb1/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ public function __construct(Config $configOptions, array $session, string $servi
public function create(array $data){

$response = $this->doRequest('POST', $data);

if($response->getStatusCode() === 200){
return $response->getJson();
}

if($response->getStatusCode() === 201){
return $response->getJson();
Expand Down

0 comments on commit ca139a5

Please sign in to comment.