diff --git a/src/main/Main.java b/src/main/Main.java index a627496..9d806c2 100644 --- a/src/main/Main.java +++ b/src/main/Main.java @@ -12,10 +12,11 @@ static ArrayList queryParam = new ArrayList<>(); static ArrayList formParam = new ArrayList<>(); static ArrayList pathParam = new ArrayList<>(); + static String code; public static void main(String[] args) { init(); - api.setupRestTest(Method.GET, queryParam, formParam, pathParam); + api.setupRestTest(Method.POST, queryParam, formParam, pathParam,code); api.doRestTest(); System.out.println(api.getResults()); // System.out.println(api.getBeforeResults()); @@ -30,9 +31,10 @@ // formParam.add(new RestParam("userName", "g")); queryParam.add(new RestParam("key","AIzaSyD5EI71SqPZhgdpwzlV0XTisGuKKtH5p6I")); queryParam.add(new RestParam("id","7lCDEYXw3mM")); - queryParam.add(new RestParam("part","id")); + queryParam.add(new RestParam("part","status")); pathParam.add("playlists"); -// formParam.add(new RestParam("snippet.title", "Dead by Daylight")); + formParam.add(new RestParam("snippet.title", "test")); +// formParam.add(new RestParam("Authorization", "4/pADWrNNy90AsgAfPqcxB_S4Js8ClNi_gRuvzb--4XvK_lCFfEBfP5t5mPODPASxUX1vjvrISNfKvgu1vR3Ev7do")); // pathParam.add("logout"); // formParam.add(new RestParam("token", "E12xg9f1MCDr8P7aqDQdx4l7nIM3CdvpzXz2vbmzl832LGe8DjwAPWR6wZzP5hn4")); // pathParam.add("G90zOL9UTeTx");