You don't need to use client side scripts with our API, those are
simply examples. However, if you'd like to use Javascript to access
Songkick's API, unfortunately, for client side applications you have
no choice but to expose the API key.
If you ever think that someone might be misusing your api key, let me
know and we can issue a new one. We know security by obfuscation is
not security, but for now, there's no way around it.
Hope that helps
--
Sabrina Leandro
http://www.songkick.com/users/saleandro
On 7 February 2012 20:16, Shaked <pig...@gmail.com> wrote:
> Hey
>
> I would prefer to use server side but I have more then one request to make
> (I can cache but it won't be enough) so it will take too much server time to
> do that.
>
> As for the api key, if I can do that how would you relate to the terms of
> usage? I can't proof that someone "stole" my api key (although lets face it,
> what they can already do?). I understand that currently there's not
> workaround to solve this issue, but maybe you're planning to do that in the
> (near) future?
The exact nature of the technology doesn't allow you to store your API
privately. We understand that's a problem. However, we haven't had yet
any case of others abusing an API key. As a suggestion, you could try
and obfuscate it, declaring it in another file your HTML code
requires.
> And just trying to figure why is the examples are written with JavaScript
> while there's no use for it?
There is definitely use for it, we have many API clients that use
Javascript. That example code is showing how to use JSONP and AJAX
calls, that's why it's in Javascript, but that doesn't mean that's the
only way you can consume our API.
> I don't won't to be annoying, I just think that those things are relevant
> for each developer here...
>
> Thank you for your time
Hope that helps,