I'm using TradeMe API to retrieve the sold items. I've got Access token and secrete access token.
Base string is:
GET&https%3A%2F%2Fapi.tmsandbox.co.nz%2Fv1%2FMyTradeMe%2FSoldItems%2FLast3Days.xml&oauth_consumer_key%3D6085D4BB6470D6D19A87C95250B0DE67B3%26oauth_nonce%3Dfc2v9dfhvodue63158nfgv8rmi%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1386664558%26oauth_token%3DCB062F16423A86ABD70BCDAE526DB242A5%26oauth_version%3D1.0
Signature is:
O13VZ4S2g9IYUdUe2bvSi2MEedM=
Signature is calculated as
StringUtils.getBytesUsAscii(consumer_secret_key+"&"+secretAccessToken))
as they suggested
Authorization header:
OAuth, oauth_consumer_key="6085D4BB6470D6D19A87C95250B0DE67B3", oauth_nonce="akl05eckls51nk5taohls0cnd4", oauth_signature="O13VZ4S2g9IYUdUe2bvSi2MEedM%3D"oauth_signature_method="HMAC-SHA1", oauth_timestamp="1386664558", oauth_token="CB062F16423A86ABD70BCDAE526DB242A5", oauth_version="1.0",
It is giving me an error.
Error java.io.IOException: Server returned HTTP response code: 500 for URL: https://api.tmsandbox.co.nz/v1/MyTradeMe/SoldItems/Last24Hours.xml?deleted=false&page=1&photo_size=Thumbnail&rows=50
Can any one tell me what went wrong ?