Skip to content

Commit

Permalink
Top months and years queries
Browse files Browse the repository at this point in the history
  • Loading branch information
adriens committed Apr 11, 2021
1 parent 5b82655 commit a8d8d38
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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.8</version>
<version>1.9</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 @@ -118,7 +118,7 @@ public static String getPathOfTopLastYear(String stream, int page){
String sortOpt = "top-" + dateFormat.format(lDate);
return getPathOfTop(stream, sortOpt, page);
}
public static String getPathOfTopLastYear(String stream){
public static String getPathOfTopLastYear(String stream){
return getPathOfTopLastYear(stream, 1);
}
public static String getPathOfTopOfMonthOfYear(String stream, int year, int month, int page){
Expand All @@ -128,12 +128,12 @@ public static String getPathOfTopOfMonthOfYear(String stream, int year, int mont
public static String getPathOfTopOfMonthOfYear(String stream, int year, int month){
return getPathOfTopOfMonthOfYear(stream, year, month, 1);
}
public static String getPathOfTopOfMonthOfYearWithPage(String stream, int year, int page){
public static String getPathOfTopOfYearWithPage(String stream, int year, int page){
String sortOpt = "top-" + year;
return getPathOfTop(stream, sortOpt, page);
}
public static String getPathOfTopOfMonthOfYear(String stream, int year){
return getPathOfTopOfMonthOfYearWithPage(stream, year, 1);
public static String getPathOfTopOfYear(String stream, int year){
return getPathOfTopOfYearWithPage(stream, year, 1);
}

public static void main(String[] arg){
Expand Down

0 comments on commit a8d8d38

Please sign in to comment.