没有任何数据可供显示
开源项目社区 | 当前位置 : |
|
www.trustie.net/open_source_projects | 主页 > 开源项目社区 > amazon-fps-ruby |
amazon-fps-ruby
|
0 | 0 | 18 |
贡献者 | 讨论 | 代码提交 |
amazon-fpshttp://code.google.com/p/amazon-fps-ruby DESCRIPTIONProvides a simple wrapper around the Amazon FPS SOAP web service.
FEATURES/PROBLEMSSupports 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).getAccountBalanceResultREQUIREMENTSTested On:
soap4r (1.5.8) wss4r (0.5) ruby 1.8.6 (2008-03-03 patchlevel 114) universal-darwin9.0 Obtaining the SoftwareCheck out a copy from subversion or install the gem.
Install Gem $ sudo gem install amazon-fps-rubyDownload Source $ svn checkout \
http://amazon-fps-ruby.googlecode.com/svn/trunk/ \
amazon-fps-ruby-read-onlyInstall Prerequisitessoap4r (1.5.8) wss4r (0.5) ruby 1.8.6 (2008-03-03 patchlevel 114) universal-darwin9.0 Set up Keys and CertsCopy your AWS private key and AWS certificate to the certs/ directory Determine the subject for your AWS certificate $ openssl x509 -in aws.cer -subjectLICENSE(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.