public static void main(String[] args) throws ClientProtocolException,
			IOException, ParseException {

		ConfModel confModel = null;
		try {
			confModel = readConf(args[0]);
		} catch (Exception e) {
			System.out.println("設定ファイルの読み込みに失敗しました。" + e.toString());
		}
		System.out.println("set OK");

		String affiliate_url = "http://atq.ck.valuecommerce.com/servlet/atq/referral?sid=2219441&pid=877510753&vcptn="
				+ confModel.getYahooAuctionModel().getAffiliatId() + "&vc_url=";

		CloseableHttpClient httpclient = HttpClients.createDefault();
		HttpPost post = new HttpPost(YAHOO_AUCTION_URL);
		ArrayList<NameValuePair> params = new ArrayList<NameValuePair>();
		params.add(new BasicNameValuePair("appid", confModel
				.getYahooAuctionModel().getApplicationKey()));
		params.add(new BasicNameValuePair("sort", confModel.getSearchQuery()
				.getSort()));
		params.add(new BasicNameValuePair("order", confModel.getSearchQuery()
				.getOrder()));
		params.add(new BasicNameValuePair("page", confModel.getSearchQuery()
				.getPage()));
		params.add(new BasicNameValuePair("query", confModel.getSearchQuery()
				.getQuery()));
		post.setEntity(new UrlEncodedFormEntity(params, HTTP.UTF_8));
		HttpResponse response = httpclient.execute(post);

		HttpEntity entity = response.getEntity();
		InputStream content = entity.getContent();

		String contenString = IOUtils.toString(content);

		System.out.println(contenString);
		
		String json = jsonp2json(contenString);
		
		readRestResult(affiliate_url, json);

	}