0

you provided APP but at least USER is expected

Any idea why the query ' select folder.unread from ymail.messages where numMid='9' gives me this error:

2012-01-19 22:59:49.615 SocialSample[14426:f803] {"error":{"lang":"en-US","description":"Authentication Error.  The table ymail.messages requires a higher security level than is provided, you provided APP but at least USER is expected"}}


I based this query off of an example on http://developer.yahoo.com/mail

Thanks,
Johnny

by
7 Replies

  • Try increasing the permissions of your key for yahoo mail access. Thanks. 

    --R

    QUOTE (Johnny @ 19 Jan 2012 9:03 PM) Any idea why the query ' select folder.unread from ymail.messages where numMid='9' gives me this error:

    2012-01-19 22:59:49.615 SocialSample[14426:f803] {"error":{"lang":"en-US","description":"Authentication Error.  The table ymail.messages requires a higher security level than is provided, you provided APP but at least USER is expected"}}


    I based this query off of an example on http://developer.yahoo.com/mail

    Thanks,
    Johnny
    0
  • I increased my Mail API key to 'full access' and still get the same error.

    Here's the query I'm using after obtaining a  YOSSession:

         YQLQueryRequest *request = [ YQLQueryRequest requestWithSession : self . session ];  

        [request query : @"select * from ymail.messages" withDelegate : self ];


    And here's my delegate callback error:

    2012-01-23 22:15:24.038 SocialSample[6337:f803] -[SocialSampleAppDelegate requestDidFinishLoading:]: {"error":{"lang":"en-US","description":"Authentication Error.  The table ymail.messages requires a higher security level than is provided, you provided APP but at least USER is expected"}}


    Do you have any other ideas?

    ~Johnny


    QUOTE (Ram @ 23 Jan 2012 2:38 PM)
    Try increasing the permissions of your key for yahoo mail access. Thanks. 

    --R

    QUOTE (Johnny @ 19 Jan 2012 9:03 PM) Any idea why the query ' select folder.unread from ymail.messages where numMid='9' gives me this error:

    2012-01-19 22:59:49.615 SocialSample[14426:f803] {"error":{"lang":"en-US","description":"Authentication Error.  The table ymail.messages requires a higher security level than is provided, you provided APP but at least USER is expected"}}


    I based this query off of an example on http://developer.yahoo.com/mail

    Thanks,
    Johnny
    0
  • I'm getting the same response:
    {"error":{"lang":"en-US","description":"Authentication Error.  The table social.contacts requires a higher security level than is provided, you provided APP but at least USER is expected"}}

    My application's keys grant Read permissions for Contacts.  Is there any way I can get more debug information?  Do you have any idea why I'd be getting this error?

    Thanks



    QUOTE (Johnny @ 23 Jan 2012 8:19 PM) I increased my Mail API key to 'full access' and still get the same error.

    Here's the query I'm using after obtaining a  YOSSession:

         YQLQueryRequest *request = [ YQLQueryRequest requestWithSession : self . session ];  

        [request query : @"select * from ymail.messages" withDelegate : self ];


    And here's my delegate callback error:

    2012-01-23 22:15:24.038 SocialSample[6337:f803] -[SocialSampleAppDelegate requestDidFinishLoading:]: {"error":{"lang":"en-US","description":"Authentication Error.  The table ymail.messages requires a higher security level than is provided, you provided APP but at least USER is expected"}}


    Do you have any other ideas?

    ~Johnny


    QUOTE (Ram @ 23 Jan 2012 2:38 PM)
    Try increasing the permissions of your key for yahoo mail access. Thanks. 

    --R

    QUOTE (Johnny @ 19 Jan 2012 9:03 PM) Any idea why the query ' select folder.unread from ymail.messages where numMid='9' gives me this error:

    2012-01-19 22:59:49.615 SocialSample[14426:f803] {"error":{"lang":"en-US","description":"Authentication Error.  The table ymail.messages requires a higher security level than is provided, you provided APP but at least USER is expected"}}


    I based this query off of an example on http://developer.yahoo.com/mail

    Thanks,
    Johnny
    0
  • I got the same strange error message.  The solution was that I was using the wrong endpoint URL.

    Doesn't work: "http://query.yahooapis.com/v1/public/yql?q=___".
    Works: "http://query.yahooapis.com/v1/yql?q=___". 

    I was stupid and didn't realize I was trying to use the public URL.  BUT WAIT ... I proofed the YQL query in the YQL console.  I just double checked, and sure enough, putting in my query "select * from ymail.messages where numMid=3" and clicking JSON for output generates the WRONG REST QUERY URL WITH THE public PART IN THERE.  Of course, sticking with XML output gives the right url.  Stupid tools.
    0
  • hi
    i have the exact same problem as Johnny initially described, trying to fetch the user emails.
    did you manage to solve this?
    0
  • solved. if this helps anyone, the oauth_token_secret was missing from the Authorization header.
    0
  • What does at mean this errror: Authentication Error. The table social.contacts requires a higher security level than is provided, you provided APP but at least USER is expected

    Application permissions: Read/Write With your user's permission, you can read and write their Contacts information.

    Read/Write Public and Private With your user's permission, you can read and write their Profile information that is marked as either public, shared with Connections, or private. Write access to Contact information is excluded.

    0

Recent Posts

in Yahoo! Mail Web Services API