Options

Important API Update - Security related changes

2»

Comments

  • Options
    flyingdutchieflyingdutchie Registered Users Posts: 1,286 Major grins
    edited March 16, 2008
    My SmugFig API has been made compliant with the new security features.
    http://blog.antonspaans.com/smugfig-api/
    I can't grasp the notion of time.

    When I hear the earth will melt into the sun,
    in two billion years,
    all I can think is:
        "Will that be on a Monday?"
    ==========================
    http://www.streetsofboston.com
    http://blog.antonspaans.com
  • Options
    devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited March 17, 2008
    API Keys are now being issued
    David Parry
    SmugMug API Developer
    My Photos
  • Options
    pgrovepgrove Registered Users Posts: 3 Beginner grinner
    edited March 17, 2008
    Thanks for Keys - Need help using.
    devbobo wrote:
    API Keys are now being issued

    Thanks for getting the API Key Distribution back into service.

    I now have three keys, but they don't work. Status in Control Pannel>Settings is reported as "Open."

    Using:

    http://api.smugmug.com/services/api/rest/1.2.1/?method=smugmug.login.anonymously&APIkey=

    or

    http://api.smugmug.com/hack/rest/1.2.0/?method=smugmug.login.anonymously&APIkey=

    Calls with any of the three keys pasted at the end returns:

    <?xml version="1.0" encoding="utf-8" ?>
    <rsp stat="fail">
    <err code="18" msg="invalid API key" />
    </rsp>

    Any hints?
  • Options
    devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited March 17, 2008
    pgrove wrote:
    Thanks for getting the API Key Distribution back into service.

    I now have three keys, but they don't work. Status in Control Pannel>Settings is reported as "Open."

    Using:

    http://api.smugmug.com/services/api/rest/1.2.1/?method=smugmug.login.anonymously&APIkey=

    or

    http://api.smugmug.com/hack/rest/1.2.0/?method=smugmug.login.anonymously&APIkey=

    Calls with any of the three keys pasted at the end returns:

    <?xml version="1.0" encoding="utf-8" ?>
    <rsp stat="fail">
    <err code="18" msg="invalid API key" />
    </rsp>

    Any hints?

    The K in APIKey should be upper case <img src="https://us.v-cdn.net/6029383/emoji/thumb.gif&quot; border="0" alt="" >
    David Parry
    SmugMug API Developer
    My Photos
  • Options
    rainforest1155rainforest1155 Registered Users Posts: 4,566 Major grins
    edited March 18, 2008
    Could we have this page updated to remove the notice about API keys not being issued?

    Thanks,
    Sebastian
    Sebastian
    SmugMug Support Hero
  • Options
    B-rootB-root Registered Users Posts: 3 Beginner grinner
    edited March 26, 2008
    Hi David.

    What about the upload of images via HTTP PUT ? Are the AlbumKey / ImageKey also needed ? If yes what are the names of the headers ? X-Smug-AlbumKey and X-Smug-ImageKey ?

    Thanks in advance.
  • Options
    devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited March 26, 2008
    B-root wrote:
    Hi David.

    What about the upload of images via HTTP PUT ? Are the AlbumKey / ImageKey also needed ? If yes what are the names of the headers ? X-Smug-AlbumKey and X-Smug-ImageKey ?

    Thanks in advance.

    ImageKey/AlbumKey are only required for methods where a person can make a call in the context of an anonymous user (or non-owner), eg smugmug.images.get.

    For methods that can only be carried out by the woner like uploading or creating/editing albums, no key is required.

    Cheers,

    David
    David Parry
    SmugMug API Developer
    My Photos
  • Options
    blackgold9blackgold9 Registered Users Posts: 52 Big grins
    edited November 29, 2010
    Hate to resurrect the old thread, but i'm trying to implement a smugmug community browser and need to understand albumkeys. The links referened in the early posts no longer exist. What exactly are image/album keys? Do they change?
  • Options
    pgrovepgrove Registered Users Posts: 3 Beginner grinner
    edited November 30, 2010
    blackgold9 wrote: »
    Hate to resurrect the old thread, but i'm trying to implement a smugmug community browser and need to understand albumkeys. The links referened in the early posts no longer exist. What exactly are image/album keys? Do they change?

    This thread covers API keys which are different than your question.

    Image/album keys are codes added to the end of image/album IDs to mace it difficult to find hidden images and albums since they can be guessed fairly easily. If you look at the URL for an album you will see nnnnn_kkkk for both the album and image where nnnnn is the ID and kkkk is the key.

    Not an exact answer, but perhaps it is enough to help.
Sign In or Register to comment.