Bitcoin Forum
May 13, 2024, 09:08:01 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Progress bar/Coinbase API.  (Read 569 times)
escrow.ms (OP)
Legendary
*
Offline Offline

Activity: 1274
Merit: 1004


View Profile
February 19, 2014, 11:19:55 AM
 #1

How can i show this (% thing) by using coinbase api (https://coinbase.com/api/doc/1.0/accounts/balance.html) and a set goal.



For example: Goal amount is 1 BTC, How can i show how much % funds i have received in my account.
1715591281
Hero Member
*
Offline Offline

Posts: 1715591281

View Profile Personal Message (Offline)

Ignore
1715591281
Reply with quote  #2

1715591281
Report to moderator
1715591281
Hero Member
*
Offline Offline

Posts: 1715591281

View Profile Personal Message (Offline)

Ignore
1715591281
Reply with quote  #2

1715591281
Report to moderator
If you see garbage posts (off-topic, trolling, spam, no point, etc.), use the "report to moderator" links. All reports are investigated, though you will rarely be contacted about your reports.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715591281
Hero Member
*
Offline Offline

Posts: 1715591281

View Profile Personal Message (Offline)

Ignore
1715591281
Reply with quote  #2

1715591281
Report to moderator
1715591281
Hero Member
*
Offline Offline

Posts: 1715591281

View Profile Personal Message (Offline)

Ignore
1715591281
Reply with quote  #2

1715591281
Report to moderator
1715591281
Hero Member
*
Offline Offline

Posts: 1715591281

View Profile Personal Message (Offline)

Ignore
1715591281
Reply with quote  #2

1715591281
Report to moderator
elbandi
Hero Member
*****
Offline Offline

Activity: 525
Merit: 529


View Profile
February 19, 2014, 02:18:50 PM
 #2

$balance = getbalance(...);
$percent = $balance / $needmoney * 100;
BitCoinDream
Legendary
*
Offline Offline

Activity: 2324
Merit: 1204

The revolution will be digital


View Profile
February 19, 2014, 06:22:07 PM
 #3

How can i show this (% thing) by using coinbase api (https://coinbase.com/api/doc/1.0/accounts/balance.html) and a set goal.



For example: Goal amount is 1 BTC, How can i show how much % funds i have received in my account.


avoid using 3rd party api from coinbase or blockchain for long term projects. they may suspend u anytime for multiple requests @ their site in short span of time fearing DDOS. if u r sure, u wont hit them every now and then, its fine.

escrow.ms (OP)
Legendary
*
Offline Offline

Activity: 1274
Merit: 1004


View Profile
February 19, 2014, 07:21:58 PM
 #4

Thank you elbandi, I have Found this http://pastie.org/pastes/8318722#18,21  

Thanks again.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!