This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<GeteBayOfficialTimeResponse xmlns="urn:ebay:apis:eBLBaseComponents"> | |
<Timestamp>2018-04-09T07:40:32.535Z</Timestamp> | |
<Ack>Failure</Ack> | |
<Version>1047</Version> | |
<Build>E1047_CORE_API_18645815_R1</Build> | |
<Errors> | |
<ShortMessage>This Token has been revoked by App.</ShortMessage> | |
<LongMessage>This Token has been revoked by App. The end user must complete the Auth & Auth consent flow again to generate a valid token.</LongMessage> | |
<ErrorCode>21916013</ErrorCode> | |
<SeverityCode>Error</SeverityCode> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<GetCategoriesResponse | |
xmlns="urn:ebay:apis:eBLBaseComponents"> | |
<Timestamp>2018-04-08T08:22:19.894Z</Timestamp> | |
<Ack>Success</Ack> | |
<CorrelationID>S4qkRxdmh7tRvS8V</CorrelationID> | |
<Version>1047</Version> | |
<Build>E1047_CORE_API_18645815_R1</Build> | |
<CategoryArray> | |
<Category> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"errcode": 0, | |
"errmsg": "ok", | |
"card": { | |
"card_type": "MEMBER_CARD", | |
"member_card": { | |
"base_info": { | |
"id": "p-MiYw6i3XjlwJtFEbHZTlD0O4mc", | |
"logo_url": "http:\/\/mmbiz.qpic.cn\/mmbiz_png\/EFUibPEPqeP5YL1WJ5YKfUG6020cjFP7lJoibnySWrUyRzMJOp68McniccQ5JVNXLNWbpvOxsAl3dibnKuq8qvAs9A\/0?wx_fmt=png", | |
"code_type": "CODE_TYPE_BARCODE", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<GetCategoryInfoResponse | |
xmlns="urn:ebay:apis:eBLBaseComponents"> | |
<Timestamp>2017-10-01T16:03:11.356Z</Timestamp> | |
<Ack>Success</Ack> | |
<Build>E1033_CORE_APILW_18542200_R1</Build> | |
<Version>1033</Version> | |
<CategoryArray> | |
<Category> | |
<CategoryID>1</CategoryID> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
public final void testPreview() throws UnsupportedEncodingException { | |
DropboxContentReq req = new DropboxContentReq(DropboxAPI.PREVIEW); | |
req.setEnd_point(DropboxAPIConfig.content_endpoint); | |
req.setHttp_method(HttpMethod.POST); | |
DropboxPathReq path_req = new DropboxPathReq(""); | |
String path = "/blackdog/中文prd.docx"; | |
//convert Chinese to Unicode /blackdog/\\u4E2D\\u6587prd.docx | |
path = StringEscapeUtils.escapeJava(path); | |
path_req.setPath(path); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public byte[] parse(HttpServletRequest request) { | |
byte[] input = null; | |
try { | |
InputStream is = request.getInputStream(); | |
ByteArrayOutputStream byteStream = new ByteArrayOutputStream(); | |
while (true) { | |
int c = is.read(); | |
if (c == -1) break; | |
byteStream.write((byte) c); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.paddypower.financials.market.management.rest.logging; | |
import java.io.BufferedReader; | |
import java.io.ByteArrayInputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import javax.servlet.Filter; | |
import javax.servlet.FilterChain; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"findItemsByCategoryResponse": [ | |
{ | |
"ack": [ | |
"Success" | |
], | |
"version": [ | |
"1.13.0" | |
], | |
"timestamp": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Timestamp": "2015-05-10T14:13:12.079Z", | |
"Ack": "Success", | |
"Build": "E897_CORE_APILW_17290128_R1", | |
"Version": "897", | |
"Item": { | |
"ItemID": "321245044245", | |
"EndTime": "2014-01-22T00:22:44.000Z", | |
"ViewItemURLForNaturalSearch": "http://www.ebay.com/itm/Lot-5-Otodus-Shark-Tooth-necklace-wire-wrapped-Shark-Tooth-Fossil-Pendant-2-/321245044245", | |
"ListingType": "FixedPriceItem", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Timestamp": "2015-05-10T14:11:13.295Z", | |
"Ack": "Success", | |
"Build": "E897_CORE_APILW_17290128_R1", | |
"Version": "897", | |
"Item": [ | |
{ | |
"ItemID": "281681164753", | |
"BuyItNowAvailable": true, | |
"ConvertedBuyItNowPrice": { |