public static function SignUrl($url,$method,$key,$secret,$params=null,$body=null,$signature_method='HMAC_SHA1')
	{
		$options = array('consumer_key' => $key, 'consumer_secret' => $secret);
		$params = $params ? $params : array();

		OAuthStore::instance("2Leg", $options);

		// Obtain a request object for the request we want to make
		$request = new OAuthRequester($url, $method, $params, $body);

		$sig = $request->sign($key,null,'');

		$data = $request->signatureBaseString();

		$url = substr( urldecode($data . '&oauth_signature=' . $request->calculateDataSignature($data,$secret,'',$signature_method) ), strlen($method) + 1);

		$url = VerySimpleStringUtil::ReplaceFirst('&', '?', $url);

		return $url;
	}