diff --git a/src/main/Main.java b/src/main/Main.java index c246b09..e4cc5d2 100644 --- a/src/main/Main.java +++ b/src/main/Main.java @@ -25,11 +25,11 @@ init(); // api.jsonAcquisition("src/main/you.json"); // System.out.println(api.getReadJson()); - System.out.println(api.jsonRemove( - "[{\"snippet\":{\"title\":\"aaa\",\"status\":\"e\"}},{\"snippet\":{\"title\":\"aaa\",\"status\":\"e\"}}]", - remove)); -// api.doRestTest(); -// System.out.println(api.getResults()); +// 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() { @@ -37,18 +37,18 @@ queryParam.add(new RestParam("mine", "true")); queryParam.add(new RestParam("part", "id")); queryParam.add(new RestParam("access_token", - "ya29.GltwBvF7RosPhYHUlEnGaorRpqpdyD1nwRAm4m3rNihRsIZV5ZgZsL3PB_3jwMJTKF1huWkKkorUPiCsunGfMySzxfutzX4y0RN9f4iw8GxFyPHBEkPZHbxsgSXF")); + "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.GltwBvF7RosPhYHUlEnGaorRpqpdyD1nwRAm4m3rNihRsIZV5ZgZsL3PB_3jwMJTKF1huWkKkorUPiCsunGfMySzxfutzX4y0RN9f4iw8GxFyPHBEkPZHbxsgSXF")); + "ya29.GltxBj_5n_s4vQREqFTthpK2VzHsHlWA2IM23VI-_Ba8c4gHe5a7WAPehjVE31mhuesxWnlNGWND2RAJ5zTz3-PlItqutga6rWOOivXYusklhHha0yavLB2Ms0vV")); api.getGetnesParam().setPathParams("playlists"); - // api.setProperty("Content-type", "application/json"); +// api.setProperty("Content-type", "application/json"); api.setRemoveParam(new RemoveJsonParam("etag", new ArrayList<>())); api.setupRestTest(Method.GET, queryParam, formParam, pathParam); - remove.setRemoveParam("status"); - remove.setNode("snippet"); + remove.setRemoveParam("privacyStatus"); + remove.setNode("status"); } }