Skip to content

Commit

Permalink
Merge pull request #70 from defcon84/master
Browse files Browse the repository at this point in the history
New global messaging endpoint
  • Loading branch information
Alkiimista authored Jun 20, 2024
2 parents 0a2dc07 + 7ddae75 commit afe22f1
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.9.0] - 2024-06-20
### Changed
- New global messaging endpoint

## [2.8.0] - 2024-01-08
### Added
- Implementing OTP Request and verify
Expand Down
6 changes: 3 additions & 3 deletions CM.Text/CM.Text.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageIcon>icon.png</PackageIcon>
<PackageReleaseNotes>$([System.IO.File]::ReadAllText("$(MSBuildProjectDirectory)/../CHANGELOG.md"))</PackageReleaseNotes>
<Version>2.8.0</Version>
<Version>2.9.0</Version>
<PackageProjectUrl>https://github.com/cmdotcom/text-sdk-dotnet</PackageProjectUrl>
<NeutralLanguage>en</NeutralLanguage>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AssemblyVersion>2.8.0</AssemblyVersion>
<FileVersion>2.8.0</FileVersion>
<AssemblyVersion>2.9.0</AssemblyVersion>
<FileVersion>2.9.0</FileVersion>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion CM.Text/Common/Constant.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ internal static class Constant
{
internal static readonly string TextSdkReference = $"text-sdk-dotnet-{typeof(TextClient).Assembly.GetName().Version}";

internal const string BusinessMessagingGatewayJsonEndpoint = "https://gw.cmtelecom.com/v1.0/message";
internal const string BusinessMessagingGatewayJsonEndpoint = "https://gw.messaging.cm.com/v1.0/message";

internal const string OtpRequestEndpoint = "https://api.cm.com/otp/v2/otp";
internal const string OtpVerifyEndpointFormatter = "https://api.cm.com/otp/v2/otp/{0}/verify";
Expand Down
2 changes: 1 addition & 1 deletion CM.Text/TextClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public TextClient(Guid apiKey, [CanBeNull] HttpClient httpClient): this(apiKey,
/// </summary>
/// <param name="apiKey">The API key.</param>
/// <param name="httpClient">An optional HTTP client.</param>
/// <param name="endPointOverride">(Optional) The end point to use, instead of the default "https://gw.cmtelecom.com/v1.0/message".</param>
/// <param name="endPointOverride">(Optional) The end point to use, instead of the default "https://gw.messaging.cm.com/v1.0/message".</param>
[PublicAPI]
public TextClient(Guid apiKey, [CanBeNull] HttpClient httpClient, [CanBeNull] Uri endPointOverride)
{
Expand Down
2 changes: 1 addition & 1 deletion CM.Text/TextClientFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class TextClientFactory : ITextClientFactory
/// Initializes a new instance of the <see cref="TextClientFactory"/> class.
/// </summary>
/// <param name="httpClient">The HTTP client.</param>
/// <param name="endPointOverride">(Optional) The end point to use, instead of the default "https://gw.cmtelecom.com/v1.0/message".</param>
/// <param name="endPointOverride">(Optional) The end point to use, instead of the default "https://gw.messaging.cm.com/v1.0/message".</param>
public TextClientFactory(HttpClient httpClient, Uri endPointOverride = null)
{
_httpClient = httpClient;
Expand Down

0 comments on commit afe22f1

Please sign in to comment.