Pages:
Author

Topic: PAYB.TC - The Free Bitcoin Address Shortener - page 2. (Read 4444 times)

hero member
Activity: 812
Merit: 1000
okay now it outputs json

just add /json to the end of your short link and you'll get something like this:

{"username":"donate","address":"13QTW27b3SgqrEjefB9PbiZ6hcrVCJAxfx"}

( that's from http://payb.tc/donate/json )

any comments? is that the sort of output you would expect for a json api?
hero member
Activity: 812
Merit: 1000
where do "user" come from?

maybe you can get some ideas here http://blockexplorer.com/q


user would just be the person's short name, eg 'donate'.

sorry i'm not sure how that link you gave me helps.
full member
Activity: 160
Merit: 100
The /qr works with the Bitpay Android app. It gave the correct address when I used the app's "From Camera" button.

Good job.
full member
Activity: 191
Merit: 100
where do "user" come from?

maybe you can get some ideas here http://blockexplorer.com/q
hero member
Activity: 812
Merit: 1000
what should i include in the json data?

i was thinking:

user -> myusername
address -> 18fjaiofjblahblahblahblah

anything else?
full member
Activity: 191
Merit: 100
suffix? yeah json is next on my to do list Smiley

Yes i meant suffix Tongue
member
Activity: 112
Merit: 10
This is an awesome site. Couldn't have asked for anything more.
hero member
Activity: 812
Merit: 1000
suffix? yeah json is next on my to do list Smiley
full member
Activity: 191
Merit: 100
Idea
Add support for json/jsonp
And the postfix in URL should end /json
full member
Activity: 154
Merit: 100
Good stuff... I was thinking it'd be handy if the various withdrawal forms around the web would also accept a url instead of just accepting a bitcoin address.

Eg. You go to withdraw from Mt Gox and instead of inputting your address you just input your shortener link.
legendary
Activity: 1078
Merit: 1000
Charlie 'Van Bitcoin' Shrem
This is actually really awesome!

I'm really impressed with this, great job dude!

/Yankee/
hero member
Activity: 812
Merit: 1000
cool i'm glad this is helpful.

and so i've now also added 'qr' Cheesy Cheesy

simply add /qr to your short link to get a qr image. example: http://payb.tc/donate/qr

i'm not very familiar with qr or how it looks on phones yet so please let me know if the size and margin is okay.
newbie
Activity: 24
Merit: 0
+1
Awesome change payb.tc
I hope other sites will follow along and make similar changes so that site-scraping does not need to be a dark-art.
At the end of the day, we all need to try and ensure that information is easily accessible - even when retrieved in an automated fashion.
newbie
Activity: 56
Merit: 0
great addition for the community
hero member
Activity: 812
Merit: 1000
to help developers use this service, i've now added a plain text version of each page.

for example http://payb.tc/donate gives the full html page and http://payb.tc/donate/text gives just the address in plain text.

simply add /text to your current short link url to have your address returned as plain text.

update: it also now supports qr and json output too. examples:

http://payb.tc/donate (html page)
http://payb.tc/donate/text (plain text)
http://payb.tc/donate/qr (qr encoded image)
http://payb.tc/donate/json (json encoded array with variables 'username' and 'address')

update 2:

each page now has a link to view the address on block explorer, plus links to the api options.

update 3:

added an xml option also:

http://payb.tc/donate/xml
Pages:
Jump to: