Skip to content

2.1.0 - Update global endpoint #56

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [2.1.0] - 2024-06-13
- Update global endpoint
- Fix misc urls in towards the dev docs

## [2.0.0] - 2023-10-18
### Added
- Use `axios` to send HTTP requests
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cmdotcom/text-sdk",
"version": "2.0.0",
"version": "2.1.0",
"description": "Package to make it very easy to send text messages with CM.com",
"keywords": [
"cm",
Expand Down
2 changes: 1 addition & 1 deletion spec/api.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import "mocha";
const nock = require('nock');
// Mocking the gateway here.
beforeEach(() => {
nock('https://gw.cmtelecom.com')
nock('https://gw.messaging.cm.com')
.post('/v1.0/message')
.once() //Make sure we don't post twice
.reply(200, (uri, requestBody) => {
Expand Down
8 changes: 4 additions & 4 deletions typescript-node-client/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

import axios = require('axios');

let defaultBasePath = 'https://gw.cmtelecom.com';
let defaultBasePath = 'https://gw.messaging.cm.com';

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

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

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