bandwidth-sdk 3.9.0 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/lib/bandwidth/client.rb +2 -0
  4. data/lib/bandwidth/configuration.rb +23 -4
  5. data/lib/bandwidth/http/api_response.rb +2 -0
  6. data/lib/bandwidth/http/faraday_client.rb +9 -2
  7. data/lib/bandwidth/messaging_lib/messaging/client.rb +2 -0
  8. data/lib/bandwidth/messaging_lib/messaging/controllers/api_controller.rb +8 -8
  9. data/lib/bandwidth/messaging_lib/messaging/controllers/base_controller.rb +1 -1
  10. data/lib/bandwidth/two_factor_auth_lib/two_factor_auth/client.rb +2 -0
  11. data/lib/bandwidth/two_factor_auth_lib/two_factor_auth/controllers/api_controller.rb +3 -3
  12. data/lib/bandwidth/two_factor_auth_lib/two_factor_auth/controllers/base_controller.rb +1 -1
  13. data/lib/bandwidth/two_factor_auth_lib/two_factor_auth/models/two_factor_verify_request_schema.rb +0 -19
  14. data/lib/bandwidth/voice_lib/bxml/verbs/bridge.rb +7 -1
  15. data/lib/bandwidth/voice_lib/bxml/verbs/conference.rb +5 -1
  16. data/lib/bandwidth/voice_lib/bxml/verbs/gather.rb +5 -1
  17. data/lib/bandwidth/voice_lib/bxml/verbs/phone_number.rb +5 -1
  18. data/lib/bandwidth/voice_lib/bxml/verbs/record.rb +5 -1
  19. data/lib/bandwidth/voice_lib/bxml/verbs/redirect.rb +5 -1
  20. data/lib/bandwidth/voice_lib/bxml/verbs/ring.rb +15 -0
  21. data/lib/bandwidth/voice_lib/bxml/verbs/sip_uri.rb +25 -0
  22. data/lib/bandwidth/voice_lib/bxml/verbs/start_gather.rb +20 -0
  23. data/lib/bandwidth/voice_lib/bxml/verbs/stop_gather.rb +14 -0
  24. data/lib/bandwidth/voice_lib/bxml/verbs/tag.rb +13 -0
  25. data/lib/bandwidth/voice_lib/bxml/verbs/transfer.rb +14 -3
  26. data/lib/bandwidth/voice_lib/voice/client.rb +2 -0
  27. data/lib/bandwidth/voice_lib/voice/controllers/api_controller.rb +51 -52
  28. data/lib/bandwidth/voice_lib/voice/controllers/base_controller.rb +1 -1
  29. data/lib/bandwidth/voice_lib/voice/models/answer_fallback_method_enum.rb +17 -0
  30. data/lib/bandwidth/voice_lib/voice/models/api_call_response.rb +45 -0
  31. data/lib/bandwidth/voice_lib/voice/models/api_create_call_request.rb +117 -12
  32. data/lib/bandwidth/voice_lib/voice/models/api_modify_call_request.rb +36 -0
  33. data/lib/bandwidth/voice_lib/voice/models/api_modify_conference_request.rb +107 -0
  34. data/lib/bandwidth/voice_lib/voice/models/api_transcribe_recording_request.rb +11 -2
  35. data/lib/bandwidth/voice_lib/voice/models/call_engine_modify_conference_request.rb +38 -2
  36. data/lib/bandwidth/voice_lib/voice/models/conference_detail.rb +7 -4
  37. data/lib/bandwidth/voice_lib/voice/models/conference_recording_metadata_response.rb +5 -4
  38. data/lib/bandwidth/voice_lib/voice/models/recording_metadata_response.rb +5 -4
  39. data/lib/bandwidth/voice_lib/voice/models/redirect_fallback_method_enum.rb +17 -0
  40. data/lib/bandwidth/voice_lib/voice.rb +3 -1
  41. data/lib/bandwidth/web_rtc_lib/utils/web_rtc_transfer.rb +13 -0
  42. data/lib/bandwidth/web_rtc_lib/web_rtc/client.rb +2 -0
  43. data/lib/bandwidth/web_rtc_lib/web_rtc/controllers/api_controller.rb +24 -24
  44. data/lib/bandwidth/web_rtc_lib/web_rtc/controllers/base_controller.rb +1 -1
  45. data/lib/bandwidth.rb +24 -1
  46. metadata +13 -4
