GetTnkSettlement » 이력 » 버전 15
이름없음, 2021/06/10 05:58
1 | 6 | 이름없음 | h1. GetTnkSettlement |
---|---|---|---|
2 | 2 | 이름없음 | |
3 | 11 | 이름없음 | Tnk(광고) 시청 *건 별* 사용자에게 지급된 리워드, snplab의 수입 기록 리스트를 *지정한 기간*<notextile></notextile>에서 조회합니다. |
4 | 9 | 이름없음 | |
5 | 15 | 이름없음 | <pre><code class="java"> |
6 | 2 | 이름없음 | getTnkSettlement( |
7 | settlementRequest: SettlementRequest |
||
8 | ): SettlementResponse |
||
9 | </code></pre> |
||
10 | |||
11 | *SettlementRequest* |
||
12 | 1 | 이름없음 | |
13 | 2 | 이름없음 | | field | type | description | note | |
14 | 13 | 이름없음 | | command | String | %{color: #000000;}요청 Command 유형% | %{color: #000000;}값: tnkSettlement% | |
15 | 1 | 이름없음 | | did | String | snplab의 did | | |
16 | 9 | 이름없음 | | start | Long! | -1(전체) 또는 조회 시작 기준(초 단위) | | |
17 | | end | Long! | %{color: #000000;}조회 종료 기준(초 단위)% | %{color: #ff0000;}start 값이 -1일 경우 end 값에 상관없이 전체 조회% | |
||
18 | 2 | 이름없음 | |
19 | *SettlementResponse* |
||
20 | |||
21 | 12 | 이름없음 | | field | type | description | note | |
22 | | command | String | 요청 Command 유형 | %{color: #000000;}값: tnkSettlement% | |
||
23 | | result | [SettlementResult] | | | |
||
24 | 2 | 이름없음 | |
25 | *SettlementResult* |
||
26 | |||
27 | | field | type | description | |
||
28 | | income | Long | 수입 | |
||
29 | | reward | Long | 리워드 | |
||
30 | | seqId | String | 순서 | |
||
31 | 3 | 이름없음 | | timestamp | Long | 시간 | |
32 | 2 | 이름없음 | |
33 | 14 | 이름없음 | --- |
34 | 1 | 이름없음 | |
35 | 14 | 이름없음 | *Request Example* |
36 | |||
37 | 1 | 이름없음 | <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 | 1 | 이름없음 | </pre> |
55 | 2 | 이름없음 | |
56 | 14 | 이름없음 | *Response Example* |
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> |