implement the jsonAPIKey version of the method

also keeps the version declared in the .h file present
Merge pull request #104 from derrh/master

implement the jsonAPIKey version of the method