Skip to content

Commit

Permalink
Merge pull request #58 from HubSpot/fix/visitorIdentification
Browse files Browse the repository at this point in the history
fix visitor identification
  • Loading branch information
ksvirkou-hubspot authored Feb 17, 2021
2 parents 134fc88 + 24ed8a9 commit a1bc228
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export class GenerateApi {
* @summary Generate a token
* @param identificationTokenGenerationRequest
*/
public async postVisitorIdentificationV3TokensCreate (identificationTokenGenerationRequest: IdentificationTokenGenerationRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IdentificationTokenResponse; }> {
public async generateToken (identificationTokenGenerationRequest: IdentificationTokenGenerationRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IdentificationTokenResponse; }> {
const localVarPath = this.basePath + '/conversations/v3/visitor-identification/tokens/create';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
Expand All @@ -114,7 +114,7 @@ export class GenerateApi {

// verify required parameter 'identificationTokenGenerationRequest' is not null or undefined
if (identificationTokenGenerationRequest === null || identificationTokenGenerationRequest === undefined) {
throw new Error('Required parameter identificationTokenGenerationRequest was null or undefined when calling postVisitorIdentificationV3TokensCreate.');
throw new Error('Required parameter identificationTokenGenerationRequest was null or undefined when calling generateToken.');
}

(<any>Object).assign(localVarHeaderParams, options.headers);
Expand Down

0 comments on commit a1bc228

Please sign in to comment.