@@ -63,7 +63,7 @@ System.out.println("response = " + response);
63
63
返回格式为JSON的 可以使用 HttpJsonUtil 自动返回JsonObject
64
64
65
65
``` java
66
- JSONObject object= HttpJsonUtil . get(" https://github.com/search" ,
66
+ Map< String , Object > object= HttpJsonUtil . get(" https://github.com/search" ,
67
67
Pair . of(" q" ," http" ),
68
68
Pair . of(" username" ," agonie201218" ));
69
69
System . out. println(" object = " + object);
@@ -91,7 +91,7 @@ System.out.println("response = " + response);
91
91
92
92
``` java
93
93
94
- # get
94
+ # get
95
95
Response response= HttpRequest . get(" https://search.gitee.com/?skin=rec&type=repository" )
96
96
.queryMap(" q" ," admin4j" )
97
97
.header(HttpHeaderKey . USER_AGENT ," admin4j" )
@@ -237,10 +237,6 @@ public class EbayClient extends ApiJsonClient {
237
237
EbayClient 封装ebay api请求 基础类
238
238
239
239
``` java
240
- /**
241
- * ebay 库存相关api
242
- * @author andanyang
243
- */
244
240
public class EbayInventoryClient extends EbayClient {
245
241
246
242
/**
@@ -260,7 +256,7 @@ public class EbayInventoryClient extends EbayClient {
260
256
* @return
261
257
* @throws IOException
262
258
*/
263
- public JSONObject inventoryItem (Integer limit , Integer offset ) throws IOException {
259
+ public Map< String , Object > inventoryItem (Integer limit , Integer offset ) throws IOException {
264
260
265
261
Map<String , Object > queryMap = new HashMap (2 );
266
262
queryMap. put(" limit" , limit);
@@ -275,14 +271,15 @@ EbayInventoryClient 封装ebay 库存 api请求
275
271
276
272
``` java
277
273
EbayInventoryClient ebayInventoryClient= new EbayInventoryClient (1L );
278
- JSONObject jsonObject= ebayInventoryClient. inventoryItem(0 ,10 );
274
+ Map< String , Object > jsonObject= ebayInventoryClient. inventoryItem(0 ,10 );
279
275
```
280
276
281
277
``` java
282
-
283
278
/**
284
279
* 订单相关api
280
+ *
285
281
* @author andanyang
282
+ * @since 2022/11/8 17:34
286
283
*/
287
284
public class EbayOrderClient extends EbayClient {
288
285
@@ -305,7 +302,7 @@ public class EbayOrderClient extends EbayClient {
305
302
* @param offset
306
303
* @return
307
304
*/
308
- public JSONObject orders (String beginTime , String endTime , int limit , int offset ) {
305
+ public Map< String , Object > orders (String beginTime , String endTime , int limit , int offset ) {
309
306
310
307
final String path = " /sell/fulfillment/v1/order" ;
311
308
0 commit comments