diff --git a/src/main/Main.java b/src/main/Main.java index 2729874..30e781e 100644 --- a/src/main/Main.java +++ b/src/main/Main.java @@ -17,23 +17,21 @@ static TestDELETECactus delete = new TestDELETECactus("qF9bgKYZmw8P"); public static void main(String[] args) { - post.start(); -// init(); -// api.doRestTest(); -// System.out.println(api.getResults()); +// post.start(); + init(); + api.doRestTest(); + System.out.println(api.getResults()); // System.out.println(api.getBeforeResults()); // System.out.println(api.getJudgeResult()); } static private void init() { api.setAccount("https://www.googleapis.com/youtube/v3"); - queryParam.add(new RestParam("key", "AIzaSyD5EI71SqPZhgdpwzlV0XTisGuKKtH5p6I")); - queryParam.add(new RestParam("id", "7lCDEYXw3mM")); - queryParam.add(new RestParam("part", "status")); - queryParam.add(new RestParam("access_token", - "4/qAArj0H6c6w-brTnYiy1aGXn_PW97ks_KJdS03-tYEdXyT_W1OAyWh3OdMTuOctD1zEdjLpAHR2Ez-vgar6WqYQ")); +// queryParam.add(new RestParam("key", "AIzaSyD5EI71SqPZhgdpwzlV0XTisGuKKtH5p6I")); +// queryParam.add(new RestParam("id", "7lCDEYXw3mM")); + queryParam.add(new RestParam("part", "snippet")); + queryParam.add(new RestParam("access_token", "ya29.GltoBgshDGc5-hOiCBnKcrpu5vZvEOy-wSBhul7wyzcg8XpFWMWhymWADANBsx0FoG643I8DD855hYVUCMw8beOgGc4WyA0HQwfPcNQZR0nuYREsXOIj6O2UymPi")); pathParam.add("playlists"); - formParam.add(new RestParam("snippet.title", "test")); api.setupRestTest(Method.POST, queryParam, formParam, pathParam); }