프로젝트

일반

사용자정보

GetTnkSettlement » 이력 » 버전 16

이름없음, 2021/06/10 06:31

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 16 이름없음
---
12
13 2 이름없음
*SettlementRequest*
14 1 이름없음
15 2 이름없음
| field | type | description | note |
16 13 이름없음
| command | String | %{color: #000000;}요청 Command 유형% | %{color: #000000;}값: tnkSettlement% |
17 1 이름없음
| 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 12 이름없음
| field | type | description | note |
24
| command | String | 요청 Command 유형 | %{color: #000000;}값: tnkSettlement% |
25
| result | [SettlementResult] |   |   |
26 2 이름없음
27
*SettlementResult*
28
29
| field | type | description |
30
| income | Long | 수입 |
31
| reward | Long | 리워드 |
32
| seqId | String | 순서 |
33 3 이름없음
| timestamp | Long | 시간 |
34 2 이름없음
35 14 이름없음
---
36 1 이름없음
37 14 이름없음
*Request Example*
38
39 1 이름없음
<pre>
40 2 이름없음
query{
41
getTnkSettlement(settlementRequest:{
42 9 이름없음
  did:"NfoPEFaG1adkCpijR85L66" 
43
  command: "tnkSettlement" 
44
  start:-1
45
  end: -1
46
  }){
47
    command
48
    result{
49
      reward
50
      income
51
      seqId
52
      timestamp
53
    }
54
  }
55 2 이름없음
}
56 1 이름없음
</pre>
57 2 이름없음
58 14 이름없음
*Response Example*
59 1 이름없음
60
<pre>
61
{
62 3 이름없음
    "data": {
63
        "getTnkSettlement": {
64
            "command": "tnkSettlement",
65
            "result": [
66
                {
67
                    "reward": 1000,
68
                    "income": 500,
69
                    "seqId": "abcde",
70
                    "timestamp": 12345
71
                },
72
                {
73
                    "reward": 1000,
74
                    "income": 1000,
75
                    "seqId": "A2CPI2SYK2SEFS",
76
                    "timestamp": 1612536898501
77
                },
78
                {
79
                    "reward": 99,
80
                    "income": 498,
81
                    "seqId": "456024733",
82
                    "timestamp": 1616655942901
83
                },
84
                {
85
                    "reward": 99,
86
                    "income": 498,
87
                    "seqId": "833980294",
88
                    "timestamp": 1616723555879
89
                },
90
                {
91
                    "reward": 55,
92
                    "income": 112,
93
                    "seqId": "54335360300",
94
                    "timestamp": 1616738812323
95
                },
96
                {
97
                    "reward": 56,
98
                    "income": 114,
99
                    "seqId": "54335501700",
100
                    "timestamp": 1616739598350
101
                },
102
                {
103
                    "reward": 55,
104
                    "income": 112,
105
                    "seqId": "54335533700",
106
                    "timestamp": 1616739781805
107
                },
108
                {
109
                    "reward": 61,
110
                    "income": 123,
111
                    "seqId": "54335540400",
112
                    "timestamp": 1616739840867
113
                },
114
                {
115
                    "reward": 51,
116
                    "income": 104,
117
                    "seqId": "54335504600",
118
                    "timestamp": 1616740716371
119
                },
120
                {
121
                    "reward": 50,
122
                    "income": 101,
123
                    "seqId": "54335537800",
124
                    "timestamp": 1616740818279
125
                },
126
                {
127
                    "reward": 54,
128
                    "income": 110,
129
                    "seqId": "54386912900",
130
                    "timestamp": 1617004694897
131
                },
132
                {
133
                    "reward": 50,
134
                    "income": 101,
135
                    "seqId": "54386992000",
136
                    "timestamp": 1617004925268
137
                }
138
            ]
139
        }
140 2 이름없음
    }
141
}</pre>
클립보드 이미지 추가 (최대 크기: 97.7 MB)