Class: VoiceTel::Resources::Authentication
- Defined in:
- lib/voicetel/resources/authentication.rb
Overview
AuthenticationService — SIP/HTTP authentication settings (mode + password).
auth_type values: 0 = Digest, 1 = IP Auth, 2 = Digest OR IP, 3 = Digest AND IP.
Constant Summary collapse
- AUTH_TYPE_DIGEST =
0- AUTH_TYPE_IP =
1- AUTH_TYPE_DIGEST_OR_IP =
2- AUTH_TYPE_DIGEST_AND_IP =
3
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from VoiceTel::Resources::Base
Instance Method Details
#get ⇒ Object
16 17 18 |
# File 'lib/voicetel/resources/authentication.rb', line 16 def get @transport.request(:get, "/v2.2/auth") end |
#update(body) ⇒ Object
20 21 22 |
# File 'lib/voicetel/resources/authentication.rb', line 20 def update(body) @transport.request(:put, "/v2.2/auth", body: body) end |