Target365.Sdk
1.8.9
dotnet add package Target365.Sdk --version 1.8.9
NuGet\Install-Package Target365.Sdk -Version 1.8.9
<PackageReference Include="Target365.Sdk" Version="1.8.9" />
paket add Target365.Sdk --version 1.8.9
#r "nuget: Target365.Sdk, 1.8.9"
// Install Target365.Sdk as a Cake Addin
#addin nuget:?package=Target365.Sdk&version=1.8.9
// Install Target365.Sdk as a Cake Tool
#tool nuget:?package=Target365.Sdk&version=1.8.9
Strex AS is a Norwegian payment and SMS gateway (Strex Connect) provider. Strex withholds an e-money license and processes more than 70 million transactions every year. Strex has more than 4.2 mill customers in Norway and are owned by the Norwegian mobile network operators (Telenor, Telia and Ice). Strex Connect is based on the Target365 marketing and communication platform.
Target365 SDK for .NET
Getting started
To get started, please click here: https://strex.no/strex-connect#Prispakker and register your organisation. After registration you can activate the SDK by sending us an email at sdk@strex.no containing your EC public key in PEM-format. You can generate your EC public/private key-pair using openssl like this:
openssl ecparam -name prime256v1 -genkey -noout -out private.pem
Use openssl to convert it to pk8 format which the .NET SDK uses.
openssl pkcs8 -topk8 -inform pem -in private.pem -outform pem -nocrypt -out private.key
The file private.key
should look something like this:
-----BEGIN PRIVATE KEY-----
MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgzNTTnuXqcrI5uSEa
V6REzZG7hU+TzRl0Phe56k9/gPWhRANCAAQwB42Sozmtci4mDjnegx003FBV+9PQ
eYBRvK7GScuDQo2+DjEn4hUsnKDZw9o4y+xRat+ItUGKcvVCMW8Swod5
-----END PRIVATE KEY-----
Here's how the private key should be constructed in C#:
var privateKey = "MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgzNTTnuXqcrI5uSEa"
+ "V6REzZG7hU+TzRl0Phe56k9/gPWhRANCAAQwB42Sozmtci4mDjnegx003FBV+9PQ"
+ "eYBRvK7GScuDQo2+DjEn4hUsnKDZw9o4y+xRat+ItUGKcvVCMW8Swod5";
Use this openssl command to extract the public key:
openssl ec -in private.key -pubout -out public.key
You can then send us the public.key
file. The file should look something like this:
-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEuVHnFqJxiBC9I5+8a8Sx66brBCz3
Flt70WN9l7WZ8VQVN9DZt0kW5xpiO5aG7qd5K8OcHZeoJRprFJOkBwW4Fg==
-----END PUBLIC KEY-----
For more details on using the SDK we strongly suggest you check out our .NET User Guide.
NuGet
PM> Install-Package Target365.Sdk
.NET CLI
> dotnet add package Target365.Sdk
Test Environment
Our test-environment acts as a sandbox that simulates the real API as closely as possible. This can be used to get familiar with the service before going to production. Please be ware that the simulation isn't perfect and must not be taken to have 100% fidelity.
Url: https://test.target365.io/
Production Environment
Our production environment is a mix of per-tenant isolated environments and a shared common environment. Contact sdk@strex.no if you're interested in an isolated per-tenant environment.
Url: https://shared.target365.io/
Authors and maintainers
Target365 (sdk@strex.no)
Issues / Bugs / Questions
Please feel free to raise an issue against this repository if you have any questions or problems.
Contributing
New contributors to this project are welcome. If you are interested in contributing please send an email to sdk@strex.no.
License
This library is released under the MIT license.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
.NET Framework | net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.6.1
- System.Runtime.InteropServices.RuntimeInformation (>= 4.3.0)
- System.Security.Cryptography.Cng (>= 4.7.0)
- System.Text.Json (>= 5.0.0)
-
.NETStandard 2.1
- System.Runtime.InteropServices.RuntimeInformation (>= 4.3.0)
- System.Security.Cryptography.Cng (>= 4.7.0)
- System.Text.Json (>= 5.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Added client-side sms parts counting via new SmsCounter class.