Skip to content

Commit

Permalink
Merge pull request #56 from EnessenE/feature/global
Browse files Browse the repository at this point in the history
2.1.0 - Update global endpoint
  • Loading branch information
Alkiimista authored Jun 13, 2024
2 parents da9a878 + 0c144df commit 8233fff
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
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

0 comments on commit 8233fff

Please sign in to comment.