From 263086a63efb8fa934604ba81875d5612e7e8f53 Mon Sep 17 00:00:00 2001 From: adriens Date: Sun, 11 Apr 2021 12:29:00 +1100 Subject: [PATCH] Top 7 daus functions --- pom.xml | 2 +- .../adriens/imgflip/sdk/imgflip/sdk/ImgFlipURLHelper.java | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 72beed8..2847464 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.github.adriens.imgflip imgflip4j - 1.6 + 1.7 jar A Java SDK to interact with Imgflip API. diff --git a/src/main/java/com/github/adriens/imgflip/sdk/imgflip/sdk/ImgFlipURLHelper.java b/src/main/java/com/github/adriens/imgflip/sdk/imgflip/sdk/ImgFlipURLHelper.java index 99e4c41..5cbcebe 100644 --- a/src/main/java/com/github/adriens/imgflip/sdk/imgflip/sdk/ImgFlipURLHelper.java +++ b/src/main/java/com/github/adriens/imgflip/sdk/imgflip/sdk/ImgFlipURLHelper.java @@ -80,8 +80,12 @@ public static String getPathOfTopOneDay(String stream, int page){ public static String getPathOfTopOneDay(String stream){ return getPathOfTop(stream, "top-1d", 1); } + public static String getPathOfTopSevendays(String stream, int page){ + return getPathOfTop(stream, "top-7d", page); + } + public static String getPathOfTopSevendays(String stream){ - return getPathOfTop(stream, "top-7d"); + return getPathOfTopSevendays(stream, 1); } public static String getPathOfTopThirtyDays(String stream){ return getPathOfTop(stream, "top-30d");