Skip to content

Commit 54f8354

Browse files
committed
update readme
1 parent ce2f9fe commit 54f8354

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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.
3232
Client 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

3535
if (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

0 commit comments

Comments
 (0)