Skip to content

Commit

Permalink
Merge pull request #170 from webflow/fix-access-token-endpoint
Browse files Browse the repository at this point in the history
Fix manual wrapper API for getting Access Token
  • Loading branch information
zplata authored Oct 2, 2024
2 parents 8f7f265 + 79b8e05 commit cb82f04
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/wrapper/WebflowClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,15 @@ export class WebflowClient extends FernClient {
method: "POST",
contentType: "application/json",
body,
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "2.4.0",
"User-Agent": "webflow-api/2.4.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
requestType: "json",
});
if (response.ok) {
return (response.body as any)["access_token"];
Expand Down

0 comments on commit cb82f04

Please sign in to comment.