@@ -14,10 +14,18 @@ module Bandwidth
14
14
  # @return [String]
15
15
  attr_accessor :redirect_url
16
16
 
17
+ # TODO: Write general description for this method
18
+ # @return [String]
19
+ attr_accessor :redirect_fallback_url
20
+
17
21
  # TODO: Write general description for this method
18
22
  # @return [RedirectMethodEnum]
19
23
  attr_accessor :redirect_method
20
24
 
25
+ # TODO: Write general description for this method
26
+ # @return [RedirectFallbackMethodEnum]
27
+ attr_accessor :redirect_fallback_method
28
+
21
29
  # TODO: Write general description for this method
22
30
  # @return [String]
23
31
  attr_accessor :username
@@ -26,6 +34,14 @@ module Bandwidth
26
34
  # @return [String]
27
35
  attr_accessor :password
28
36
 
37
+ # TODO: Write general description for this method
38
+ # @return [String]
39
+ attr_accessor :fallback_username
40
+
41
+ # TODO: Write general description for this method
42
+ # @return [String]
43
+ attr_accessor :fallback_password
44
+
29
45
  # TODO: Write general description for this method
30
46
  # @return [String]
31
47
  attr_accessor :tag
@@ -35,24 +51,36 @@ module Bandwidth
35
51
  @_hash = {} if @_hash.nil?
36
52
  @_hash['state'] = 'state'
37
53
  @_hash['redirect_url'] = 'redirectUrl'
54
+ @_hash['redirect_fallback_url'] = 'redirectFallbackUrl'
38
55
  @_hash['redirect_method'] = 'redirectMethod'
56
+ @_hash['redirect_fallback_method'] = 'redirectFallbackMethod'
39
57
  @_hash['username'] = 'username'
40
58
  @_hash['password'] = 'password'
59
+ @_hash['fallback_username'] = 'fallbackUsername'
60
+ @_hash['fallback_password'] = 'fallbackPassword'
41
61
  @_hash['tag'] = 'tag'
42
62
  @_hash
43
63
  end
44
64
 
45
65
  def initialize(redirect_url = nil,
46
66
  state = nil,
67
+ redirect_fallback_url = nil,
47
68
  redirect_method = nil,
69
+ redirect_fallback_method = nil,
48
70
  username = nil,
49
71
  password = nil,
72
+ fallback_username = nil,
73
+ fallback_password = nil,
50
74
  tag = nil)
51
75
  @state = state
52
76
  @redirect_url = redirect_url
77
+ @redirect_fallback_url = redirect_fallback_url
53
78
  @redirect_method = redirect_method
79
+ @redirect_fallback_method = redirect_fallback_method
54
80
  @username = username
55
81
  @password = password
82
+ @fallback_username = fallback_username
83
+ @fallback_password = fallback_password
56
84
  @tag = tag
57
85
  end
58
86
 
@@ -63,17 +91,25 @@ module Bandwidth
63
91
  # Extract variables from the hash.
64
92
  redirect_url = hash['redirectUrl']
65
93
  state = hash['state']
94
+ redirect_fallback_url = hash['redirectFallbackUrl']
66
95
  redirect_method = hash['redirectMethod']
96
+ redirect_fallback_method = hash['redirectFallbackMethod']
67
97
  username = hash['username']
68
98
  password = hash['password']
99
+ fallback_username = hash['fallbackUsername']
100
+ fallback_password = hash['fallbackPassword']
69
101
  tag = hash['tag']
70
102
 
71
103
  # Create object from extracted values.
72
104
  ApiModifyCallRequest.new(redirect_url,
73
105
  state,
106
+ redirect_fallback_url,
74
107
  redirect_method,
108
+ redirect_fallback_method,
75
109
  username,
76
110
  password,
111
+ fallback_username,
112
+ fallback_password,
77
113
  tag)
78
114
  end
79
115
  end
