APIKey or not?

OppsOpps Registered Users Posts: 160 Major grins
Hi, just a quick question about leaving the APIkey in the source code or not.

I made a simple smugmug gallery wordpress plugin for myself, but recently I've received a few requests for making it publicly available so I thought I would put the code up on my site. My question is, what do I do with APIKey ... do I leave it in the PHP code (where anyone can copy it and use it for anything) or should I require that anyone who wants to use the plugin also has to get an APIKey? (I guess that the first alternative is the right way to go but I want to check)
--
Jan Erik Moström

Comments

  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited November 16, 2010
    If the source code is available for download, I'd recommend just adding a placeholder in your code with instructions that the user needs to obtain their own API key.

    Cheers,

    David
    David Parry
    SmugMug API Developer
    My Photos
Sign In or Register to comment.