Skip to content

Commit

Permalink
Update where function to add ?where to query string as per API docume…
Browse files Browse the repository at this point in the history
…ntation
  • Loading branch information
colinhall17 committed Aug 3, 2019
1 parent c4a9819 commit cbc64b2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Support/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -317,14 +317,15 @@ public function getQueryString()
{
$query_string = '';
if ($this->queries != []) {
$query_string .= '?';
$query_string .= '?where';
$i = 1;
foreach ($this->queries as $query) {
if ($i > 1) {
$query_string .= '&';
}
$query_string .= $query['key'].$query['operator'].urlencode($query['value']);
$i++;
$query_string .= urlencode($query['key'].$query['operator'].'"'.$query['value'].'"');

$i++;
}
}

Expand Down

0 comments on commit cbc64b2

Please sign in to comment.