I am a developer that uses Pablo's library and I was confronted with the same problem. I've been thinking about posting a HTTP request and response as requested by Yu Wang. Unfortunately, I'm rather new at these kind of requests through Java and I have no idea of how to capture this request/response. I'm using Ubuntu as an OS, Eclipse 3.5 as my IDE and Java 6. I have tried using Wireshark (an network traffic monitor) before, but I noticed HTTPS calls are of course encrypted. I suppose you only need the request/response as made to final URL, which is to plain HTTP, so it might work. Can you tell me if I'm on the right track? Thanks in advance!
The delicious api as described by the link you posted was my starting point. Then I found the library by Pablo, and used that. I don't really create the request myself. Maybe Pablo can comment on this?
I am trying to use Scribe Library to access information from Yahoo using YQL but it seems that I am having this issue, were you able to resolve this issue? please let me know, really appreciate your help.
Thanks for the reply, I actually already posted this in the Fantasy API section because i am working with Fantasy API. but later i realized that this is related to OAUTH. anyway, below is the link to the topic, please let me know if i should close the topic there and open a new one under OAUTH.
I've made it all the way to Step 7 (http://delicious.com/help/oauthapi) & (http://developer.yahoo.com/oauth/guide/oauth-accesstoken.html)
But keep getting Please provide valid credentials.
I've spent literally two days trying to figure this out and haven't had any luck.
Can someone please paste their JAVA code where you build the base string, generate the signature, and request to delicious api(any common example)?
I would be soooooo thankful:)
I'm thinking I may be doing the urlencoding in the wrong order or something simple like that. Or maybe the headers I'm using in cURL aren't right. Or maybe the Delicious instructions are wrong (yet again...like in Step 4).
Here is my code:
These are my steps[5 to 7]
access_token=A%3DuV5zdJSbpQvlLxowAU0i675uUVbUUV_l6D6L5GKjxnSEykWLnvR9rrgsDkPpvWJdahxxbGl68DGEoc uKMrcS_j1YULaae7Z_QfTPxN3iEkYfOKl96qAaYHdygRA35e.rhrdCrtLAxOoxW.nCblEga4pq0l9mxr _ rSkx64q2OJFLNyYTgXhir5kiw9JvlzevkKXyf3NMEAQaJqb5Fd8N0D4iXma4uWM5DIojJ8OM5wOwkB2D u iRZ1n00F5S4Qg3BpkH2GrukQl.TMk4oAmQGGi341_.9rQRFzR_hCbVLZsNjzVB49ZQVqXw6oH47yrdgL 5 ZzjieefTmhcWDFSHoo3CtiimGIve6U35cUH8cmBbrtSbUdA2yA19QREVbsmoKe3v_GoU0_6VFjBNCS1P B _vYG82cJVB0ROibkX3udaKQe_VX.hKjSMyT.n78Z8YWUaKCwAGsBGw9yZP3XnlUjb_A72BrzMi5UDJaW w r9_kWDCTPJ1YtUROdPWXSbUMZ33c.cradFdNmIMHW1hIwYgOCXSIRn1a2Yf6kTtCnP_1FD_oz06k.NQj B pkMl7x4.Xsh6zLjG0hhEBYNO3AYeLk2lvPcXP2nzJQ4gmQ__Cz0ctHzDHayP47E0rQwGEDi0.wLBx0Bz f Tx3GTh0trqNAUY.8dzLWgcjZya7OFzX3X1WxGMg9Tz5xegSRxYt.8aRyIp7kmfumKq67qpJ_CxbVWcZI p ztN61N2A--
String baseString = "GET&http%3A%2F%2Fapi.del.icio.us%2Fv2%2Fposts%2Fsuggest&oauth_consumer_key%3Ddj0yJmk9UzQzbjNFZlpZdnJTJmQ9WVdrOVlXbFlVbGxrTnpRbWNHbzlOVFE1TXprME5EWXkmcz1jb2 5zdW1lcnNlY3JldCZ4PWVl%26oauth_nonce%3D5731531896143931081%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1293457885%26oauth_token%3DA%253DuV5zdJSbpQvlLxowAU0i675uUVbUUV_l6D6L5GKjxnSEykWLnvR9rrgsDkPpvWJdahxxbGl68DGE ocuKMrcS_j1YULaae7Z_QfTPxN3iEkYfOKl96qAaYHdygRA35e.rhrdCrtLAxOoxW.nCblEga4pq0l9m x r_rSkx64q2OJFLNyYTgXhir5kiw9JvlzevkKXyf3NMEAQaJqb5Fd8N0D4iXma4uWM5DIojJ8OM5wOwkB 2 DuiRZ1n00F5S4Qg3BpkH2GrukQl.TMk4oAmQGGi341_.9rQRFzR_hCbVLZsNjzVB49ZQVqXw6oH47yrd g L5ZzjieefTmhcWDFSHoo3CtiimGIve6U35cUH8cmBbrtSbUdA2yA19QREVbsmoKe3v_GoU0_6VFjBNCS 1 PB_vYG82cJVB0ROibkX3udaKQe_VX.hKjSMyT.n78Z8YWUaKCwAGsBGw9yZP3XnlUjb_A72BrzMi5UDJ a Wwr9_kWDCTPJ1YtUROdPWXSbUMZ33c.cradFdNmIMHW1hIwYgOCXSIRn1a2Yf6kTtCnP_1FD_oz06k.N Q jBpkMl7x4.Xsh6zLjG0hhEBYNO3AYeLk2lvPcXP2nzJQ4gmQ__Cz0ctHzDHayP47E0rQwGEDi0.wLBx0 B zfTx3GTh0trqNAUY.8dzLWgcjZya7OFzX3X1WxGMg9Tz5xegSRxYt.8aRyIp7kmfumKq67qpJ_CxbVWc Z IpztN61N2A--%26oauth_version%3D1.0%26url%3Dhttp%253A%252F%252Fwww.yahoo.com%252F";
I'm stuck in 2nd step of three-legged flow of OAuth authorization since 2 days.
I got key and secret from 1st step.For 2nd step I'm getting file not found error in firefox,yahoo icon in chromium, unable to download requets token message in internet explorer, Please share yahoo's live help number or emailid.Please pass it to email@example.com at the earliest.
I thought I'd share my experience using Scribe for Java and the Yahoo! API, where I realized that it's important to include both the token and the secret when creating the Token object used when trading a request token for an access token. In other words, I got the signature_invalid error until I realized that the secret string was missing in the puzzle, since the secret is used to sign the request.