@@ -0,0 +1,107 @@
1
+ # bandwidth
2
+ #
3
+ # This file was automatically generated by APIMATIC v2.0
4
+ # ( https://apimatic.io ).
5
+
6
+ module Bandwidth
7
+ # ApiModifyConferenceRequest Model.
8
+ class ApiModifyConferenceRequest < BaseModel
9
+ # TODO: Write general description for this method
10
+ # @return [StatusEnum]
11
+ attr_accessor :status
12
+
13
+ # TODO: Write general description for this method
14
+ # @return [String]
15
+ attr_accessor :redirect_url
16
+
17
+ # TODO: Write general description for this method
18
+ # @return [String]
19
+ attr_accessor :redirect_fallback_url
20
+
21
+ # TODO: Write general description for this method
22
+ # @return [RedirectMethodEnum]
23
+ attr_accessor :redirect_method
24
+
25
+ # TODO: Write general description for this method
26
+ # @return [RedirectFallbackMethodEnum]
27
+ attr_accessor :redirect_fallback_method
28
+
29
+ # TODO: Write general description for this method
30
+ # @return [String]
31
+ attr_accessor :username
32
+
33
+ # TODO: Write general description for this method
34
+ # @return [String]
35
+ attr_accessor :password
36
+
37
+ # TODO: Write general description for this method
38
+ # @return [String]
39
+ attr_accessor :fallback_username
40
+
41
+ # TODO: Write general description for this method
42
+ # @return [String]
43
+ attr_accessor :fallback_password
44
+
45
+ # A mapping from model property names to API property names.
46
+ def self.names
47
+ @_hash = {} if @_hash.nil?
48
+ @_hash['status'] = 'status'
49
+ @_hash['redirect_url'] = 'redirectUrl'
50
+ @_hash['redirect_fallback_url'] = 'redirectFallbackUrl'
51
+ @_hash['redirect_method'] = 'redirectMethod'
52
+ @_hash['redirect_fallback_method'] = 'redirectFallbackMethod'
53
+ @_hash['username'] = 'username'
54
+ @_hash['password'] = 'password'
55
+ @_hash['fallback_username'] = 'fallbackUsername'
56
+ @_hash['fallback_password'] = 'fallbackPassword'
57
+ @_hash
58
+ end
59
+
60
+ def initialize(status = nil,
61
+ redirect_url = nil,
62
+ redirect_fallback_url = nil,
63
+ redirect_method = nil,
64
+ redirect_fallback_method = nil,
65
+ username = nil,
66
+ password = nil,
67
+ fallback_username = nil,
68
+ fallback_password = nil)
69
+ @status = status
70
+ @redirect_url = redirect_url
71
+ @redirect_fallback_url = redirect_fallback_url
72
+ @redirect_method = redirect_method
73
+ @redirect_fallback_method = redirect_fallback_method
74
+ @username = username
75
+ @password = password
76
+ @fallback_username = fallback_username
77
+ @fallback_password = fallback_password
78
+ end
79
+
80
+ # Creates an instance of the object from a hash.
81
+ def self.from_hash(hash)
82
+ return nil unless hash
83
+
84
+ # Extract variables from the hash.
85
+ status = hash['status']
86
+ redirect_url = hash['redirectUrl']
87
+ redirect_fallback_url = hash['redirectFallbackUrl']
88
+ redirect_method = hash['redirectMethod']
89
+ redirect_fallback_method = hash['redirectFallbackMethod']
90
+ username = hash['username']
91
+ password = hash['password']
92
+ fallback_username = hash['fallbackUsername']
93
+ fallback_password = hash['fallbackPassword']
94
+
95
+ # Create object from extracted values.
96
+ ApiModifyConferenceRequest.new(status,
97
+ redirect_url,
98
+ redirect_fallback_url,
99
+ redirect_method,
100
+ redirect_fallback_method,
101
+ username,
102
+ password,
103
+ fallback_username,
104
+ fallback_password)
105
+ end
106
+ end
107
+ end
@@ -26,6 +26,10 @@ module Bandwidth
26
26
  # @return [String]
27
27
  attr_accessor :tag
28
28
 
29
+ # TODO: Write general description for this method
30
+ # @return [Float]
31
+ attr_accessor :callback_timeout
32
+
29
33
  # A mapping from model property names to API property names.
30
34
  def self.names
31
35
  @_hash = {} if @_hash.nil?
@@ -34,6 +38,7 @@ module Bandwidth
34
38
  @_hash['username'] = 'username'
35
39
  @_hash['password'] = 'password'
