Skip to content

Commit

Permalink
Merge pull request #18 from HD-CMS/feature/set-namespace
Browse files Browse the repository at this point in the history
Feature/set namespace
  • Loading branch information
maclof authored Dec 6, 2017
2 parents 29ca75e + d8ed820 commit 8c17701
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ public function __construct(array $options = array(), GuzzleClient $guzzleClient
* Set the options.
*
* @param array $options
* @throws MissingOptionException
*/
public function setOptions(array $options)
{
Expand Down Expand Up @@ -199,6 +200,16 @@ public function setOptions(array $options)
}
}

/**
* Set namespace.
*
* @param string $namespace
*/
public function setNamespace($namespace)
{
$this->namespace = $namespace;
}

/**
* Check if we're using guzzle 6.
*
Expand Down Expand Up @@ -277,7 +288,8 @@ public function getGuzzleClient()
* @param mixed $body
* @param boolean $namespace
* @param string $apiVersion
* @return array
* @return array|string
* @throws \Exception
*/
public function sendRequest($method, $uri, $query = [], $body = [], $namespace = true, $apiVersion = null)
{
Expand Down

0 comments on commit 8c17701

Please sign in to comment.