lib/Shipmile/HttpClient/HttpClient.php
public function createRequest($httpMethod, $path, $body = null, array $headers = array(), array $options = array())
    {
        $version = (isset($options['api_version']) ? "/".$options['api_version'] : "");

        $path    = $version.$path;

        return $this->client->createRequest($httpMethod, $path, $headers, $body, $options);
    }
public function createRequest($httpMethod, $path, $body = null, array $headers = array(), array $options = array())
    {
        $version = (isset($options['api_version']) ? "/".$options['api_version'] : "");

        $path    = $version.$path;

        return $this->client->createRequest($httpMethod, $path, $headers, $body, $options);
    }
public function createRequest ( $ httpMethod , $ path , $ body = null , array $ headers = array ( ) , array $ options = array ( ) ) { $ version = ( isset ( $ options [ 'api_version' ] ) ? "/" . $ options [ 'api_version' ] : "" ) ; $ path = $ version . $ path ; return $ this -> client -> createRequest ( $ httpMethod , $ path , $ headers , $ body , $ options ) ; }
Creating a request with the given arguments

If api_version is set, appends it immediately after host
Creating a request with the given arguments