diff --git a/src/main/Main.java b/src/main/Main.java index 9991ac2..a627496 100644 --- a/src/main/Main.java +++ b/src/main/Main.java @@ -15,21 +15,27 @@ public static void main(String[] args) { init(); - api.setupRestTest(Method.PUT, queryParam, formParam, pathParam); + api.setupRestTest(Method.GET, queryParam, formParam, pathParam); api.doRestTest(); -// System.out.println(api.getResults()); + System.out.println(api.getResults()); // System.out.println(api.getBeforeResults()); // System.out.println(api.getJudgeResult()); } static private void init() { -// api.setAccount("https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20text%3D%22greenland%22)&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys"); - api.setAccount("http://nitta-lab-www.is.konan-u.ac.jp/CactusServer/rest/accounts"); - formParam.add(new RestParam("userID", "test")); - formParam.add(new RestParam("userPass", "test")); + api.setAccount("https://www.googleapis.com/youtube/v3"); +// api.setAccount("http://nitta-lab-www.is.konan-u.ac.jp/CactusServer/rest/accounts"); +// formParam.add(new RestParam("userID", "test")); +// formParam.add(new RestParam("userPass", "test")); // formParam.add(new RestParam("userName", "g")); + queryParam.add(new RestParam("key","AIzaSyD5EI71SqPZhgdpwzlV0XTisGuKKtH5p6I")); + queryParam.add(new RestParam("id","7lCDEYXw3mM")); + queryParam.add(new RestParam("part","id")); + pathParam.add("playlists"); +// formParam.add(new RestParam("snippet.title", "Dead by Daylight")); // pathParam.add("logout"); // formParam.add(new RestParam("token", "E12xg9f1MCDr8P7aqDQdx4l7nIM3CdvpzXz2vbmzl832LGe8DjwAPWR6wZzP5hn4")); +// pathParam.add("G90zOL9UTeTx"); } }