All URIs are relative to https://openapi.alipay.com
Method | HTTP request | Description |
---|---|---|
Create | POST /v3/alipay/iservice/ccm/agent/create | 新增客服接口 |
Delete | DELETE /v3/alipay/iservice/ccm/agent/delete | 删除客服接口 |
Get | GET /v3/alipay/iservice/ccm/agent/get | 查询客服详情 |
Modify | POST /v3/alipay/iservice/ccm/agent/modify | 更新客服接口 |
Query | POST /v3/alipay/iservice/ccm/agent/query | 客服查询接口 |
AlipayIserviceCcmAgentCreateResponseModel Create (AlipayIserviceCcmAgentCreateModel alipayIserviceCcmAgentCreateModel = null)
新增客服接口
新增一个CCM客服
using System.Collections.Generic;
using System.Diagnostics;
using AlipaySDKNet.OpenAPI.Api;
using AlipaySDKNet.OpenAPI.Client;
using AlipaySDKNet.OpenAPI.Model;
using AlipaySDKNet.OpenAPI.Util;
using AlipaySDKNet.OpenAPI.Util.Model;
namespace Example
{
public class CreateExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://openapi.alipay.com";
var apiInstance = new AlipayIserviceCcmAgentApi(config);
// 设置alipayConfig参数
AlipayConfig alipayConfig = new AlipayConfig();
alipayConfig.AppId = "app_id";
alipayConfig.PrivateKey = "private_key";
// 密钥模式
alipayConfig.AlipayPublicKey = "alipay_public_key";
// 证书模式
// alipayConfig.AppCertPath = "../appCertPublicKey.crt";
// alipayConfig.AlipayPublicCertPath = "../alipayCertPublicKey_RSA2.crt";
// alipayConfig.RootCertPath = "../alipayRootCert.crt";
alipayConfig.EncryptKey = "encrypt_key";
AlipayConfigUtil alipayConfigUtil = new AlipayConfigUtil(alipayConfig);
apiInstance.Client.SetAlipayConfigUtil(alipayConfigUtil);
var alipayIserviceCcmAgentCreateModel = new AlipayIserviceCcmAgentCreateModel(); // AlipayIserviceCcmAgentCreateModel | (optional)
try
{
// 新增客服接口
AlipayIserviceCcmAgentCreateResponseModel result = apiInstance.Create(alipayIserviceCcmAgentCreateModel);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AlipayIserviceCcmAgentApi.Create: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
alipayIserviceCcmAgentCreateModel | AlipayIserviceCcmAgentCreateModel | [optional] |
AlipayIserviceCcmAgentCreateResponseModel
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | common response | - |
0 | 请求失败 | - |
[Back to top] [Back to API list] [Back to README]
Object Delete (string id = null)
删除客服接口
管理员删除一个客服
using System.Collections.Generic;
using System.Diagnostics;
using AlipaySDKNet.OpenAPI.Api;
using AlipaySDKNet.OpenAPI.Client;
using AlipaySDKNet.OpenAPI.Model;
using AlipaySDKNet.OpenAPI.Util;
using AlipaySDKNet.OpenAPI.Util.Model;
namespace Example
{
public class DeleteExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://openapi.alipay.com";
var apiInstance = new AlipayIserviceCcmAgentApi(config);
// 设置alipayConfig参数
AlipayConfig alipayConfig = new AlipayConfig();
alipayConfig.AppId = "app_id";
alipayConfig.PrivateKey = "private_key";
// 密钥模式
alipayConfig.AlipayPublicKey = "alipay_public_key";
// 证书模式
// alipayConfig.AppCertPath = "../appCertPublicKey.crt";
// alipayConfig.AlipayPublicCertPath = "../alipayCertPublicKey_RSA2.crt";
// alipayConfig.RootCertPath = "../alipayRootCert.crt";
alipayConfig.EncryptKey = "encrypt_key";
AlipayConfigUtil alipayConfigUtil = new AlipayConfigUtil(alipayConfig);
apiInstance.Client.SetAlipayConfigUtil(alipayConfigUtil);
var id = 2019032101896769; // string | 客服id (optional)
try
{
// 删除客服接口
Object result = apiInstance.Delete(id);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AlipayIserviceCcmAgentApi.Delete: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | 客服id | [optional] |
Object
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | common response | - |
0 | 请求失败 | - |
[Back to top] [Back to API list] [Back to README]
AlipayIserviceCcmAgentGetResponseModel Get (string id = null, string jobNumber = null, string userChannel = null, string externalUserId = null)
查询客服详情
ISV或商户查询获取某个客服的详细信息
using System.Collections.Generic;
using System.Diagnostics;
using AlipaySDKNet.OpenAPI.Api;
using AlipaySDKNet.OpenAPI.Client;
using AlipaySDKNet.OpenAPI.Model;
using AlipaySDKNet.OpenAPI.Util;
using AlipaySDKNet.OpenAPI.Util.Model;
namespace Example
{
public class GetExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://openapi.alipay.com";
var apiInstance = new AlipayIserviceCcmAgentApi(config);
// 设置alipayConfig参数
AlipayConfig alipayConfig = new AlipayConfig();
alipayConfig.AppId = "app_id";
alipayConfig.PrivateKey = "private_key";
// 密钥模式
alipayConfig.AlipayPublicKey = "alipay_public_key";
// 证书模式
// alipayConfig.AppCertPath = "../appCertPublicKey.crt";
// alipayConfig.AlipayPublicCertPath = "../alipayCertPublicKey_RSA2.crt";
// alipayConfig.RootCertPath = "../alipayRootCert.crt";
alipayConfig.EncryptKey = "encrypt_key";
AlipayConfigUtil alipayConfigUtil = new AlipayConfigUtil(alipayConfig);
apiInstance.Client.SetAlipayConfigUtil(alipayConfigUtil);
var id = 2018101801902073; // string | 客服id (optional)
var jobNumber = 0001; // string | 客服工号 (optional)
var userChannel = ALIPAY; // string | 客服账号渠道, ALIPAY:支付宝账号 user_channel和external_user_id必须配对使用 (optional)
var externalUserId = 2088xxx; // string | 客服账号id,当user_channel=ALIPAY时,此id为支付宝2088id external_user_id和user_channel必须配对使用 (optional)
try
{
// 查询客服详情
AlipayIserviceCcmAgentGetResponseModel result = apiInstance.Get(id, jobNumber, userChannel, externalUserId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AlipayIserviceCcmAgentApi.Get: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | 客服id | [optional] |
jobNumber | string | 客服工号 | [optional] |
userChannel | string | 客服账号渠道, ALIPAY:支付宝账号 user_channel和external_user_id必须配对使用 | [optional] |
externalUserId | string | 客服账号id,当user_channel=ALIPAY时,此id为支付宝2088id external_user_id和user_channel必须配对使用 | [optional] |
AlipayIserviceCcmAgentGetResponseModel
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | common response | - |
0 | 请求失败 | - |
[Back to top] [Back to API list] [Back to README]
Object Modify (AlipayIserviceCcmAgentModifyModel alipayIserviceCcmAgentModifyModel = null)
更新客服接口
管理员修改客服信息
using System.Collections.Generic;
using System.Diagnostics;
using AlipaySDKNet.OpenAPI.Api;
using AlipaySDKNet.OpenAPI.Client;
using AlipaySDKNet.OpenAPI.Model;
using AlipaySDKNet.OpenAPI.Util;
using AlipaySDKNet.OpenAPI.Util.Model;
namespace Example
{
public class ModifyExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://openapi.alipay.com";
var apiInstance = new AlipayIserviceCcmAgentApi(config);
// 设置alipayConfig参数
AlipayConfig alipayConfig = new AlipayConfig();
alipayConfig.AppId = "app_id";
alipayConfig.PrivateKey = "private_key";
// 密钥模式
alipayConfig.AlipayPublicKey = "alipay_public_key";
// 证书模式
// alipayConfig.AppCertPath = "../appCertPublicKey.crt";
// alipayConfig.AlipayPublicCertPath = "../alipayCertPublicKey_RSA2.crt";
// alipayConfig.RootCertPath = "../alipayRootCert.crt";
alipayConfig.EncryptKey = "encrypt_key";
AlipayConfigUtil alipayConfigUtil = new AlipayConfigUtil(alipayConfig);
apiInstance.Client.SetAlipayConfigUtil(alipayConfigUtil);
var alipayIserviceCcmAgentModifyModel = new AlipayIserviceCcmAgentModifyModel(); // AlipayIserviceCcmAgentModifyModel | (optional)
try
{
// 更新客服接口
Object result = apiInstance.Modify(alipayIserviceCcmAgentModifyModel);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AlipayIserviceCcmAgentApi.Modify: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
alipayIserviceCcmAgentModifyModel | AlipayIserviceCcmAgentModifyModel | [optional] |
Object
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | common response | - |
0 | 请求失败 | - |
[Back to top] [Back to API list] [Back to README]
AlipayIserviceCcmAgentQueryResponseModel Query (AlipayIserviceCcmAgentQueryModel alipayIserviceCcmAgentQueryModel = null)
客服查询接口
根据指定的查询条件查询客服列表
using System.Collections.Generic;
using System.Diagnostics;
using AlipaySDKNet.OpenAPI.Api;
using AlipaySDKNet.OpenAPI.Client;
using AlipaySDKNet.OpenAPI.Model;
using AlipaySDKNet.OpenAPI.Util;
using AlipaySDKNet.OpenAPI.Util.Model;
namespace Example
{
public class QueryExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://openapi.alipay.com";
var apiInstance = new AlipayIserviceCcmAgentApi(config);
// 设置alipayConfig参数
AlipayConfig alipayConfig = new AlipayConfig();
alipayConfig.AppId = "app_id";
alipayConfig.PrivateKey = "private_key";
// 密钥模式
alipayConfig.AlipayPublicKey = "alipay_public_key";
// 证书模式
// alipayConfig.AppCertPath = "../appCertPublicKey.crt";
// alipayConfig.AlipayPublicCertPath = "../alipayCertPublicKey_RSA2.crt";
// alipayConfig.RootCertPath = "../alipayRootCert.crt";
alipayConfig.EncryptKey = "encrypt_key";
AlipayConfigUtil alipayConfigUtil = new AlipayConfigUtil(alipayConfig);
apiInstance.Client.SetAlipayConfigUtil(alipayConfigUtil);
var alipayIserviceCcmAgentQueryModel = new AlipayIserviceCcmAgentQueryModel(); // AlipayIserviceCcmAgentQueryModel | (optional)
try
{
// 客服查询接口
AlipayIserviceCcmAgentQueryResponseModel result = apiInstance.Query(alipayIserviceCcmAgentQueryModel);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AlipayIserviceCcmAgentApi.Query: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
alipayIserviceCcmAgentQueryModel | AlipayIserviceCcmAgentQueryModel | [optional] |
AlipayIserviceCcmAgentQueryResponseModel
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | common response | - |
0 | 请求失败 | - |