REST Invalid APIKey Error.

mwilliamsmwilliams Registered Users Posts: 10 Big grins
Again, With this error!

So What's wrong with this URL?
http://api.smugmug.com/hack/rest/?method=smugmug.subcategories.get&CategoryID=32486&SessionID=af181810b1fd2f18a448ede405bfcb9d

If this SessionID is not working you can get a valid one from
http://somethingJava.com/omar/login.cfm

Login as Anonymous
Click on "Get SessionID" Link.

So why is it that I get Invalid APIKey.

Please help,

Deadline for my application is in 2 days.

Thanks,
Marco

Comments

  • onethumbonethumb Administrators Posts: 1,269 Major grins
    edited September 1, 2005
    mwilliams wrote:
    Again, With this error!

    So What's wrong with this URL?
    http://api.smugmug.com/hack/rest/?method=smugmug.subcategories.get&CategoryID=32486&SessionID=af181810b1fd2f18a448ede405bfcb9d

    If this SessionID is not working you can get a valid one from
    http://somethingJava.com/omar/login.cfm

    Login as Anonymous
    Click on "Get SessionID" Link.

    So why is it that I get Invalid APIKey.

    Please help,

    Deadline for my application is in 2 days.

    Thanks,
    Marco


    I'm afraid you've run across a known bug with REST. This was fixed months ago in the BETA API, but alas, I can't seem to get any of the most important applications to test against the BETA release and give me the feedback I need.

    I just rolled a tiny fix to the site that should fix this issue. Please let me know if it doesn't.

    Thanks!

    Don
  • mwilliamsmwilliams Registered Users Posts: 10 Big grins
    edited September 7, 2005
    onethumb wrote:
    I'm afraid you've run across a known bug with REST. This was fixed months ago in the BETA API, but alas, I can't seem to get any of the most important applications to test against the BETA release and give me the feedback I need.

    I just rolled a tiny fix to the site that should fix this issue. Please let me know if it doesn't.

    Thanks!

    Don


    Nope it did not fix the issue.
  • mwilliamsmwilliams Registered Users Posts: 10 Big grins
    edited September 7, 2005
    Can you take a look at the flash issue that was posted.
    Hi Don,

    Could you take a look at the flash issue that was posted.
    http://www.dgrin.com/showthread.php?t=11852

    I am having the same issue with it and I need the problem solved.

    As for the APIKey issue I figured out a work around by not using the smugmug.subcategories.get method. I am just using the smugmug.albums.get method and parsing out all the categories & subcategories from there.

    But now I have the same issue at the post. I got the data into flash I am having issues loading the images in a flash movie.

    Thanks,
    Marco
  • onethumbonethumb Administrators Posts: 1,269 Major grins
    edited September 7, 2005
    mwilliams wrote:
    Nope it did not fix the issue.

    Fixes it fine for me. I used your URL, with a valid SessionID, and I got back:

    [PHP]
    <rsp stat="fail">
    <err code="15" msg="empty set - no subcategories found"/>
    </rsp>[/PHP]

    not the old invalid API key error.

    Are you sure you've got a valid session?

    Don
Sign In or Register to comment.