Skip to content

Commit

Permalink
Top1D enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
adriens committed Apr 11, 2021
1 parent 30191fa commit ddf64fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.github.adriens.imgflip</groupId>
<artifactId>imgflip4j</artifactId>
<version>1.5</version>
<version>1.6</version>
<packaging>jar</packaging>
<description>A Java SDK to interact with Imgflip API.</description>
<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.util.Calendar;
import java.util.Date;
import org.apache.commons.lang3.StringUtils;
Expand Down Expand Up @@ -76,8 +74,11 @@ public static String getPathOfTop(String inStream, String sortOption, int page){
public static String getPathOfTop(String inStream, String sortOption){
return getPathOfTop(inStream, sortOption, 1);
}
public static String getPathOfTopOneDay(String stream, int page){
return getPathOfTop(stream, "top-1d", page);
}
public static String getPathOfTopOneDay(String stream){
return getPathOfTop(stream, "top-1d");
return getPathOfTop(stream, "top-1d", 1);
}
public static String getPathOfTopSevendays(String stream){
return getPathOfTop(stream, "top-7d");
Expand Down

0 comments on commit ddf64fe

Please sign in to comment.