diff --git a/src/main/Main.java b/src/main/Main.java index 566c487..c9e0d45 100644 --- a/src/main/Main.java +++ b/src/main/Main.java @@ -22,20 +22,17 @@ api.jsonAcquisition("src/main/you.json"); 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", "snippet")); - queryParam.add(new RestParam("access_token", - "ya29.GltqBt15-zkpMQ_Moqbt1ccsFh-KFFKcWHNB9LiDYlAOBdOW-gqHCexRJUfJN-G2j_2W2GfNT1HrRC5b0N9sl7RYcmXb28-lHjbtu0mWP7PHU0FhzJ-MnymdbnVJ")); + queryParam.add(new RestParam("id", "PLZcOpFipzeuFmuPLYyijcN0l4S0skwuiR")); + queryParam.add(new RestParam("part", "id")); + api.setToken("access_token", + "ya29.GltqBnBr5rboUfJ8ODUnj3vtdV54kjLRXbbntDt1M_4f_HGfXj-NL5ODfDkS7tn4nzP93L3w26KvtB27EZAg3Z7Q_NJZGNDy4KtKTTla1TNOA8URDNsKDEqHEV4D"); pathParam.add("playlists"); - api.setupRestTest(Method.POST, queryParam, formParam, pathParam); + api.setProperty("Content-type", "application/json"); + api.setupRestTest(Method.GET, queryParam, formParam, pathParam); } }