Skip to content

Commit 7757427

Browse files
docs(client): update readme timeout snippet
1 parent a2bbd13 commit 7757427

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -416,11 +416,9 @@ Requests time out after 1 minute by default.
416416
To set a custom timeout, configure the method call using the `timeout` method:
417417

418418
```java
419-
import com.lithic.api.models.Card;
419+
import com.lithic.api.models.CardListPage;
420420

421-
Card card = client.cards().create(
422-
params, RequestOptions.builder().timeout(Duration.ofSeconds(30)).build()
423-
);
421+
CardListPage page = client.cards().list(RequestOptions.builder().timeout(Duration.ofSeconds(30)).build());
424422
```
425423

426424
Or configure the default for all method calls at the client level:

0 commit comments

Comments
 (0)