0

question regarding access token

Hey Guys,

Ok, this is one of those facepalm things... I can deal with it.

is this an access token?

A=nwVoCcSdvxoFipwVJ_jiNzQGBgenxaRuiLzRe6MVaTfFJQ3MoAWsHnvh9oWW4.q3bWEFDZThIUYIIm
hpaBVPS1qbqQAiPjnCoe5.n7v4YRx_b9a0B.3tQqdU2ON7fAXa_P2kUNbuxZKHKoFX.2mjEWZYTh14KGk
IXGps0Xp84UQx2gs3ScyU3DYkPGjfbUAO0c_9nKJfJ.xSWMax3qfCi18UiWn4mVrGTZZCHDt1MkYekjEG
hpCe1DdZ7_jqnY4bOMgF2hrezkXDUXzL_xWtg8rMB3v.2Xxu1xh6Cc5.51XY6W5s4Vcc8Gtm5_nV3sDbN
cCGv6be33ZM0hLhCvrjKQKAMb2UXaMij2eDNpAXPKXmKE1NMD6sW70is1Rq_ZaSF8pn_CyoAGdE4TqY0s
kiHVWEJWeG3PH3Mri_OjHhLXQUYT85F4_tCNzbeuzPH7oWszwVdMHwamrFqq5BVt81OyrJZFw9VUnNl20
2w9Jbcqohmj_FxjDPsepN.UuYa.QYlzNWu7Zt9_amoYJ3j0i95fhB8bCqfKVM59RE3BtQw7quoP0D4_Q9
SLGVYh6iMR1j8rPiCIIn7pB5sZsJt4A3r_HdmSLvs1AYan_Wr0cTMRz5i.YUQOoxt6uCvjTnRxL_V6Tkv
J.Wq4Ja6uRD0Pg5A5X3lUFG7liCuve.gvZsR5Q4PVtgTr_dYPb7vpBbZHEM283t0MA4VvE9l3034GZazU
4WYCgQ8.B12AKfis8EtoHSPCFSRg--

im to a point where I am successfully authenticating, and trying to sign a request.

Although, perhaps this is the problem, I'm doing this.
CODEBOX
public string get_stuff(string access_token) {
IncomingWebResponse response = consumer.PrepareAuthorizedRequestAndSend(
new DotNetOpenAuth.Messaging.MessageReceivingEndpoint("http://query.yahooapis.com/v1/yql?q=select%20*%20from%20fantasysports.games%20where%20game_key%3D%22238%22&diagnostics=true", DotNetOpenAuth.Messaging.HttpDeliveryMethods.GetRequest),
access_token);
System.IO.StreamReader response_reader = new System.IO.StreamReader(response.ResponseStream);

return response_reader.ReadToEnd();
}


where access token is the string I put up, Yahoo is returning a 401, suggesting to me that maybe I have the wrong token, or maybe I'm handing the wrong request in.

I got the string from the query utility. Reading this over, I expect this is where I have gone wrong. If this is it, can someone give me a really simple request to try signing?

Thanks again!

by
1 Reply
  • I can confirm that the access token is working fine, and the code that I posted in the other thread is working fine!

    The problem was me, the request I was sticking in there wasn't valid


    Thanks to anyone who happens to be looking into this for me.
    0

Recent Posts

in Fantasy Sports API