Newer
Older
RestfulChecker / src / testcase / twitter / TestPOSTupdateTwitter.java
y-ota on 10 Jan 2019 927 bytes ほぼすべての結果が出た
package testcase.twitter;

import restfulchecker.RestParam;
import restfulchecker.RestChecker.Method;

public class TestPOSTupdateTwitter extends TestTwitter {
	private String updatevalue = "OAuth oauth_consumer_key=\"xPk6o11catewYwxGcXvvvqo2I\",oauth_token=\"3279293718-bTcjYBEU1dqTdD2mm40J8IV7UrGcPHneHFLzomD\",oauth_signature_method=\"HMAC-SHA1\",oauth_timestamp=\"1547105119\",oauth_nonce=\"iw80A2\",oauth_version=\"1.0\",oauth_signature=\"TIWghvskihhXyxD1ZtEW7YoHz4Y%3D\"";

	public TestPOSTupdateTwitter(String ListID, String name) {
		super();
		query.add(new RestParam("list_id", ListID));
		query.add(new RestParam("name", name));
		path.add("lists");
		path.add("update.json");
		check.setProperty("Authorization", updatevalue);
		check.setupRestTest(Method.POST, query, form, path);
		check.getResourceParam().setPathParams("lists");
		check.getResourceParam().setPathParams("list.json");
	}

}