36
40
  @_hash['tag'] = 'tag'
41
+ @_hash['callback_timeout'] = 'callbackTimeout'
37
42
  @_hash
38
43
  end
39
44
 
@@ -41,12 +46,14 @@ module Bandwidth
41
46
  callback_method = nil,
42
47
  username = nil,
43
48
  password = nil,
44
- tag = nil)
49
+ tag = nil,
50
+ callback_timeout = nil)
45
51
  @callback_url = callback_url
46
52
  @callback_method = callback_method
47
53
  @username = username
48
54
  @password = password
49
55
  @tag = tag
56
+ @callback_timeout = callback_timeout
50
57
  end
51
58
 
52
59
  # Creates an instance of the object from a hash.
@@ -59,13 +66,15 @@ module Bandwidth
59
66
  username = hash['username']
60
67
  password = hash['password']
61
68
  tag = hash['tag']
69
+ callback_timeout = hash['callbackTimeout']
62
70
 
63
71
  # Create object from extracted values.
64
72
  ApiTranscribeRecordingRequest.new(callback_url,
65
73
  callback_method,
66
74
  username,
67
75
  password,
68
- tag)
76
+ tag,
77
+ callback_timeout)
69
78
  end
70
79
  end
71
80
  end
@@ -14,10 +14,18 @@ module Bandwidth
14
14
  # @return [String]
15
15
  attr_accessor :redirect_url
16
16
 
17
+ # TODO: Write general description for this method
18
+ # @return [String]
19
+ attr_accessor :redirect_fallback_url
20
+
17
21
  # TODO: Write general description for this method
18
22
  # @return [RedirectMethodEnum]
19
23
  attr_accessor :redirect_method
20
24
 
25
+ # TODO: Write general description for this method
26
+ # @return [RedirectFallbackMethodEnum]
27
+ attr_accessor :redirect_fallback_method
28
+
21
29
  # TODO: Write general description for this method
22
30
  # @return [String]
23
31
  attr_accessor :username
@@ -26,27 +34,47 @@ module Bandwidth
26
34
  # @return [String]
27
35
  attr_accessor :password
28
36
 
37
+ # TODO: Write general description for this method
38
+ # @return [String]
39
+ attr_accessor :fallback_username
40
+
41
+ # TODO: Write general description for this method
42
+ # @return [String]
43
+ attr_accessor :fallback_password
44
+
29
45
  # A mapping from model property names to API property names.
30
46
  def self.names
31
47
  @_hash = {} if @_hash.nil?
32
48
  @_hash['status'] = 'status'
33
49
  @_hash['redirect_url'] = 'redirectUrl'
50
+ @_hash['redirect_fallback_url'] = 'redirectFallbackUrl'
34
51
  @_hash['redirect_method'] = 'redirectMethod'
52
+ @_hash['redirect_fallback_method'] = 'redirectFallbackMethod'
35
53
  @_hash['username'] = 'username'
36
54
  @_hash['password'] = 'password'
55
+ @_hash['fallback_username'] = 'fallbackUsername'
56
+ @_hash['fallback_password'] = 'fallbackPassword'
37
57
  @_hash
38
58
  end
39
59
 
40
60
  def initialize(redirect_url = nil,
41
61
  status = nil,
62
+ redirect_fallback_url = nil,
42
63
  redirect_method = nil,
64
+ redirect_fallback_method = nil,
43
65
  username = nil,
44
- password = nil)
66
+ password = nil,
67
+ fallback_username = nil,
68
+ fallback_password = nil)
45
69
  @status = status
46
70
  @redirect_url = redirect_url
71
+ @redirect_fallback_url = redirect_fallback_url
47
72
  @redirect_method = redirect_method
73
+ @redirect_fallback_method = redirect_fallback_method
48
74
  @username = username
49
75
  @password = password
76
+ @fallback_username = fallback_username
77
+ @fallback_password = fallback_password
50
78
  end
51
79
 
52
80
  # Creates an instance of the object from a hash.
@@ -56,16 +84,24 @@ module Bandwidth
56
84
  # Extract variables from the hash.
57
85
  redirect_url = hash['redirectUrl']
58
86
  status = hash['status']
87
+ redirect_fallback_url = hash['redirectFallbackUrl']
59
88
  redirect_method = hash['redirectMethod']
