0

Fail to call YQL in Flash SDK

I fail to call YQL in Flash SDK. The error shown is:

Error opening URL 'http://query.yahooapis.com/v1/yql?oauth_nonce=937c7da97a449d3c36a70107f08fadb9&oauth_version=1.0&oauth_signature_method=HMAC-SHA1&q=select%20%2A%20from%20social.profile%20where%20guid%20in%20%28select%20guid%20from%20social.connections%20where%20owner_guid%3Dme%29&oauth_timestamp=1228845624&oauth_consumer_key=dj0yJmk9a1puYkRNTXlxaU1EJmQ9WVdrOVUyUXpielV3Tm5FbWNHbzlOe
mt3TURNM05UY3cmcz1jb25zdW1lcnNlY3JldCZ4PTc1&format=json&oauth_signature=1nldoxcNo6oVaU+brev321wxsTE='

Did anyone face it before? Hope to see your solution.

* The Flash run at compile time, and is on my local pc.

by
5 Replies
  • Let me provide more information.

    I have applied an OAuth key and test the Flash at my desktop.

    I have tested other YQL, only YQL involving the social directory isn't working.

    when I create my application, I have already set the "Access Scope" to "This app requires access to private user data". And then have set "read" permission for the Y! Contacts, Profile, status and update.

    However, when I check the application detail again, I see that the access scope become blank...so is it the cause of the problem...?
    0
  • It looks like you're using 2 legged OAuth to sign the YQL request. Social directory requires a 3 legged OAuth call. For more information see http://developer.yahoo.com/oauth/guide/oauth-two-legged.html and http://developer.yahoo.com/oauth/guide/oauth-auth-flow.html

    Hope that helps

    -- Nagesh

    QUOTE (stanleyfok0403 @ Dec 9 2008, 10:25 AM) <{POST_SNAPBACK}>
    Let me provide more information.

    I have applied an OAuth key and test the Flash at my desktop.

    I have tested other YQL, only YQL involving the social directory isn't working.

    when I create my application, I have already set the "Access Scope" to "This app requires access to private user data". And then have set "read" permission for the Y! Contacts, Profile, status and update.

    However, when I check the application detail again, I see that the access scope become blank...so is it the cause of the problem...?
    0
  • Thanks for your reply.

    Actually I did follow Zach Graves's instruction on getting the access token and secret in the Flash SDK
    http://developer.yahoo.net/forum/index.php?showtopic=387

    And then try using the API to do YQL:

    var user:YahooUser = session.getSessionedUser();
    user.yql.addEventListener(YahooResultEvent.YQL_QUERY_SUCCESS, handleYQLSuccess);
    user.yql.query("select * from social.connections where owner_guid=me");

    However, I still face the error saying:
    Error opening URL 'http://query.yahooapis.com/v1/yql?format=json&oauth_signature_method=HMAC-SHA1&oauth_consumer_key=dj0yJmk9RG1MTlhBYk9FZVBPJmQ9WVdrOVExRTBVVEUzTlRnbWNHbzlNa
    kV6TmpJNU5qVTBOUS0tJnM9Y29uc3VtZXJzZWNyZXQmeD0zOA--&oauth_timestamp=1228876134&region=US&oauth_version=1.0&oauth_token=A=6_pU_vL6kAdVxRAzVoI3Jk4y1kfar9cd0_m0Kzj2S2d61njkx_BAccgudP6sfP
    TPxXYpqWlVfxmD6RjSKbZuYXjCH.8F9QgGGd2UBUb2NmsF6IVcRkgm0qqnzYH8wggu11JFSnoAFhmCOD
    w
    GXMlsI7K_7JYDaf8nvm0Z2s1jleqUXxgq1dT.b5siCMeCohoiHj5xz4jlpsKWymGafmyBjqnjhrTHgmt
    n
    CzHMIlj4rJTl04Pb3K.6_1B2.r7DOMl8ZFwyesh9Iaz7XjP7CoQE2t7lYSgCzVd_0pjEBfKD1Z8w3M8i
    l
    eBWMqBa4EmQmTqLkOmAIpE7mZLOqi_h81eQHMSFsiEATdzvyqUpBn1TU1bof_9aHpGG8ZoKhUCUI7bM4
    6
    hiMt3pzkQlOJBfSmz7PqH8cKtkBjYxygjKMEM5ew2.3xIf8n_z4itDgD44I2WIQh_twv7g3790iNWSIi
    T
    TkzIRnl83JqTU6gmbV.bj1l.JIZLGdrX8o1HrzNz3zPDHjbZ8NNUYobDW.OM4JRTvawPGuv2t_27g59K
    v
    DWhR1rOSXmqh8w3I1CndEBbYN9K69bdoHBr1IY4aGnQdUTvrNIORVrBp1aPGYtYEA0NQcDQqn3OtOgcF
    a
    SB8Np0oemHTj48j3FKPFeNxpBMiKsLRmczXwGe0Y7s9sB1KjgmVQOE0J12IeOCXv9s9h.5eehkWJvy98
    .
    kUyOMCg0w_FXDQ7gzTh32Zjw--&lang=en-US&q=select%20%2A%20from%20social.connections%20where%20owner_guid%3Dme&oauth_signature=vp6soD0CrUIXhVZtzarUUsPOFVs=&oauth_nonce=843810e585812fb537df681d33c0a5e2'
    0
  • This is a bug, due to the way flash will auto-encode the data object in URLRequest. We should have a fix out soon. Thanks!

    QUOTE (stanleyfok0403 @ Dec 9 2008, 06:52 PM) <{POST_SNAPBACK}>
    Thanks for your reply.

    Actually I did follow Zach Graves's instruction on getting the access token and secret in the Flash SDK
    http://developer.yahoo.net/forum/index.php?showtopic=387

    And then try using the API to do YQL:

    var user:YahooUser = session.getSessionedUser();
    user.yql.addEventListener(YahooResultEvent.YQL_QUERY_SUCCESS, handleYQLSuccess);
    user.yql.query("select * from social.connections where owner_guid=me");

    However, I still face the error saying:
    Error opening URL 'http://query.yahooapis.com/v1/yql?format=json&oauth_signature_method=HMAC-SHA1&oauth_consumer_key=dj0yJmk9RG1MTlhBYk9FZVBPJmQ9WVdrOVExRTBVVEUzTlRnbWNHbzlNa
    kV6TmpJNU5qVTBOUS0tJnM9Y29uc3VtZXJzZWNyZXQmeD0zOA--&oauth_timestamp=1228876134&region=US&oauth_version=1.0&oauth_token=A=6_pU_vL6kAdVxRAzVoI3Jk4y1kfar9cd0_m0Kzj2S2d61njkx_BAccgudP6sfP
    TPxXYpqWlVfxmD6RjSKbZuYXjCH.8F9QgGGd2UBUb2NmsF6IVcRkgm0qqnzYH8wggu11JFSnoAFhmCOD
    w
    GXMlsI7K_7JYDaf8nvm0Z2s1jleqUXxgq1dT.b5siCMeCohoiHj5xz4jlpsKWymGafmyBjqnjhrTHgmt
    n
    CzHMIlj4rJTl04Pb3K.6_1B2.r7DOMl8ZFwyesh9Iaz7XjP7CoQE2t7lYSgCzVd_0pjEBfKD1Z8w3M8i
    l
    eBWMqBa4EmQmTqLkOmAIpE7mZLOqi_h81eQHMSFsiEATdzvyqUpBn1TU1bof_9aHpGG8ZoKhUCUI7bM4
    6
    hiMt3pzkQlOJBfSmz7PqH8cKtkBjYxygjKMEM5ew2.3xIf8n_z4itDgD44I2WIQh_twv7g3790iNWSIi
    T
    TkzIRnl83JqTU6gmbV.bj1l.JIZLGdrX8o1HrzNz3zPDHjbZ8NNUYobDW.OM4JRTvawPGuv2t_27g59K
    v
    DWhR1rOSXmqh8w3I1CndEBbYN9K69bdoHBr1IY4aGnQdUTvrNIORVrBp1aPGYtYEA0NQcDQqn3OtOgcF
    a
    SB8Np0oemHTj48j3FKPFeNxpBMiKsLRmczXwGe0Y7s9sB1KjgmVQOE0J12IeOCXv9s9h.5eehkWJvy98
    .
    kUyOMCg0w_FXDQ7gzTh32Zjw--&lang=en-US&q=select%20%2A%20from%20social.connections%20where%20owner_guid%3Dme&oauth_signature=vp6soD0CrUIXhVZtzarUUsPOFVs=&oauth_nonce=843810e585812fb537df681d33c0a5e2'
    0
  • QUOTE (Zach Graves @ Dec 12 2008, 02:25 PM) <{POST_SNAPBACK}>
    This is a bug, due to the way flash will auto-encode the data object in URLRequest. We should have a fix out soon. Thanks!



    A fix has been pushed out. Sorry for the delay in getting it out... holidays.

    http://developer.yahoo.com/flash/yos/
    0

Recent Posts

in YQL