Skip to content

Commit

Permalink
Fix brand and campaign routes that need to go to /10dlc instead of /v2 (
Browse files Browse the repository at this point in the history
#170)

Also add create method for brands which was missing.

Co-authored-by: ADandyGuyInSpace <[email protected]>
  • Loading branch information
Craige and ADandyGuyInSpace authored Jun 27, 2024
1 parent 6ffc183 commit 577a66a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/resources/Brands.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ const TelnyxResource = require('../TelnyxResource');
const telnyxMethod = TelnyxResource.method;

module.exports = TelnyxResource.extend({
path: 'brands',
includeBasic: ['list','retrieve','update','delete'],
path: 'brand',
basePath: '/10dlc/',
includeBasic: ['create', 'list','retrieve','update','delete'],

ListExternalVettings: telnyxMethod({
method: 'GET',
Expand Down
1 change: 1 addition & 0 deletions lib/resources/CampaignBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ function transformResponseData(response, telnyx) {

module.exports = TelnyxResource.extend({
path: '/campaignBuilder',
basePath: '/10dlc/',
create: telnyxMethod({
method: 'POST',
transformResponseData: transformResponseData,
Expand Down

0 comments on commit 577a66a

Please sign in to comment.