Skip to content

Commit dd1cd89

Browse files
author
John Agan
authored
V1.0.2 (#67)
* renamed installer to authenticatedUser * renamed installer to authenticatedUser
1 parent 42852eb commit dd1cd89

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ const auth = await webflow.accessToken({
131131
// you now have the user's access token to make API requests with
132132
const userWF = new Webflow({ token: auth.access_token });
133133

134-
// pull information for the installer
135-
const installer = await userWF.installer();
134+
// pull information for the user
135+
const authenticatedUser = await userWF.authenticatedUser();
136136
```
137137

138138
### Revoke Token
@@ -233,10 +233,10 @@ const webhook = await site.createWebhook({
233233

234234
```
235235

236-
### Installer
236+
### Authenticated User
237237
```javascript
238-
// pull information for the installer
239-
const installer = await webflow.installer();
238+
// pull information for the authenticated user
239+
const authenticatedUser = await webflow.authenticatedUser();
240240
```
241241

242242

index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ declare class Webflow {
2828

2929
// meta
3030
info(): Promise<Webflow.ApiModel.Info>;
31-
installer(): Promise<Webflow.ApiModel.Installer>;
31+
authenticatedUser(): Promise<Webflow.ApiModel.AuthenticatedUser>;
3232

3333
// oauth
3434
authorizeUrl(params: {
@@ -209,7 +209,7 @@ declare namespace Webflow {
209209
}
210210

211211
namespace ApiModel {
212-
interface Installer {
212+
interface AuthenticatedUser {
213213
user: {
214214
_id: string;
215215
email: string;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "webflow-api",
33
"description": "Webflow's official Node.js SDK for Data APIs",
4-
"version": "1.0.1",
4+
"version": "1.0.2",
55
"types": "index.d.ts",
66
"main": "dist/index.js",
77
"contributors": [

src/Webflow.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export class Webflow {
4545
return this.get("/info");
4646
}
4747

48-
installer() {
48+
authenticatedUser() {
4949
return this.get("/user");
5050
}
5151

test/Meta.tests.js renamed to test/Meta.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ describe("Meta", () => {
3030
const { response } = MetaFixture.installer;
3131
const scope = api.get("/user").reply(200, response);
3232

33-
const result = await webflow.installer();
33+
const result = await webflow.authenticatedUser();
3434
scope.done();
3535

3636
expect(result).toBeDefined();

0 commit comments

Comments
 (0)