Skip to content

Commit

Permalink
fixing IButtonsItems template
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Park committed Aug 31, 2021
1 parent fb15de3 commit 2394ca5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/template-get.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
// const { Client } = require('@zenvia/sdk');
const { Client } = require('../dist');

const client = new Client(process.env.ZENVIA_API_TOKEN);
const client = new Client('GKkj0dSHDN60yLdkZzVyj4-osKlMQXQj-5d4');

client.getTemplate('template-identifier')
client.getTemplate('eb5f5a45-c4f2-4086-8f41-6cc423d4fac8')
.then(response => {
console.log('Response:', response);
})
Expand Down
2 changes: 1 addition & 1 deletion examples/template-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

const { Client } = require('../dist');

const client = new Client(process.env.ZENVIA_API_TOKEN);
const client = new Client('GKkj0dSHDN60yLdkZzVyj4-osKlMQXQj-5d4');

client.listTemplates()
.then(response => {
Expand Down
4 changes: 3 additions & 1 deletion src/types/zenvia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,9 @@ export interface IComponents {
export interface IButtonsItems {
type: string;
text: string;
url: string;
url?: string;
phoneNumber?: string;
payload?: string;
}

export interface IChannels {
Expand Down

0 comments on commit 2394ca5

Please sign in to comment.