Skip to content

Commit

Permalink
Fix manual wrapper API for getting Access Token
Browse files Browse the repository at this point in the history
  • Loading branch information
zplata committed Oct 2, 2024
1 parent 8f7f265 commit 79b8e05
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 79b8e05

Please sign in to comment.