diff --git a/src/main/Main.java b/src/main/Main.java index 80837c9..e58b307 100644 --- a/src/main/Main.java +++ b/src/main/Main.java @@ -27,33 +27,6 @@ TestYouTube update = new TestPUTYouTube(token); TestYouTube deletelist = new TestDELETEYouTube(token, "PLCwNa5MZdBSq_3K5-MV0x6luKXskvqrKk"); deletelist.start(); -// init(); -// api.jsonAcquisition("src/testcase/post.json"); -// System.out.println(api.getReadJson()); -// System.out.println(api.jsonRemove( -// "[{\"snippet\":{\"title\":\"aaa\",\"description\":\"RestfulChecker`s Test\"},\"status\":{\"privacyStatus\":\"private\"}},{\"snippet\":{\"title\":\"aaa\",\"description\":\"RestfulChecker`s Test\"},\"status\":{\"privacyStatus\":\"private\"}}]", -// remove)); -// api.doRestTest(); -// System.out.println(api.getResults()); - } - - private static void init() { - api.setAccount("https://www.googleapis.com/youtube/v3"); - queryParam.add(new RestParam("mine", "true")); - queryParam.add(new RestParam("part", "id")); - queryParam.add(new RestParam("access_token", - "ya29.GltxBj_5n_s4vQREqFTthpK2VzHsHlWA2IM23VI-_Ba8c4gHe5a7WAPehjVE31mhuesxWnlNGWND2RAJ5zTz3-PlItqutga6rWOOivXYusklhHha0yavLB2Ms0vV")); - pathParam.add("playlists"); - api.getGetnesParam().setQueryParams(new RestParam("mine", "true")); - api.getGetnesParam().setQueryParams(new RestParam("part", "id")); - api.getGetnesParam().setQueryParams(new RestParam("access_token", - "ya29.GltxBj_5n_s4vQREqFTthpK2VzHsHlWA2IM23VI-_Ba8c4gHe5a7WAPehjVE31mhuesxWnlNGWND2RAJ5zTz3-PlItqutga6rWOOivXYusklhHha0yavLB2Ms0vV")); - api.getGetnesParam().setPathParams("playlists"); - api.setProperty("Content-type", "application/json"); - api.setRemoveParam(new RemoveJsonParam("etag", new ArrayList<>())); - api.setupRestTest(Method.GET, queryParam, formParam, pathParam); - remove.setRemoveParam("privacyStatus"); - remove.setNode("status"); } }