89
+ redirect_fallback_method = hash['redirectFallbackMethod']
60
90
  username = hash['username']
61
91
  password = hash['password']
92
+ fallback_username = hash['fallbackUsername']
93
+ fallback_password = hash['fallbackPassword']
62
94
 
63
95
  # Create object from extracted values.
64
96
  CallEngineModifyConferenceRequest.new(redirect_url,
65
97
  status,
98
+ redirect_fallback_url,
66
99
  redirect_method,
100
+ redirect_fallback_method,
67
101
  username,
68
- password)
102
+ password,
103
+ fallback_username,
104
+ fallback_password)
69
105
  end
70
106
  end
71
107
  end
@@ -3,6 +3,7 @@
3
3
  # This file was automatically generated by APIMATIC v2.0
4
4
  # ( https://apimatic.io ).
5
5
 
6
+ require 'date'
6
7
  module Bandwidth
7
8
  # ConferenceDetail Model.
8
9
  class ConferenceDetail < BaseModel
@@ -15,11 +16,11 @@ module Bandwidth
15
16
  attr_accessor :name
16
17
 
17
18
  # TODO: Write general description for this method
18
- # @return [Long]
19
+ # @return [DateTime]
19
20
  attr_accessor :created_time
20
21
 
21
22
  # TODO: Write general description for this method
22
- # @return [Long]
23
+ # @return [DateTime]
23
24
  attr_accessor :completed_time
24
25
 
25
26
  # TODO: Write general description for this method
@@ -77,8 +78,10 @@ module Bandwidth
77
78
  # Extract variables from the hash.
78
79
  id = hash['id']
79
80
  name = hash['name']
80
- created_time = hash['createdTime']
81
- completed_time = hash['completedTime']
81
+ created_time = APIHelper.rfc3339(hash['createdTime']) if
82
+ hash['createdTime']
83
+ completed_time = APIHelper.rfc3339(hash['completedTime']) if
84
+ hash['completedTime']
82
85
  conference_event_url = hash['conferenceEventUrl']
83
86
  conference_event_method = hash['conferenceEventMethod']
84
87
  tag = hash['tag']
@@ -3,6 +3,7 @@
3
3
  # This file was automatically generated by APIMATIC v2.0
4
4
  # ( https://apimatic.io ).
5
5
 
6
+ require 'date'
6
7
  module Bandwidth
7
8
  # ConferenceRecordingMetadataResponse Model.
8
9
  class ConferenceRecordingMetadataResponse < BaseModel
@@ -31,11 +32,11 @@ module Bandwidth
31
32
  attr_accessor :channels
32
33
 
33
34
  # Format is ISO-8601
34
- # @return [Long]
35
+ # @return [DateTime]
35
36
  attr_accessor :start_time
36
37
 
37
38
  # Format is ISO-8601
38
- # @return [Long]
39
+ # @return [DateTime]
39
40
  attr_accessor :end_time
40
41
 
41
42
  # Format is ISO-8601
@@ -102,8 +103,8 @@ module Bandwidth
102
103
  recording_id = hash['recordingId']
103
104
  duration = hash['duration']
104
105
  channels = hash['channels']
105
- start_time = hash['startTime']
106
- end_time = hash['endTime']
106
+ start_time = APIHelper.rfc3339(hash['startTime']) if hash['startTime']
107
+ end_time = APIHelper.rfc3339(hash['endTime']) if hash['endTime']
107
108
  file_format = hash['fileFormat']
108
109
  status = hash['status']
109
110
  media_url = hash['mediaUrl']
@@ -3,6 +3,7 @@
3
3
  # This file was automatically generated by APIMATIC v2.0
4
4
  # ( https://apimatic.io ).
5
5
 
6
+ require 'date'
6
7
  module Bandwidth
7
8
  # RecordingMetadataResponse Model.
8
9
  class RecordingMetadataResponse < BaseModel
@@ -55,11 +56,11 @@ module Bandwidth
55
56
  attr_accessor :channels
56
57
 
57
58
  # Format is ISO-8601
58
- # @return [Long]
59
+ # @return [DateTime]
59
60
  attr_accessor :start_time
60
61
 
61
62
  # Format is ISO-8601
