Pages:
Author

Topic: How to build a Hive app (introducing the Hive app API) (Read 28639 times)

sr. member
Activity: 378
Merit: 325
hivewallet.com
To app developers:

Yes, Hive Web will soon support apps. We are not dropping them.
sr. member
Activity: 378
Merit: 325
hivewallet.com
The integrated app store app has been updated to reflect some Android changes.
sr. member
Activity: 378
Merit: 325
hivewallet.com
full member
Activity: 145
Merit: 100
┗(°0°)┛
Hi,

a few new things we’ve added to the API:

  • bitcoin.installApp - can be used to create “app store” kind of apps that let you install other apps from a given set
  • bitcoin.apiVersionMajor/apiVersionMinor - returns current API version (currently 0.1)
  • bitcoin.getSystemInfo - added availableCurrencies list, and preferredBitcoinFormat and preferredCurrency that return user’s selected Bitcoin unit and fiat currency
  • a few methods for parsing and formatting amounts, see https://github.com/hivewallet/hive-osx/wiki/API#wiki-formatting-and-parsing

Also, the same-origin policy hack is disabled now, so XHR requests to external domains will not work unless the server supports CORS or JSONP - use bitcoin.makeRequest in those cases.
newbie
Activity: 12
Merit: 0
Announcing Hive Toolbelt (https://github.com/hivewallet/toolbelt) - Building Hive apps made easy.

You can install it with `gem install hive-toolbelt`

Currently the toolbelt provides two useful commands:
1) `hive init` # walks you through scaffolding a Hive app
2) `hive package` # creates a .hiveapp bundle from specified or current working directory

Find out more on github: https://github.com/hivewallet/toolbelt. Issues and pull requests are welcome Smiley
newbie
Activity: 3
Merit: 0
Thanks for the great tutorial.. Much appreciated!  Cheesy
full member
Activity: 145
Merit: 100
┗(°0°)┛
full member
Activity: 145
Merit: 100
┗(°0°)┛
We've added 4 new apps in Hive 1.0 released today:

1) The new Bitstamp app - see above (we've added a detailed wizard/tutorial for creating an API key, since even I had problems with this process...).

2) Coinbase app - you can send and receive money from your Coinbase wallet (including easy transfer between Hive and Coinbase); no buying/selling yet.



3) BitPremier app:



4) Prepaid Mobile Recharge app by Umbrel (mobile client of http://spend-a-bit.com):


full member
Activity: 142
Merit: 100
Hive/Ethereum
Sean's Outpost and the Support Hive have been updated to use our new formatting & parsing functions and respect the user's BTC/mBTC/uBTC unit preference.

 Shocked
full member
Activity: 142
Merit: 100
Hive/Ethereum
The Sean's Output app has been updated to make use of built-in currency exchange rates, removing the need to interface with BitPay directly.

The updated app can be download from https://github.com/hivewallet/hiveapp-seansoutpost/releases/tag/1.4 and if you're a developer interested in using exchange rates in your app, the API documentation is here.
full member
Activity: 142
Merit: 100
Hive/Ethereum
I've been working on a new Bitstamp app in light of both their and our API changes. It's a fairly simple HTML/jQuery app with Bootstrap styling--no compilers/preprocessors are used, so it should be very easy to inspect to design your own app using this as an example. It makes use of several common Hive Wallet API features including: send bitcoins, get user address, and get user locale. Additionally, this is the first app to make use of our new storage API so it will remember your API secret and automatically log you in to your account.

You can follow the project on GitHub at https://github.com/tgerring/hiveapp-bitstamptrader and here's a screenshot (though already outdated):

sr. member
Activity: 378
Merit: 325
hivewallet.com
greenek that's looking really nice!

Does it allow at the moment sending purchased Bitcoin directly to your local Hive wallet? Also we should probably be careful to always say "Coinbase balance" when showing another balance. And that balance should respect the local BTC/mBTC/uBTC setting.
newbie
Activity: 3
Merit: 0
Hi there!

First update for Coinbase bundle is here, including currency conversion and transactions history.

Download here: github.com/hivewallet/hiveapp-coinbase

http://cl.ly/image/452h0x29421S/Zrzut%20ekranu%202013-12-10%20o%2022.02.01.png
full member
Activity: 145
Merit: 100
┗(°0°)┛
  • getSystemInfo - it now includes locale and preferred currency info; the version and build number properties I mentioned before were also moved there (sorry...)
  • updateExchangeRate - you can now get currency exchange rates (e.g. USD/BTC) inside apps
  • makeRequest - this should be used to bypass origin policy if a web API doesn't support JSONP or CORS (again, please don't rely on the fact that Hive is currently disabling the origin policy check)
This is now available in the latest build on Sparkle and on grabhive.com.

Oh, and one more thing: links with target="_blank" will now open in an external browser instead of just being ignored as before.
sr. member
Activity: 378
Merit: 325
hivewallet.com
Any plans to develope a Windows version of hive? I am interested in trying it out and I would be willing to do some beta testing if you needed it.

Hi Desensitizer! Only if an exceptional Windows developer steps up to help us. It's not something we really know anything about, unfortunately.
sr. member
Activity: 378
Merit: 325
hivewallet.com
what is the user base for hive now?

Since we are warning people at every turn to be careful with our wallet until it leaves "alpha" stage, there are probably not a lot. However, we will be peeling off those labels very soon and making a wider push.

Still, we do get emails every day asking for support, and we see in those that a lot of people are totally ignoring our warnings and sending thousands of dollars worth of Bitcoin using Hive. We don't have any kind of "calling home" feature to tally data, so we cannot be too specific just yet.
full member
Activity: 154
Merit: 100
Ice-Dice.com | Massive Referral Bonus!
what is the user base for hive now?
full member
Activity: 145
Merit: 100
┗(°0°)┛
Three more updates about the API:

  • getSystemInfo - it now includes locale and preferred currency info; the version and build number properties I mentioned before were also moved there (sorry...)
  • updateExchangeRate - you can now get currency exchange rates (e.g. USD/BTC) inside apps
  • makeRequest - this should be used to bypass origin policy if a web API doesn't support JSONP or CORS (again, please don't rely on the fact that Hive is currently disabling the origin policy check)

These changes will be available in the next build.
newbie
Activity: 42
Merit: 0
Any plans to develope a Windows version of hive? I am interested in trying it out and I would be willing to do some beta testing if you needed it.
legendary
Activity: 965
Merit: 1000
To be honest: I have no clue, how hive works...  Grin

But the btc-e stuff is dirt simple. It's just 4 or 5 lines of js with some jsquery mobile and some rough html to display the tables.

The most interesting part would be a nice graph with candles etc. But I never managed to get there. I code java most of the time
and can't even read those candle graphs, so I wrote me my own UI:

https://i.imgur.com/MqHfF.jpg

So I guess, I won't be much help for you...  Sad
Pages:
Jump to: