Example #1
0
        return $baseString;
    }
    public static function UrlEncode($value)
    {
        if ($value === false) {
            return $value;
        } else {
            return str_replace('%7E', '~', rawurlencode($value));
        }
    }
    private function traceField($name, $value)
    {
        array_push($this->traceLog, $name . "=" . print_r($value, true));
    }
}
GSRequest::__constructStatic();
/**
 * Wraps the server's response.
 * If the request was sent with the format set to "xml", the getData() will return null and you should use getResponseText() instead.
 * We only parse response text into GSObject if request format is set "json" which is the default. 
 *
 */
class GSResponse
{
    private $errorCode = 0;
    private $errorMessage = null;
    private $rawData = "";
    private $data;
    //GSObject
    private static $errorMsgDic;
    private $params = null;