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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,18 @@
1
1
# Changelog
2
2
All notable changes to this project will be documented in this file.
3
3
4
+
## [14.0.0] - 2024-10-15
5
+
### Changed
6
+
-**Breaking:** Providing `RetryWithExponentialBackoff` class for smart retries to replace the `RetryOptions` wrapper around the `exponential-backoff` package
Constructing an API object also has optional property `RetryOptions`, this acts as a light wrapper with some different defaults around the `exponential-backoff` library
126
+
Constructing an API object also has optional property `RetryWithExponentialBackoff`, which attempts retries on failed API calls with exponential backoff.
const session =newApiKeySession("< YOUR API KEY HERE >", retryWithExponentialBackoff)
142
136
```
143
137
144
138
### Organizational Helpers
@@ -147,7 +141,7 @@ There is also an optional `Klaviyo` import that has all the Apis and Auth, if yo
147
141
```Typescript
148
142
import { Klaviyo } from'klaviyo-api'
149
143
150
-
constprofilesApi=newKlaviyo.ProfilesApi(newKlaviyo.Auth.ApiKeySession("< YOUR API KEY HERE >", retryOptions))
144
+
const profilesApi =newKlaviyo.ProfilesApi(newKlaviyo.Auth.ApiKeySession("< YOUR API KEY HERE >", retry))
151
145
````
152
146
153
147
### InspectingErrors
@@ -262,7 +256,7 @@ To make an API call, you need to create an `OAuthSession` instance. This session
262
256
It takes two properties
263
257
1.`customerIdentifier` - This is how the session is going to grab a user's authentication information and let your implementation of `TokenStorage` know where to save any update `access token`
264
258
2.`oauthApi` - This is the instance of `OAuthApi` created above. It will dictate how the session `saves` and `retrieves` the `access tokens`
265
-
3. `retryOptions` - OPTIONAL - the `RetryOptions` instance outlines your desired exponential backoff retry options, outlined in [Retry Options](#retry-options) above
259
+
3.`retryWithExponentialBackoff` - OPTIONAL - the `RetryWithExponentialBackoff` instance outlines your desired exponential backoff configs, outlined in [Retry Options](#retry-options) above
* Retrieve the account(s) associated with a given private API key. This will return 1 account object within the array. You can use this to retrieve account-specific data (contact information, timezone, currency, Public API key, etc.) or test if a Private API Key belongs to the correct account prior to performing subsequent actions with the API.<br><br>*Rate limits*:<br>Burst: `1/s`<br>Steady: `15/m` **Scopes:** `accounts:read`
0 commit comments