Module: Fnsapi::KktConcern
- Included in:
- GetMessageService, KktService
- Defined in:
- lib/fnsapi/kkt_concern.rb
Instance Method Summary collapse
Instance Method Details
#auth_params(user_id) ⇒ Object
5 6 7 8 9 |
# File 'lib/fnsapi/kkt_concern.rb', line 5 def auth_params(user_id) refresh_credentials! unless token { headers: { 'FNS-OpenApi-Token' => token, 'FNS-OpenApi-UserToken' => Base64.strict_encode64(user_id.to_s) } } end |
#refresh_credentials! ⇒ Object
15 16 17 |
# File 'lib/fnsapi/kkt_concern.rb', line 15 def refresh_credentials! AuthService.new.reset_credentials end |
#uri ⇒ Object
11 12 13 |
# File 'lib/fnsapi/kkt_concern.rb', line 11 def uri '/open-api/ais3/KktService/0.1?wsdl' end |