aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorPinapelz <donaldshan1@outlook.com>2023-04-05 00:24:48 -0700
committerGitHub <noreply@github.com>2023-04-05 00:24:48 -0700
commit4da21792a7e8858fda4153955affe89f17e40115 (patch)
treeb6afc2dfc548f81c14cefe90fcf4b51a5af7fade /README.md
parent51ebbee71fb508bc7c95807e06daef12422ccbcd (diff)
Create README.md
Diffstat (limited to 'README.md')
-rw-r--r--README.md30
1 files changed, 30 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..848c058
--- /dev/null
+++ b/README.md
@@ -0,0 +1,30 @@
+# JHolodex
+A mega scuffed Java Holodex Wrapper (cuz i might need one someday)
+This is currently a work-in-progress
+
+```java
+Holodex holodex = new Holodex("YOUR_API_KEY");
+Channel channel = holodex.getChannel("UC4WvIIAo89_AzGUh1AZ6Dkg");
+System.out.println(channel.name + " is a member of " + channel.org + " and has " + channel.suborg + " as a suborg");
+
+LiveVideoQueryBuilder liveVideoQuery = new LiveVideoQueryBuilder().setStatus("live").setOrg("Hololive");
+List<Video> currentlyLiveVideos = holodex.getLiveVideos(liveVideoQuery);
+System.out.println("Currently there are " + currentlyLiveVideos.size() + " livestreams on going in Hololive");
+
+for (Video video : currentlyLiveVideos) {
+ System.out.println(video.channel.name + " is currently live with " + video.live_viewers + " views");
+}
+
+ChannelQueryBuilder channelQuery = new ChannelQueryBuilder();
+channelQuery.setOrg("Nijisanji");
+channelQuery.setLimit(75);
+List<Channel> nijisanjiMembers = holodex.getChannels(channelQuery);
+
+VideoQueryBuilder vidoeQuery = new VideoQueryBuilder();
+vidoeQuery.setVideoId("9-O_IWM3184");
+Video anotherVideo = holodex.getVideo(new VideoQueryBuilder().setVideoId("9-O_IWM3184").setLang("en"));
+System.out.println(anotherVideo.channel.name + " uploaded a video titled " + anotherVideo.title +
+ " on " + anotherVideo.published_at);
+```
+
+[Holodex License](https://docs.holodex.net/docs/holodex/8166fcec5dbe2-license)
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage