<p dir="ltr">Hello,</p>
<p dir="ltr">Storing in clear text is how I deal with Foursquare plugin's own API key actually. I asked the same question too, on IRC channel a while ago.</p>
<p dir="ltr">Regards, <br>
Utku Aydın</p>
<div class="gmail_quote">26 Kas 2012 17:25 tarihinde "Anders Lund" <<a href="mailto:anders@alweb.dk">anders@alweb.dk</a>> yazdı:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I have written a plugin for displaying geocaches from <a href="http://opencaching.com" target="_blank">opencaching.com</a>, mainly<br>
to get my feet wet with a web service and QJson without having to deal with<br>
oauth, that is used by <a href="http://opencaching.pl" target="_blank">opencaching.pl</a> (and others using their API).<br>
<br>
To access <a href="http://opencaching.com" target="_blank">opencaching.com</a>, I got an API key from the site, and now the<br>
question is how to deal with that in the opensource context.<br>
<br>
The key is just a text string, and it is used as part of the URL sent to get<br>
data from the service, like<br>
<a href="http://www.opencaching.com/api/geocache/?Authorization=" target="_blank">http://www.opencaching.com/api/geocache/?Authorization=</a><key>&<rest of query><br>
<br>
As you can see, it is not very secret, but I'm not sure how to deal with the<br>
key - how can I include it in a wasy so it is not put in clear text in the<br>
code, but without making it difficult to use the plugin?<br>
<br>
I could write a plugin for the opencaching network as well, but they also use<br>
api keys.<br>
<br>
<br>
For a screenshot of the plugin in action, look here in case anyone is<br>
interrested:<br>
<a href="http://owncloud.alweb.dk/public.php?service=files&file=/anders/files/Public/marble-
opencaching.png" target="_blank">http://owncloud.alweb.dk/public.php?service=files&file=/anders/files/Public/marble-<br>
opencaching.png</a><br>
<a href="http://owncloud.alweb.dk/public.php?service=files&file=/anders/files/Public/marble-
opencaching1.png" target="_blank">http://owncloud.alweb.dk/public.php?service=files&file=/anders/files/Public/marble-<br>
opencaching1.png</a><br>
<br>
--<br>
Anders<br>
_______________________________________________<br>
Marble-devel mailing list<br>
<a href="mailto:Marble-devel@kde.org">Marble-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/marble-devel" target="_blank">https://mail.kde.org/mailman/listinfo/marble-devel</a><br>
</blockquote></div>