JAVA-SDK 查看下载
PHP-DEMO下载 点击下载
.NET-SDK下载 点击下载
.NET调用示例:
using ECloudSDK.Api;
using ECloudSDK.Bean;
using ECloudSDK.Util;
using System;
using System.IO;
namespace ECloud
{
class Program
{
static readonly string appKey = "xxxxxxxxxxxxxx";
static readonly string appSecret = "xxxxxxxxxxxxxxxxxxxxxxxxx";
static readonly string version = "1.0";
static readonly string baseUrl = "https://testapi.ecloudsign.cn";
static void Main(string[] args)
{
EcloudClient.Init(appKey, appSecret, version, baseUrl);
ECloudDomain doman = EcloudClient.ApplyCertString("1", "0", "xxxxxxxxxxxxx", "xxx", "xxxxxxxxx");
FileStream fsRead = new FileStream("D:\\ecloud.pdf", FileMode.Open, FileAccess.Read);
ECloudDomain doman1 = EcloudClient.CreateContract("xxxxxxxxxxx", "xxxxxx", fsRead);
Console.Out.WriteLine(JSONObject.toJSONString(doman));
EcloudClient.DownloadCont("xxxxxxxxxxxxxx", "xxxxxx", @"D:\ecloud1.pdf");
Console.In.ReadLine();
}
}
}