Page 1 of 1

QR Code for API Key

Posted: December 31st, 2011, 12:07 pm
by faint545
I think having not only your api key displayed but a QR code version of it displayed (or a link to a website that can generate it automatically) would be nice for mobile purposes. I'm currently in a test phase of a native Android application that monitors SABNzbd and it utilizes a QR scanner to input the very long api key. It'd be nice if SABNzbd could produce this QR code automatically or create a link that sends out the api key to a website that generates qr codes (and it would be nice for whomever uses my application). This could also be beneficial to other SABNzbd mobile applications since they could also implement a QR scanner and prevent their users from having to type them in manually.

However, having a user enter in an API key doesn't seem to happen very often so I don't really expect this feature request to gain much traction with the developers but I'd though I would give it a shot ;)

Re: QR Code for API Key

Posted: December 31st, 2011, 12:34 pm
by shypike
Given the amount of effort this would cost to implement, I think you can guess the answer.

Re: QR Code for API Key

Posted: December 31st, 2011, 12:47 pm
by faint545
Well, SABNzbd doesnt have to encode the api key itself and generate an image. Couldn't an external source do this? For example: http://qrcode.kaywa.com/code/thisisatest
Just replace "thisisatest" with the SABNzbd api key and you've got the api key in a QR code form. Here is some more info on it. http://api.qrcode.kaywa.com/services/qr

Re: QR Code for API Key

Posted: January 1st, 2012, 4:11 pm
by inpheaux
faint545 wrote:Well, SABNzbd doesnt have to encode the api key itself and generate an image. Couldn't an external source do this? For example: http://qrcode.kaywa.com/code/thisisatest
Just replace "thisisatest" with the SABNzbd api key and you've got the api key in a QR code form. Here is some more info on it. http://api.qrcode.kaywa.com/services/qr
I mentioned it in the other thread, and would be happy to patch it in myself.

I'd just have it spawn a JQuery UI modal with an embedded Google Charts API image ( http://code.google.com/apis/chart/infog ... codes.html ). Should be pretty easy to do.

Re: QR Code for API Key

Posted: January 1st, 2012, 4:15 pm
by faint545
Awesome! ;D
inpheaux wrote:
faint545 wrote:Well, SABNzbd doesnt have to encode the api key itself and generate an image. Couldn't an external source do this? For example: http://qrcode.kaywa.com/code/thisisatest
Just replace "thisisatest" with the SABNzbd api key and you've got the api key in a QR code form. Here is some more info on it. http://api.qrcode.kaywa.com/services/qr
I mentioned it in the other thread, and would be happy to patch it in myself.

I'd just have it spawn a JQuery UI modal with an embedded Google Charts API image ( http://code.google.com/apis/chart/infog ... codes.html ). Should be pretty easy to do.

Re: QR Code for API Key

Posted: January 1st, 2012, 5:27 pm
by inpheaux
Got it implemented, it'll be available on our dev branch soon. (For Plush, at least)

Re: QR Code for API Key

Posted: January 1st, 2012, 10:32 pm
by inpheaux

Re: QR Code for API Key

Posted: January 2nd, 2012, 4:56 pm
by faint545
Ah, it looks great! I just used it to test my app. Great job ;D

Re: QR Code for API Key

Posted: May 28th, 2012, 6:54 am
by Marcoevich
Is this feature already available in the 0.7.X beta versions of SABNzbd? It could be that I missed it, but I can't find it in the changelogs anywhere..

Re: QR Code for API Key

Posted: May 28th, 2012, 8:32 am
by shypike
Take a look at the actual program :)
It's there in Config->General (except in the original smpl and Classic skins).

Re: QR Code for API Key

Posted: May 28th, 2012, 5:02 pm
by Marcoevich
Ok Thx, will do that ;)