File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -30,20 +30,20 @@ Sorting is possible by passing a SortOptions object into the constructor of supp
3030``` java
3131// Example printing the 20 top-purchased resources.
3232Client client = new Client (new Token (" TOKEN STRING" , Token . Type . PRIVATE ));
33- Response<Resource []> response = client. sendOrWait(new ListPublicResourcesRequest (new SortOptions (" purchase_count" , Order . DESCENDING , 1 )));
33+ Response<BasicResource []> response = client. sendOrWait(new ListPublicResourcesRequest (new SortOptions (" purchase_count" , Order . DESCENDING , 1 )));
3434
3535if (response. getError() == null ) {
36- Resource [] resources = response. getValue();
36+ BasicResource [] resources = response. getValue();
3737
38- for (Resource resource : resources) {
38+ for (BasicResource resource : resources) {
3939 System . out. println(resource. getTitle());
4040 }
4141} else {
4242 Error error = response. getError();
4343 System . out. println(error. getCode() + " : " + error. getMessage());
4444}
4545```
46- Sortable fields can be found at the official API documentation [ here] ( https://www.mc-market.org/wiki/ultimate-api / ) .
46+ Sortable fields can be found at the official API documentation [ here] ( https://www.mc-market.org/wiki/v1-endpoints / ) .
4747
4848# Jitpack Installation
4949## Gradle
You can’t perform that action at this time.
0 commit comments