kufu / kiji Goto Github PK
View Code? Open in Web Editor NEWe-Gov 外部連携API 連携 gem
License: MIT License
e-Gov 外部連携API 連携 gem
License: MIT License
Hello there.
I'm having this problem.
Is there anything wrong?
client = Kiji::Client.new do |c|
c.software_id = ENV['EGOV_SOFTWARE_ID']
c.api_end_point = ENV['EGOV_API_END_POINT']
# 証明書 & 秘密鍵の attach
c.cert = p12.certificate
c.private_key = p12.key
end
# 利用者認証(Access Key の取得 & 設定)
response = client.login("REGISTERED_USER_ID")
xml = Nokogiri::XML(response.body)
client.access_key = xml.at_xpath('//AccessKey').text
別 gem のが良いか?
I executed bundle exec rspec
after bundle install
. So many RSpec's was failed by bad URI
URI::InvalidURIError:
bad URI(is not URI?): https://<EGOV-SOFTWARE-ID>:<EGOV-BASIC-AUTH-PASSWORD>@api2.kn.e-gov.go.jp/shinsei/1/access/payment/9002015000243934
I think fixture's http_interactions.request.uri
has a syntax error for Ruby's URI module.
How did you testing examples with RSpec? If you mind, could you write here?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.