src/Client.php
public function useVersion(string $version)
    {
        if (! \array_key_exists($version, $this->supportedVersions)) {
            throw new InvalidArgumentException("API version [{$version}] is not supported.");
        }

        $this->defaultVersion = $version;

        return $this;
    }
public function useVersion(string $version)
    {
        if (! \array_key_exists($version, $this->supportedVersions)) {
            throw new InvalidArgumentException("API version [{$version}] is not supported.");
        }

        $this->defaultVersion = $version;

        return $this;
    }
public function useVersion ( string $ version ) { if ( ! \ array_key_exists ( $ version , $ this -> supportedVersions ) ) { throw new InvalidArgumentException ( "API version [{$version}] is not supported." ) ; } $ this -> defaultVersion = $ version ; return $ this ; }
Use different API version.

@param  string  $version

@throws \InvalidArgumentException

@return $this
Use different API version .