mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-12-29 01:44:42 +08:00
feat(wxapi): 新增微信小店联盟带货机构解绑推客接口
This commit is contained in:
@@ -6913,6 +6913,29 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECPromoterGetBindShopPromoterListResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /channels/ec/promoter/headsupplier_unbind_promoter 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/leagueheadsupplier/api/sharer/account/api_mmecpromoter_headsupplier_unbind_promoter.html ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ChannelsECPromoterHeadSupplierUnbindPromoterResponse> ExecuteChannelsECPromoterHeadSupplierUnbindPromoterAsync(this WechatApiClient client, Models.ChannelsECPromoterHeadSupplierUnbindPromoterRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "headsupplier_unbind_promoter")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECPromoterHeadSupplierUnbindPromoterResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/headsupplier_unbind_promoter 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterHeadSupplierUnbindPromoterRequest : WechatApiRequest, IInferable<ChannelsECPromoterHeadSupplierUnbindPromoterRequest, ChannelsECPromoterHeadSupplierUnbindPromoterResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置推客的微信电商平台注册的身份标识。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sharer_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sharer_appid")]
|
||||
public string SharerAppId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/headsupplier_unbind_promoter 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterHeadSupplierUnbindPromoterResponse : WechatApiResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"sharer_appid": "wx123123123123"
|
||||
}
|
||||
Reference in New Issue
Block a user