/** * @return string */ public function createUrl() { $prefix = strpos($this->url, '?') ? '&' : '?'; $timestamp = time(); $nonce = mt_rand(); return $this->url . $prefix . http_build_query(array('timestamp' => $timestamp, 'nonce' => $nonce, 'signature' => Request::createSignature($this->token, $timestamp, $nonce))); }