File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff 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
132132const 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
Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff line change 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" : [
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ( ) ;
You can’t perform that action at this time.
0 commit comments