You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"The INTERCOM_API_KEY environment variable is missing or empty; either provide it, or instantiate the Intercom client with an apiKey option, like new Intercom({ apiKey: 'My API Key' }).",
116
+
"The INTERCOM_ACCESS_TOKEN environment variable is missing or empty; either provide it, or instantiate the Intercom client with an accessToken option, like new Intercom({ accessToken: 'My Access Token' }).",
117
117
);
118
118
}
119
119
120
120
constoptions: ClientOptions={
121
-
apiKey,
121
+
accessToken,
122
122
...opts,
123
123
baseURL,
124
124
environment: opts.environment??'production',
@@ -139,7 +139,7 @@ export class Intercom extends Core.APIClient {
139
139
});
140
140
this._options=options;
141
141
142
-
this.apiKey=apiKey;
142
+
this.accessToken=accessToken;
143
143
}
144
144
145
145
me: API.Me=newAPI.Me(this);
@@ -178,7 +178,7 @@ export class Intercom extends Core.APIClient {
0 commit comments