QR Code for API Key

Want something added? Ask for it here.
Post Reply
faint545
Newbie
Newbie
Posts: 38
Joined: June 4th, 2011, 11:36 am

QR Code for API Key

Post 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 ;)
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: QR Code for API Key

Post by shypike »

Given the amount of effort this would cost to implement, I think you can guess the answer.
faint545
Newbie
Newbie
Posts: 38
Joined: June 4th, 2011, 11:36 am

Re: QR Code for API Key

Post 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
User avatar
inpheaux
Administrator
Administrator
Posts: 563
Joined: January 16th, 2008, 9:14 pm

Re: QR Code for API Key

Post 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.
faint545
Newbie
Newbie
Posts: 38
Joined: June 4th, 2011, 11:36 am

Re: QR Code for API Key

Post 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.
User avatar
inpheaux
Administrator
Administrator
Posts: 563
Joined: January 16th, 2008, 9:14 pm

Re: QR Code for API Key

Post by inpheaux »

Got it implemented, it'll be available on our dev branch soon. (For Plush, at least)
User avatar
inpheaux
Administrator
Administrator
Posts: 563
Joined: January 16th, 2008, 9:14 pm

Re: QR Code for API Key

Post by inpheaux »

faint545
Newbie
Newbie
Posts: 38
Joined: June 4th, 2011, 11:36 am

Re: QR Code for API Key

Post by faint545 »

Ah, it looks great! I just used it to test my app. Great job ;D
Marcoevich
Jr. Member
Jr. Member
Posts: 54
Joined: January 1st, 2012, 2:35 pm

Re: QR Code for API Key

Post 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..
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: QR Code for API Key

Post by shypike »

Take a look at the actual program :)
It's there in Config->General (except in the original smpl and Classic skins).
Marcoevich
Jr. Member
Jr. Member
Posts: 54
Joined: January 1st, 2012, 2:35 pm

Re: QR Code for API Key

Post by Marcoevich »

Ok Thx, will do that ;)
Post Reply