aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/com/pina/HolodexService.java
diff options
context:
space:
mode:
authorPinapelz <donaldshan1@outlook.com>2023-04-04 23:24:49 -0700
committerPinapelz <donaldshan1@outlook.com>2023-04-04 23:24:49 -0700
commitaa70fe1417c22383b8a88374288947362f0c6d48 (patch)
treed76a647d28bb1a7ace10661593b5b3ee8d056be3 /src/main/java/com/pina/HolodexService.java
parent0bd602d575485361ce2c658ace6374c1d96ba881 (diff)
Implemented getVideosFromChannels, getVideo, and getChannels GET requests
Diffstat (limited to 'src/main/java/com/pina/HolodexService.java')
-rw-r--r--src/main/java/com/pina/HolodexService.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/com/pina/HolodexService.java b/src/main/java/com/pina/HolodexService.java
index 40a402c..dcbb2c8 100644
--- a/src/main/java/com/pina/HolodexService.java
+++ b/src/main/java/com/pina/HolodexService.java
@@ -64,20 +64,20 @@ public interface HolodexService {
@Query("paginated") String paginated
);
- @GET("/api/v2/channels/users/live")
+ @GET("/api/v2/users/live")
Call<List<Video>> getVideosFromChannels(
- @Query("channels") String[] channels
+ @Query("channels") String channels
);
@GET("/api/v2/videos/{videoID}")
- Call<List<Video>> getVideo(
+ Call<Video> getVideo(
@Path("videoID") String videoID,
@Query("lang") String lang,
@Query("c") String c
);
@GET("/api/v2/channels")
- Call<List<Video>> getChannels(
+ Call<List<Channel>> getChannels(
@Query("limit") Integer limit,
@Query("offset") Integer offset,
@Query("type") String type,
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage