heyuntao
2023-05-04 fbd6a11a99051f425640bf352842f4a0ecaa7a4d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
using DkSdkCore.Response;
using System;
using System.Collections.Generic;
using System.Text;
 
namespace DkSdkCore.Request
{
  public  class TkGetTiktokGoodListRequest:BaseDkRequest<TkGetTiktokGoodListResponse>
    {
        /// <summary>
        /// 结果排序条件,0默认排序1历史销量排序2价格排序3佣金金额排序4佣金比例排序;
        /// </summary>
        public string searchType { get; set; }
 
        /// <summary>
        /// 排序顺序(0升序1降序)
        /// </summary>
        public string sortType { get; set; }
 
        public string page { get; set; }
 
        public string pageSize { get; set; }
 
        /// <summary>
        /// 关键词
        /// </summary>
        public string title { get; set; }
 
 
        public override string GetUrl()
        {
            return "https://openapiv2.dataoke.com/tiktok/tiktok-materials-products-search";
        }
 
        public override ApiParameters GetParameters()
        {
            ApiParameters apiParameters = new ApiParameters();
            apiParameters.Add("searchType", this.searchType);
            apiParameters.Add("sortType", this.sortType);
            apiParameters.Add("page", this.page);
            apiParameters.Add("pageSize", this.pageSize);
            if(!string.IsNullOrEmpty(this.title))
            apiParameters.Add("title", this.title);
            return apiParameters;
        }
    }
}