62
- # @return [Long]
63
+ # @return [DateTime]
63
64
  attr_accessor :end_time
64
65
 
65
66
  # Format is ISO-8601
@@ -157,8 +158,8 @@ module Bandwidth
157
158
  duration = hash['duration']
158
159
  direction = hash['direction']
159
160
  channels = hash['channels']
160
- start_time = hash['startTime']
161
- end_time = hash['endTime']
161
+ start_time = APIHelper.rfc3339(hash['startTime']) if hash['startTime']
162
+ end_time = APIHelper.rfc3339(hash['endTime']) if hash['endTime']
162
163
  file_format = hash['fileFormat']
163
164
  status = hash['status']
164
165
  media_url = hash['mediaUrl']
@@ -0,0 +1,17 @@
1
+ # bandwidth
2
+ #
3
+ # This file was automatically generated by APIMATIC v2.0
4
+ # ( https://apimatic.io ).
5
+
6
+ module Bandwidth
7
+ # RedirectFallbackMethod.
8
+ class RedirectFallbackMethodEnum
9
+ REDIRECT_FALLBACK_METHOD_ENUM = [
10
+ # TODO: Write general description for POST
11
+ POST = 'POST'.freeze,
12
+
13
+ # TODO: Write general description for GET
14
+ GET = 'GET'.freeze
15
+ ].freeze
16
+ end
17
+ end
@@ -11,7 +11,7 @@ require_relative 'voice/models/api_call_response.rb'
11
11
  require_relative 'voice/models/api_call_state_response.rb'
12
12
  require_relative 'voice/models/api_create_call_request.rb'
13
13
  require_relative 'voice/models/api_modify_call_request.rb'
14
- require_relative 'voice/models/call_engine_modify_conference_request.rb'
14
+ require_relative 'voice/models/api_modify_conference_request.rb'
15
15
  require_relative 'voice/models/api_transcribe_recording_request.rb'
16
16
  require_relative 'voice/models/conference_detail.rb'
17
17
  require_relative 'voice/models/conference_member_detail.rb'
@@ -21,6 +21,7 @@ require_relative 'voice/models/recording_metadata_response.rb'
21
21
  require_relative 'voice/models/transcript.rb'
22
22
  require_relative 'voice/models/transcription.rb'
23
23
  require_relative 'voice/models/transcription_response.rb'
24
+ require_relative 'voice/models/answer_fallback_method_enum.rb'
24
25
  require_relative 'voice/models/answer_method_enum.rb'
25
26
  require_relative 'voice/models/callback_method_enum.rb'
26
27
  require_relative 'voice/models/conference_event_method_enum.rb'
@@ -28,6 +29,7 @@ require_relative 'voice/models/direction_enum.rb'
28
29
  require_relative 'voice/models/disconnect_cause_enum.rb'
29
30
  require_relative 'voice/models/disconnect_method_enum.rb'
30
31
  require_relative 'voice/models/file_format_enum.rb'
32
+ require_relative 'voice/models/redirect_fallback_method_enum.rb'
31
33
  require_relative 'voice/models/redirect_method_enum.rb'
32
34
  require_relative 'voice/models/state_enum.rb'
33
35
  require_relative 'voice/models/state1_enum.rb'
@@ -0,0 +1,13 @@
1
+ # web_rtc_transfer.rb
2
+ #
3
+ # Custom transfer BXML for WebRtc
4
+ #
5
+ # @copyright Bandwidth INC
6
+
7
+ module Bandwidth
8
+ module WebRtc
9
+ def generate_bxml(device_token, sip_uri="sip:sipx.webrtc.bandwidth.com:5060")
10
+ return '<?xml version="1.0" encoding="UTF-8"?><Response><Transfer><SipUri uui="%s;encoding=jwt">%s</SipUri></Transfer></Response>' % [device_token, sip_uri]
11
+ end
12
+ end
13
+ end
@@ -17,6 +17,7 @@ module Bandwidth
17
17
 
