KX.SMSAPI 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package KX.SMSAPI --version 1.0.0
                    
NuGet\Install-Package KX.SMSAPI -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="KX.SMSAPI" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="KX.SMSAPI" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="KX.SMSAPI" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add KX.SMSAPI --version 1.0.0
                    
#r "nuget: KX.SMSAPI, 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.
#:package KX.SMSAPI@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=KX.SMSAPI&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=KX.SMSAPI&version=1.0.0
                    
Install as a Cake Tool

本SDK由http://www.shlianlu.com/提供

  1. .net framework 4.5可以使用本SDK
  2. 网关登录平台地址 http://112.124.203.60:8080/admin/login
  3. API接口文档地址 http://120.55.82.118/platform/kx_httpapi.pdf
using KX.SMSAPI;
using KX.SMSAPI.Output;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SmsDemo.Net
{
    internal class Program
    {
        private static void Main(string[] args)
        {
            //接口地址端口:
            string url = "http://47.110.199.86:8081";
            string userid = "您的用户id";
            string apikey = "客服提供的appkey";

            ISmsAPIService smsAPIService = new SmsAPIService(url, apikey, userid);

            //发送单条短信
            //MTOutput mTOutput = smsAPIService.MT("13888888888", "【签名】这里是短信内容");

            ////发送多条短信,以英文逗号隔开
            //MTOutput mTOutput1 = smsAPIService.MT("13888888888,13999999999", "【签名】这里是短信内容");

            ////发送多条短信,以字符串数组
            //MTOutput mTOutput2 = smsAPIService.MT(new string[] { "13888888888","13999999999"}, "【签名】这里是短信内容");

            //查询短信余额
            Console.WriteLine("查询短信余额");
            BalanceOutput balanceOutput = smsAPIService.Balance();
            Console.WriteLine(balanceOutput.ToString());

            //查询发送后的状态报告,查询后会清空记录。
            Console.WriteLine("查询发送后的状态报告,查询后会清空记录");
            MTQueryOutput mTQueryOutput = smsAPIService.MTQuery();
            Console.WriteLine(mTQueryOutput);

            //查询短信回复,查询后会清空记录。
            Console.WriteLine("查询短信回复,查询后会清空记录");
            MOQueryOutput mOQueryOutput = smsAPIService.MOQuery();
            Console.WriteLine(mOQueryOutput);

            Console.ReadKey();
        }
    }
}

Product Compatible and additional computed target framework versions.
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.1 718 5/17/2019
1.0.0 604 5/17/2019

Summary of changes made in this release of the package.