Skip to content
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

New global messaging endpoint #70

Merged
merged 5 commits into from
Jun 20, 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
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
Loading