amazon-fps
DESCRIPTION
Provides a simple wrapper around the Amazon FPS SOAP web service.
FEATURES/PROBLEMS
Supports all features in the WSDL from Amazon:
http://developer.amazonwebservices.com/connect/kbcategory.jspa?categoryID=125
SYNOPSIS
@credentials = {
'AWSAccessKeyId' => 'abc123'
}
@options = {
# NOTE: change this to your cert subject as per
# `openssl x509 -in aws.cer -subject`
:subject => '/C=US/O=Amazon.com/OU=AWS-Developers/CN=bogus'
}
@fps = AmazonFPS.new(@credentials, @options)
res = @fps.getAccountBalance(AmazonFPS::GetAccountBalance.new).getAccountBalanceResultREQUIREMENTS
Tested On:
- soap4r (1.5.8)
- wss4r (0.5)
- ruby 1.8.6 (2008-03-03 patchlevel 114) universal-darwin9.0
Obtaining the Software
Check out a copy from subversion or install the gem.
Install Gem
$ sudo gem install amazon-fps-ruby
Download Source
$ svn checkout \
http://amazon-fps-ruby.googlecode.com/svn/trunk/ \
amazon-fps-ruby-read-onlyInstall Prerequisites
- soap4r (1.5.8)
- wss4r (0.5)
- ruby 1.8.6 (2008-03-03 patchlevel 114) universal-darwin9.0
Set up Keys and Certs
- Copy your AWS private key and AWS certificate to the certs/ directory
- Determine the subject for your AWS certificate
$ openssl x509 -in aws.cer -subject
LICENSE
(The MIT License)
Copyright (c) 2008
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.