I've just uploaded libbetavine-ruby, a Debian package for using the API with Ruby. Debian and Ubuntu users have the choice of installing Ruby libraries using Ruby's Gem or by using apt-get. There are various thoughts and opinion over which is the better solution, both have their drawbacks. Something which I thought would be a relatively painless process ended up taking hours!
The package depends of ruby1.8 and libjson-ruby. You should be able to install the package using dpkg -i libbetavine-ruby*
This has been tested with Ubuntu Feisty.
You may experience problems with BetavineAPI.rb not being found in the earlier examples. Change the require 'lib/BetavineAPI.rb' to be require 'BetavineAPI.rb'.
The examples are included within the package, but I've also made them available for seperate downloads.
I've just uploaded a gem file which includes the Ruby library and the 4 examples. To install use the command:
gem install <package location>
It requires the JSON Gem to also be installed.
This is probably the easiest method to get started using the library.
Hi,
In this project you will find a Ruby wrapper for the Vodafone Betavine API. There are also several example applications.
To get started download the BetavineAPIrb (BetavineAPI.rb) and place it in the same folder as your Ruby application. I hope to provide Gem packages in the future.
Have a look at Example1 (Example1.rb) to see how to use the wrapper.
Any questions, just raise them in the API Forum and I'll try and answer them.
Have fun,
Owen Griffin (snig178)