diff --git a/src/Client.php b/src/Client.php index e39d0a6..aefb374 100644 --- a/src/Client.php +++ b/src/Client.php @@ -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) { @@ -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. * @@ -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) {