Code example for TreeMap

Methods: put

0
	/** 
	 * redirect to flickr auth web pages. 
	 */ 
	public Uri redirectAuthPage() {
		// http://flickr.com/services/auth/?api_key=987654321&perms=write&frob=1a2b3c4d5e&api_sig=6f3870be274f6c49b3e31a0c6728957f 
		TreeMap<String , Object> map = new TreeMap<String, Object>();
		 
		map.put(paramApiKey, apiKey);
		map.put(paramPerm, "write");
		map.put(paramFlob, frob);
		map.put(paramApiSig, makeToken(map));
		 
		RestRequestData request = new RestRequestData();
		request.setUrl(baseUrl);
		request.setPath(servicePath + "/" + authPath + "/");
		request.setQueryParam(map);
 
		URL url = RestfulLib.makeUrl(request);
		return Uri.parse(url.toString());
	}