Example #1
0
 public static function request($amount = null)
 {
     $request = new self($amount);
     return $request->getResponse();
 }
    /**
     * Gets the latest revision from the remote server
     * 
     * @return bool|string
     */
    public function getLatestRevision() 
    {
        $feed = $this->getServer().'/revision';
        $client = new self(array('curl_options' => array('CURLOPT_URL' => $feed)));
        $response = $client->getResponse();
	    if (isset($response['content']) && $response['content'] != "") {
	        return $response['content'];
        } else {
            return 0;
        }
    }