Skip to content

Commit 79b8e05

Browse files
committed
Fix manual wrapper API for getting Access Token
1 parent 8f7f265 commit 79b8e05

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/wrapper/WebflowClient.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,15 @@ export class WebflowClient extends FernClient {
8181
method: "POST",
8282
contentType: "application/json",
8383
body,
84+
headers: {
85+
"X-Fern-Language": "JavaScript",
86+
"X-Fern-SDK-Name": "webflow-api",
87+
"X-Fern-SDK-Version": "2.4.0",
88+
"User-Agent": "webflow-api/2.4.0",
89+
"X-Fern-Runtime": core.RUNTIME.type,
90+
"X-Fern-Runtime-Version": core.RUNTIME.version,
91+
},
92+
requestType: "json",
8493
});
8594
if (response.ok) {
8695
return (response.body as any)["access_token"];

0 commit comments

Comments
 (0)