You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A logging framework/facade has not yet been adopted but is under consideration.
78
78
79
-
For request and response logging (especially json bodies) use:
79
+
For request and response logging (especially json bodies), call `enableHTTPDebugLogging()` on the SDK builder like so:
80
80
```java
81
-
SpeakeasyHTTPClient.setDebugLogging(true); // experimental API only (may change without warning)
81
+
SDK.builder()
82
+
.enableHTTPDebugLogging()
83
+
.build();
82
84
```
83
85
Example output:
84
86
```
@@ -92,7 +94,9 @@ Response body:
92
94
"token": "global"
93
95
}
94
96
```
95
-
WARNING: This should only used for temporary debugging purposes. Leaving this option on in a production system could expose credentials/secrets in logs. <i>Authorization</i> headers are redacted by default and there is the ability to specify redacted header names via `SpeakeasyHTTPClient.setRedactedHeaders`.
97
+
__WARNING__: This should only used for temporary debugging purposes. Leaving this option on in a production system could expose credentials/secrets in logs. <i>Authorization</i> headers are redacted by default and there is the ability to specify redacted header names via `SpeakeasyHTTPClient.setRedactedHeaders`.
98
+
99
+
__NOTE__: This is a convenience method that calls `HTTPClient.enableDebugLogging()`. The `SpeakeasyHTTPClient` honors this setting. If you are using a custom HTTP client, it is up to the custom client to honor this setting.
96
100
97
101
Another option is to set the System property `-Djdk.httpclient.HttpClient.log=all`. However, this second option does not log bodies.
Some of the endpoints in this SDK support pagination. To use pagination, you make your SDK calls as usual, but the
725
-
returned response object will have a `next` method that can be called to pull down the next group of results. The `next`
726
-
function returns an `Optional` value, which `isPresent` until there are no more pages to be fetched.
729
+
Some of the endpoints in this SDK support pagination. To use pagination, you can make your SDK calls using the `callAsIterable` or `callAsStream` methods.
730
+
For certain operations, you can also use the `callAsStreamUnwrapped` method that streams individual page items directly.
731
+
732
+
Here's an example depicting the different ways to use pagination:
Copy file name to clipboardExpand all lines: docs/models/components/LedgerAccount.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@
9
9
|`displayId`|*Optional\<String>*|:heavy_minus_sign:| The human readable display ID used when displaying the account | 1-12345 |
10
10
|~~`nominalCode`~~|*JsonNullable\<String>*|:heavy_minus_sign:| : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.<br/><br/>The nominal code of the ledger account. | N091 |
11
11
|`code`|*JsonNullable\<String>*|:heavy_minus_sign:| The code assigned to the account. | 453 |
12
-
|`classification`|[JsonNullable\<Classification>](../../models/components/Classification.md)|:heavy_minus_sign:| The classification of account. | asset |
12
+
|`classification`|[JsonNullable\<LedgerAccountClassification>](../../models/components/LedgerAccountClassification.md)|:heavy_minus_sign:| The classification of account. | asset |
13
13
|`type`|[Optional\<LedgerAccountType>](../../models/components/LedgerAccountType.md)|:heavy_minus_sign:| The type of account. | bank |
14
14
|`subType`|*JsonNullable\<String>*|:heavy_minus_sign:| The sub type of account. | CHECKING_ACCOUNT |
15
15
|`name`|*JsonNullable\<String>*|:heavy_minus_sign:| The name of the account. | Bank account |
0 commit comments