Skip to content

Commit

Permalink
Исправление путей АПИ (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
vasyag07 authored and gwinn committed Nov 1, 2017
1 parent e02262d commit 7f264cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/SaaS/Service/Gett/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public function getEta(array $parameters)
throw new \InvalidArgumentException("Parameters must not be empty");
}

$path = '/buseinss/eta';
$path = '/business/eta';
$parameters['business_id'] = $this->business_id;

return $this->request->makeRequest($token, $path, 'GET', $parameters);
Expand All @@ -192,7 +192,7 @@ public function getPriceEstimate(array $parameters)
throw new \InvalidArgumentException("Parameters must not be empty");
}

$path = '/buseinss/price';
$path = '/business/price';
$parameters['business_id'] = $this->business_id;

return $this->request->makeRequest($token, $path, 'GET', $parameters);
Expand All @@ -217,7 +217,7 @@ public function createRide(array $parameters)
throw new \InvalidArgumentException("Parameters must not be empty");
}

$path = '/buseinss/rides?business_id=' . $this->business_id;
$path = '/business/rides?business_id=' . $this->business_id;

return $this->request->makeRequest($token, $path, 'POST', json_encode($parameters));
}
Expand Down

0 comments on commit 7f264cc

Please sign in to comment.