프로젝트

일반

사용자정보

GetTnkSettlement » 이력 » 버전 9

이름없음, 2021/06/10 01:38

1 6 이름없음
h1. GetTnkSettlement
2 2 이름없음
3 9 이름없음
Tnk(광고) 시청 건 별 사용자에게 지급된 리워드, snplab의 수입 기록 리스트를 지정한 기간에서 조회합니다.
4
5 2 이름없음
h2. *요청 필드*
6
7
<pre><code class="c">
8
getTnkSettlement(
9
settlementRequest: SettlementRequest
10
): SettlementResponse
11
</code></pre>
12
13
*SettlementRequest*
14
15 5 이름없음
| field | type | description | note |
16 1 이름없음
| command | String | %{color: #000000;}요청 Command 유형 (값: "tnkSettlement")% | %{color: #000000;} % |
17
| did | String | snplab의 did |   |
18 9 이름없음
| start | Long! | -1(전체) 또는 조회 시작 기준(초 단위) |   |
19
| end | Long! | %{color: #000000;}조회 종료 기준(초 단위)% | %{color: #ff0000;}start 값이 -1일 경우 end 값에 상관없이 전체 조회% |
20 2 이름없음
21
*SettlementResponse*
22
23
| field | type | description |
24 8 이름없음
| command | String | 요청 Command 유형 |
25 2 이름없음
| result | [SettlementResult] |   |
26
27
*SettlementResult*
28
29
| field | type | description |
30
| income | Long | 수입 |
31
| reward | Long | 리워드 |
32
| seqId | String | 순서 |
33 3 이름없음
| timestamp | Long | 시간 |
34 2 이름없음
35
*요청 예시*
36 1 이름없음
37
<pre>
38 2 이름없음
query{
39
getTnkSettlement(settlementRequest:{
40 9 이름없음
  did:"NfoPEFaG1adkCpijR85L66" 
41
  command: "tnkSettlement" 
42
  start:-1
43
  end: -1
44
  }){
45
    command
46
    result{
47
      reward
48
      income
49
      seqId
50
      timestamp
51
    }
52
  }
53 2 이름없음
}
54
</pre>
55
56
*응답 예시*
57 1 이름없음
58
<pre>
59
{
60 3 이름없음
    "data": {
61
        "getTnkSettlement": {
62
            "command": "tnkSettlement",
63
            "result": [
64
                {
65
                    "reward": 1000,
66
                    "income": 500,
67
                    "seqId": "abcde",
68
                    "timestamp": 12345
69
                },
70
                {
71
                    "reward": 1000,
72
                    "income": 1000,
73
                    "seqId": "A2CPI2SYK2SEFS",
74
                    "timestamp": 1612536898501
75
                },
76
                {
77
                    "reward": 99,
78
                    "income": 498,
79
                    "seqId": "456024733",
80
                    "timestamp": 1616655942901
81
                },
82
                {
83
                    "reward": 99,
84
                    "income": 498,
85
                    "seqId": "833980294",
86
                    "timestamp": 1616723555879
87
                },
88
                {
89
                    "reward": 55,
90
                    "income": 112,
91
                    "seqId": "54335360300",
92
                    "timestamp": 1616738812323
93
                },
94
                {
95
                    "reward": 56,
96
                    "income": 114,
97
                    "seqId": "54335501700",
98
                    "timestamp": 1616739598350
99
                },
100
                {
101
                    "reward": 55,
102
                    "income": 112,
103
                    "seqId": "54335533700",
104
                    "timestamp": 1616739781805
105
                },
106
                {
107
                    "reward": 61,
108
                    "income": 123,
109
                    "seqId": "54335540400",
110
                    "timestamp": 1616739840867
111
                },
112
                {
113
                    "reward": 51,
114
                    "income": 104,
115
                    "seqId": "54335504600",
116
                    "timestamp": 1616740716371
117
                },
118
                {
119
                    "reward": 50,
120
                    "income": 101,
121
                    "seqId": "54335537800",
122
                    "timestamp": 1616740818279
123
                },
124
                {
125
                    "reward": 54,
126
                    "income": 110,
127
                    "seqId": "54386912900",
128
                    "timestamp": 1617004694897
129
                },
130
                {
131
                    "reward": 50,
132
                    "income": 101,
133
                    "seqId": "54386992000",
134
                    "timestamp": 1617004925268
135
                }
136
            ]
137
        }
138 2 이름없음
    }
139
}</pre>
클립보드 이미지 추가 (최대 크기: 97.7 MB)