File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
reddio-csharp/reddio.api/V1/Rest Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -64,10 +64,8 @@ public async Task<ResponseWrapper<GetAssetIdResponse>> GetAssetId(GetAssetIdMess
64
64
{
65
65
var endpoint =
66
66
$ "{ _baseEndpoint } /v1/assetid?type={ getAssetIdMessage . Type } &contract_address={ getAssetIdMessage . ContractAddress } &token_id={ getAssetIdMessage . TokenId } ";
67
- var request = new HttpRequestMessage ( HttpMethod . Get , endpoint ) ;
68
- request . Content = new StringContent ( "" , Encoding . UTF8 , "application/json" ) ;
69
67
var client = HttpClientWithReddioUA ( ) ;
70
- var response = await client . SendAsync ( request ) ;
68
+ var response = await client . GetAsync ( endpoint ) ;
71
69
var result = await ReadAsJsonAsync < ResponseWrapper < GetAssetIdResponse > > ( response ) ;
72
70
return result ! ;
73
71
}
@@ -89,7 +87,6 @@ public async Task<ResponseWrapper<GetRecordResponse>> GetRecord(GetRecordMessage
89
87
$ "{ _baseEndpoint } /v1/record?stark_key={ getRecordMessage . StarkKey } &sequence_id={ getRecordMessage . SequenceId } ";
90
88
var client = HttpClientWithReddioUA ( ) ;
91
89
var response = await client . GetAsync ( endpoint ) ;
92
- var body = await response . Content . ReadAsStringAsync ( ) ;
93
90
response . EnsureSuccessStatusCode ( ) ;
94
91
var result = await ReadAsJsonAsync < ResponseWrapper < GetRecordResponse > > ( response ) ;
95
92
return result ! ;
You can’t perform that action at this time.
0 commit comments