프로젝트

일반

사용자정보

GetTnkSettlement » 이력 » 개정판 10

개정판 9 (이름없음, 2021/06/10 01:38) → 개정판 10/17 (이름없음, 2021/06/10 02:12)

h1. GetTnkSettlement 

 Tnk(광고) 시청 건 별 사용자에게 지급된 리워드, snplab의 수입 기록 리스트를 *지정한 기간*<notextile></notextile>에서 지정한 기간에서 조회합니다. 

 h2. *요청 필드* 

 <pre><code class="c"> 
 getTnkSettlement( 
 settlementRequest: SettlementRequest 
 ): SettlementResponse 
 </code></pre> 

 *SettlementRequest* 

 | field | type | description | note | 
 | command | String | %{color: #000000;}요청 Command 유형 (값: "tnkSettlement")% | %{color: #000000;} % | 
 | did | String | snplab의 did |   | 
 | start | Long! | -1(전체) 또는 조회 시작 기준(초 단위) |   | 
 | end | Long! | %{color: #000000;}조회 종료 기준(초 단위)% | %{color: #ff0000;}start 값이 -1일 경우 end 값에 상관없이 전체 조회% | 

 *SettlementResponse* 

 | field | type | description | 
 | command | String | 요청 Command 유형 | 
 | result | [SettlementResult] |   | 

 *SettlementResult* 

 | field | type | description | 
 | income | Long | 수입 | 
 | reward | Long | 리워드 | 
 | seqId | String | 순서 | 
 | timestamp | Long | 시간 | 

 *요청 예시* 

 <pre> 
 query{ 
 getTnkSettlement(settlementRequest:{ 
   did:"NfoPEFaG1adkCpijR85L66"  
   command: "tnkSettlement"  
   start:-1 
   end: -1 
   }){ 
     command 
     result{ 
       reward 
       income 
       seqId 
       timestamp 
     } 
   } 
 } 
 </pre> 

 *응답 예시* 

 <pre> 
 { 
     "data": { 
         "getTnkSettlement": { 
             "command": "tnkSettlement", 
             "result": [ 
                 { 
                     "reward": 1000, 
                     "income": 500, 
                     "seqId": "abcde", 
                     "timestamp": 12345 
                 }, 
                 { 
                     "reward": 1000, 
                     "income": 1000, 
                     "seqId": "A2CPI2SYK2SEFS", 
                     "timestamp": 1612536898501 
                 }, 
                 { 
                     "reward": 99, 
                     "income": 498, 
                     "seqId": "456024733", 
                     "timestamp": 1616655942901 
                 }, 
                 { 
                     "reward": 99, 
                     "income": 498, 
                     "seqId": "833980294", 
                     "timestamp": 1616723555879 
                 }, 
                 { 
                     "reward": 55, 
                     "income": 112, 
                     "seqId": "54335360300", 
                     "timestamp": 1616738812323 
                 }, 
                 { 
                     "reward": 56, 
                     "income": 114, 
                     "seqId": "54335501700", 
                     "timestamp": 1616739598350 
                 }, 
                 { 
                     "reward": 55, 
                     "income": 112, 
                     "seqId": "54335533700", 
                     "timestamp": 1616739781805 
                 }, 
                 { 
                     "reward": 61, 
                     "income": 123, 
                     "seqId": "54335540400", 
                     "timestamp": 1616739840867 
                 }, 
                 { 
                     "reward": 51, 
                     "income": 104, 
                     "seqId": "54335504600", 
                     "timestamp": 1616740716371 
                 }, 
                 { 
                     "reward": 50, 
                     "income": 101, 
                     "seqId": "54335537800", 
                     "timestamp": 1616740818279 
                 }, 
                 { 
                     "reward": 54, 
                     "income": 110, 
                     "seqId": "54386912900", 
                     "timestamp": 1617004694897 
                 }, 
                 { 
                     "reward": 50, 
                     "income": 101, 
                     "seqId": "54386992000", 
                     "timestamp": 1617004925268 
                 } 
             ] 
         } 
     } 
 }</pre>
클립보드 이미지 추가 (최대 크기: 97.7 MB)