18
18
  def initialize(timeout: 60, max_retries: 0, retry_interval: 1,
19
19
  backoff_factor: 1, environment: Environment::PRODUCTION,
20
+ base_url: 'https://www.example.com',
20
21
  messaging_basic_auth_user_name: 'TODO: Replace',
21
22
  messaging_basic_auth_password: 'TODO: Replace',
22
23
  two_factor_auth_basic_auth_user_name: 'TODO: Replace',
@@ -32,6 +33,7 @@ module Bandwidth
32
33
  retry_interval: retry_interval,
33
34
  backoff_factor: backoff_factor,
34
35
  environment: environment,
36
+ base_url: base_url,
35
37
  messaging_basic_auth_user_name: messaging_basic_auth_user_name,
36
38
  messaging_basic_auth_password: messaging_basic_auth_password,
37
39
  two_factor_auth_basic_auth_user_name: two_factor_auth_basic_auth_user_name,
@@ -24,7 +24,7 @@ module WebRtc
24
24
  _query_builder << '/accounts/{accountId}/participants'
25
25
  _query_builder = APIHelper.append_url_with_template_parameters(
26
26
  _query_builder,
27
- 'accountId' => { 'value' => account_id, 'encode' => true }
27
+ 'accountId' => { 'value' => account_id, 'encode' => false }
28
28
  )
29
29
  _query_url = APIHelper.clean_url _query_builder
30
30
 
@@ -87,8 +87,8 @@ module WebRtc
87
87
  _query_builder << '/accounts/{accountId}/participants/{participantId}'
88
88
  _query_builder = APIHelper.append_url_with_template_parameters(
89
89
  _query_builder,
90
- 'accountId' => { 'value' => account_id, 'encode' => true },
91
- 'participantId' => { 'value' => participant_id, 'encode' => true }
90
+ 'accountId' => { 'value' => account_id, 'encode' => false },
91
+ 'participantId' => { 'value' => participant_id, 'encode' => false }
92
92
  )
93
93
  _query_url = APIHelper.clean_url _query_builder
94
94
 
@@ -148,8 +148,8 @@ module WebRtc
148
148
  _query_builder << '/accounts/{accountId}/participants/{participantId}'
149
149
  _query_builder = APIHelper.append_url_with_template_parameters(
150
150
  _query_builder,
151
- 'accountId' => { 'value' => account_id, 'encode' => true },
152
- 'participantId' => { 'value' => participant_id, 'encode' => true }
151
+ 'accountId' => { 'value' => account_id, 'encode' => false },
152
+ 'participantId' => { 'value' => participant_id, 'encode' => false }
153
153
  )
154
154
  _query_url = APIHelper.clean_url _query_builder
155
155
 
@@ -202,7 +202,7 @@ module WebRtc
202
202
  _query_builder << '/accounts/{accountId}/sessions'
203
203
  _query_builder = APIHelper.append_url_with_template_parameters(
204
204
  _query_builder,
205
- 'accountId' => { 'value' => account_id, 'encode' => true }
205
+ 'accountId' => { 'value' => account_id, 'encode' => false }
206
206
  )
207
207
  _query_url = APIHelper.clean_url _query_builder
208
208
 
@@ -264,8 +264,8 @@ module WebRtc
264
264
  _query_builder << '/accounts/{accountId}/sessions/{sessionId}'
265
265
  _query_builder = APIHelper.append_url_with_template_parameters(
266
266
  _query_builder,
267
- 'accountId' => { 'value' => account_id, 'encode' => true },
268
- 'sessionId' => { 'value' => session_id, 'encode' => true }
267
+ 'accountId' => { 'value' => account_id, 'encode' => false },
268
+ 'sessionId' => { 'value' => session_id, 'encode' => false }
269
269
  )
270
270
  _query_url = APIHelper.clean_url _query_builder
271
271
 
@@ -325,8 +325,8 @@ module WebRtc
325
325
  _query_builder << '/accounts/{accountId}/sessions/{sessionId}'
326
326
  _query_builder = APIHelper.append_url_with_template_parameters(
327
327
  _query_builder,
328
- 'accountId' => { 'value' => account_id, 'encode' => true },
329
- 'sessionId' => { 'value' => session_id, 'encode' => true }
328
+ 'accountId' => { 'value' => account_id, 'encode' => false },
329
+ 'sessionId' => { 'value' => session_id, 'encode' => false }
330
330
  )
331
331
  _query_url = APIHelper.clean_url _query_builder
332
332
 
@@ -377,8 +377,8 @@ module WebRtc
377
377
  _query_builder << '/accounts/{accountId}/sessions/{sessionId}/participants'
378
378
  _query_builder = APIHelper.append_url_with_template_parameters(
379
379
  _query_builder,
380
- 'accountId' => { 'value' => account_id, 'encode' => true },
381
- 'sessionId' => { 'value' => session_id, 'encode' => true }
380
+ 'accountId' => { 'value' => account_id, 'encode' => false },
381
+ 'sessionId' => { 'value' => session_id, 'encode' => false }
382
382
  )
383
383
  _query_url = APIHelper.clean_url _query_builder
384
384
 
@@ -445,9 +445,9 @@ module WebRtc
445
445
  _query_builder << '/accounts/{accountId}/sessions/{sessionId}/participants/{participantId}'
446
446
  _query_builder = APIHelper.append_url_with_template_parameters(
447
447
  _query_builder,
448
- 'accountId' => { 'value' => account_id, 'encode' => true },
449
- 'sessionId' => { 'value' => session_id, 'encode' => true },
450
- 'participantId' => { 'value' => participant_id, 'encode' => true }
448
+ 'accountId' => { 'value' => account_id, 'encode' => false },
449
+ 'sessionId' => { 'value' => session_id, 'encode' => false },
450
+ 'participantId' => { 'value' => participant_id, 'encode' => false }
451
451
  )
452
452
  _query_url = APIHelper.clean_url _query_builder
453
453
 
@@ -509,9 +509,9 @@ module WebRtc
509
509
  _query_builder << '/accounts/{accountId}/sessions/{sessionId}/participants/{participantId}'
510
510
  _query_builder = APIHelper.append_url_with_template_parameters(
511
511
  _query_builder,
512
- 'accountId' => { 'value' => account_id, 'encode' => true },
513
- 'participantId' => { 'value' => participant_id, 'encode' => true },
514
- 'sessionId' => { 'value' => session_id, 'encode' => true }
512
+ 'accountId' => { 'value' => account_id, 'encode' => false },
513
+ 'participantId' => { 'value' => participant_id, 'encode' => false },
514
+ 'sessionId' => { 'value' => session_id, 'encode' => false }
515
515
  )
516
516
  _query_url = APIHelper.clean_url _query_builder
517
517
 
@@ -564,9 +564,9 @@ module WebRtc
564
564
  _query_builder << '/accounts/{accountId}/sessions/{sessionId}/participants/{participantId}/subscriptions'
565
565
  _query_builder = APIHelper.append_url_with_template_parameters(
566
566
  _query_builder,
567
- 'accountId' => { 'value' => account_id, 'encode' => true },
568
- 'participantId' => { 'value' => participant_id, 'encode' => true },
569
- 'sessionId' => { 'value' => session_id, 'encode' => true }
567
+ 'accountId' => { 'value' => account_id, 'encode' => false },
568
+ 'participantId' => { 'value' => participant_id, 'encode' => false },
569
+ 'sessionId' => { 'value' => session_id, 'encode' => false }
570
570
  )
571
571
  _query_url = APIHelper.clean_url _query_builder
572
572
 
@@ -634,9 +634,9 @@ module WebRtc
634
634
  _query_builder << '/accounts/{accountId}/sessions/{sessionId}/participants/{participantId}/subscriptions'
635
635
  _query_builder = APIHelper.append_url_with_template_parameters(
636
636
  _query_builder,
637
- 'accountId' => { 'value' => account_id, 'encode' => true },
638
- 'participantId' => { 'value' => participant_id, 'encode' => true },
639
- 'sessionId' => { 'value' => session_id, 'encode' => true }
637
+ 'accountId' => { 'value' => account_id, 'encode' => false },
638
+ 'participantId' => { 'value' => participant_id, 'encode' => false },
639
+ 'sessionId' => { 'value' => session_id, 'encode' => false }
640
640
  )
641
641
  _query_url = APIHelper.clean_url _query_builder
642
642
 
@@ -13,7 +13,7 @@ module Bandwidth
13
13
  @http_call_back = http_call_back
14
14
 
15
15
  @global_headers = {
16
- 'user-agent' => 'ruby-sdk-refs/tags/ruby3.9.0'
16
+ 'user-agent' => 'ruby-sdk'
17
17
  }
18
18
  end
19
19