iletimerkezi 1.0.0
dotnet add package iletimerkezi --version 1.0.0
NuGet\Install-Package iletimerkezi -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="iletimerkezi" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add iletimerkezi --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: iletimerkezi, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install iletimerkezi as a Cake Addin #addin nuget:?package=iletimerkezi&version=1.0.0 // Install iletimerkezi as a Cake Tool #tool nuget:?package=iletimerkezi&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
İletiMerkezi C# Kütüphanesi
İletiMerkezi SMS API'sini kullanarak SMS gönderimi yapmanızı sağlayan resmi C# kütüphanesidir.
Desteklenen Platformlar
- .NET Standard 2.0+
- .NET Core 2.0+
- .NET Framework 4.6.1+
- .NET 5.0+
- .NET 6.0+
Kurulum
NuGet Paketi ile Kurulum
dotnet add package IletiMerkezi
veya Package Manager Console kullanarak:
Install-Package IletiMerkezi
Kullanım
Client Oluşturma
var client = new IletiMerkeziClient(
"API_KEY",
"API_HASH",
"ONAYLI BASLIK" // İsteğe bağlı
);
SMS Gönderimi
// Tek alıcıya SMS gönderimi
var smsService = client.Sms();
var response = await smsService.SendAsync(
"50570xxxxx",
"Merhaba, bu bir test mesajıdır."
);
if (response.Ok)
{
Console.WriteLine($"SMS gönderildi. {response.OrderId}");
}
else
{
Console.WriteLine($"Hata: {response.Message}");
}
// Çoklu alıcıya SMS gönderimi
var recipients = new List<string> {
"50570xxxxx",
"50570xxxx1"
};
var response = await smsService.SendAsync(
recipients,
"Merhaba, bu bir toplu test mesajıdır."
);
// Çoklu alıcıya, farklı mesajlar gönderimi
var response = await smsService.SendBulkAsync(
recipients,
new Dictionary<string, string> {
{ "50570xxxx1", "Test mesajı 1" },
{ "50570xxxx2", "Test mesajı 2" }
}
);
İleri Tarihli SMS Gönderimi
var response = await client.Sms()
.Schedule("2024-03-28 15:00:00")
.SendAsync("50570xxxx1", "İleri tarihli test mesajı");
IYS Onaylı SMS Gönderimi
var response = await client.Sms()
.SetIysList("TACIR") // veya "BIREYSEL"
.SendAsync("50570xxxx1", "IYS onaylı test mesajı");
IYS Üzerinden SMS Onayı aramadan gönderim
var response = await client.Sms()
.DisableIysConsent()
.SetIysList("TACIR") // veya "BIREYSEL"
.SendAsync("50570xxxx1", "IYS onaylı test mesajı");
Bakiye Sorgulama
var accountService = client.Account();
var balance = await accountService.GetBalanceAsync();
if (balance.Ok)
{
Console.WriteLine($"Bakiye: {balance.Amount} TL");
Console.WriteLine($"Kalan Kredi: {balance.Credits}");
}
Gönderici Adları Listesi
var senderService = client.Senders();
var senders = await senderService.ListAsync();
if (senders.Ok)
{
foreach (var sender in senders.Senders)
{
Console.WriteLine($"Gönderici Adı: {sender}");
}
}
Rapor Alma
var reportService = client.Reports();
var report = await reportService.GetAsync(orderId);
if (report.Ok)
{
Console.WriteLine($"Durum: {report.Status}");
Console.WriteLine($"Gönderim Zamanı: {report.SendDate}");
Console.WriteLine($"İletilen: {report.Delivered}");
Console.WriteLine($"İletilemeyen: {report.Undelivered}");
}
Webhook İşleme
var webhookService = new WebhookService();
var webhook = webhookService.HandleJson(webhookData);
Console.WriteLine($"Rapor ID: {webhook.Report.Id}");
Console.WriteLine($"Durum: {webhook.Report.Status}");
Console.WriteLine($"Alıcı: {webhook.Report.To}");
Geliştirme
Projeyi Build Etme
dotnet build
Testleri Çalıştırma
dotnet test
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 | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. 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 | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Microsoft.AspNetCore.Http.Abstractions (>= 2.2.0)
- System.Text.Json (>= 6.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.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 87 | 11/29/2024 |