Skip to content

Commit 0d715fd

Browse files
authored
chore: Remove V2 migration guide
1 parent 7c7bb43 commit 0d715fd

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

README.md

-28
Original file line numberDiff line numberDiff line change
@@ -12,34 +12,6 @@ The SDK contains typings and request builders for the Webflow Data API.
1212

1313
Explore the [API reference documentation](https://developers.webflow.com/reference/rest-introduction).
1414

15-
## V2 Migration Guide
16-
17-
> The SDK was rewritten in V2 and is now programatically generated from our OpenAPI spec. As part of this release there are some breaking changes.
18-
19-
#### Client Instantiation
20-
The SDK exports `WebflowClient` instead of `Webflow`. The client now takes `accessToken` instead of `token`.
21-
22-
```ts
23-
const webflow = new WebflowClient({ accessToken: "..." });
24-
```
25-
26-
#### Oauth
27-
The `WebflowClient` exports static methods that you can use for OAuth. These were previously on `Webflow`.
28-
29-
`webflow.authorizeUrl` -> `WebflowClient.authorizeURL`
30-
31-
`webflow.accessToken` -> `WebflowClient.getAccessToken`
32-
33-
`webflow.revokeToken` -> `WebflowClient.revokeToken`
34-
35-
#### HTTP Client
36-
The SDK no longer uses Axios and defaults to fetch. The SDK supports multiple runtimes and will handle
37-
using a fetch implementation if available or will default to `node-fetch`.
38-
39-
### Resources
40-
Previously the SDK only supported the most important resources, such as site and user. Now the SDK supports
41-
methods on a variety of different endpoints such as `collections`, `assets`, `forms`, `inventory`, `orders`, etc.
42-
4315
## Installation
4416

4517
Add this dependency to your project's package.json file:

0 commit comments

Comments
 (0)