Skip to content

Commit cb82f04

Browse files
authored
Merge pull request #170 from webflow/fix-access-token-endpoint
Fix manual wrapper API for getting Access Token
2 parents 8f7f265 + 79b8e05 commit cb82f04

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)