Skip to content

Commit 8233fff

Browse files
authored
Merge pull request #56 from EnessenE/feature/global
2.1.0 - Update global endpoint
2 parents da9a878 + 0c144df commit 8233fff

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [2.1.0] - 2024-06-13
2+
- Update global endpoint
3+
- Fix misc urls in towards the dev docs
4+
15
## [2.0.0] - 2023-10-18
26
### Added
37
- Use `axios` to send HTTP requests

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cmdotcom/text-sdk",
3-
"version": "2.0.0",
3+
"version": "2.1.0",
44
"description": "Package to make it very easy to send text messages with CM.com",
55
"keywords": [
66
"cm",

spec/api.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import "mocha";
1010
const nock = require('nock');
1111
// Mocking the gateway here.
1212
beforeEach(() => {
13-
nock('https://gw.cmtelecom.com')
13+
nock('https://gw.messaging.cm.com')
1414
.post('/v1.0/message')
1515
.once() //Make sure we don't post twice
1616
.reply(200, (uri, requestBody) => {

typescript-node-client/api.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
import axios = require('axios');
1414

15-
let defaultBasePath = 'https://gw.cmtelecom.com';
15+
let defaultBasePath = 'https://gw.messaging.cm.com';
1616

1717
// ===============================================
1818
// This file is autogenerated - Please do not edit
@@ -1871,7 +1871,7 @@ export class WhatsappTemplate {
18711871
*/
18721872
export class Authentication {
18731873
/**
1874-
* Required: This is the product token for authentication. Visit https://gateway.cmtelecom.com to retrieve your product token. Example: 00000000-0000-0000-0000-000000000000'
1874+
* Required: This is the product token for authentication. Visit https://gateway.cm.com to retrieve your product token. Example: 00000000-0000-0000-0000-000000000000'
18751875
*/
18761876
'productToken'?: string;
18771877

@@ -2061,7 +2061,7 @@ export class MessageResponse {
20612061
*/
20622062
'messageDetails'?: string;
20632063
/**
2064-
* The error code, see https://docs.cmtelecom.com/all-messaging-api/v1.0#send_a_message|responses_&_errors for more details.
2064+
* The error code, see https://developers.cm.com/messaging/docs/responses-errors-json for more details.
20652065
*/
20662066
'messageErrorCode'?: number;
20672067

@@ -2145,7 +2145,7 @@ export class MessagesResponse {
21452145
*/
21462146
'details'?: string;
21472147
/**
2148-
* The error code, see https://docs.cmtelecom.com/all-messaging-api/v1.0#send_a_message|responses_&_errors for more details.
2148+
* The error code, see https://developers.cm.com/messaging/docs/responses-errors-json for more details.
21492149
*/
21502150
'errorCode'?: number;
21512151
/**

0 commit comments

Comments
 (0)