Skip to content

Commit 46eddb9

Browse files
katebruneKate Brunelunderwood-vail
authored
Add get_next_page method to DefaultApi (#53)
* add get_next_page method to DefaultApi * update LICENSE.txt * Add changelog --------- Co-authored-by: Kate Brune <kbrune@vailsys.com> Co-authored-by: Logan Underwood <lunderwood@vailsys.com>
1 parent c13b54f commit 46eddb9

11 files changed

Lines changed: 748 additions & 122 deletions

File tree

.openapi-generator/FILES

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,6 @@ lib/freeclimb/models/update_conference_participant_request.rb
297297
lib/freeclimb/models/update_conference_request.rb
298298
lib/freeclimb/models/update_conference_request_status.rb
299299
lib/freeclimb/version.rb
300-
spec/api/default_api_spec.rb
301300
spec/api_client_spec.rb
302301
spec/configuration_spec.rb
303302
spec/spec_helper.rb

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
99

1010
None
1111

12+
<a name="4.7.0"></a>
13+
14+
## [4.7.0] - 2024-09-12
15+
16+
### Added
17+
18+
- getNextPage functionality for paginated resources
19+
1220
<a name="4.6.2"></a>
1321

1422
## [4.6.2] - 2024-07-23

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
MIT License
22
-------------
33

4-
Copyright (c) 2023 FreeClimbAPI
4+
Copyright (c) 2024 FreeClimbAPI
55

66
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:
77

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ FreeClimb is a cloud-based application programming interface (API) that puts the
77
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
88

99
- API version: 1.0.0
10-
- Package version: 4.6.2
10+
- Package version: 4.7.0
1111
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
1212
For more information, please visit [https://www.freeclimb.com/support/](https://www.freeclimb.com/support/)
1313

1414
## Installation
1515

1616
Add this to the Gemfile:
1717

18-
gem 'freeclimb', '~> 4.6.2'
18+
gem 'freeclimb', '~> 4.7.0'
1919

2020
and run from your terminal
2121

@@ -44,9 +44,9 @@ gem build freeclimb.gemspec
4444
Then either install the gem locally:
4545

4646
```shell
47-
gem install ./freeclimb-4.6.2.gem
47+
gem install ./freeclimb-4.7.0.gem
4848
```
49-
(for development, run `gem install --dev ./freeclimb-4.6.2.gem` to install the development dependencies)
49+
(for development, run `gem install --dev ./freeclimb-4.7.0.gem` to install the development dependencies)
5050

5151
## Getting Started
5252

@@ -155,7 +155,7 @@ Class | Method | HTTP request | Description
155155
*Freeclimb::DefaultApi* | [**update_an_account**](docs/DefaultApi.md#update_an_account) | **POST** /Accounts/{accountId} | Manage an account
156156
*Freeclimb::DefaultApi* | [**update_an_application**](docs/DefaultApi.md#update_an_application) | **POST** /Accounts/{accountId}/Applications/{applicationId} | Update an application
157157
*Freeclimb::DefaultApi* | [**update_an_incoming_number**](docs/DefaultApi.md#update_an_incoming_number) | **POST** /Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId} | Update an Incoming Number
158-
158+
*FreeClimb::DefaultApi* | [**get_next_page**](docs/DefaultApi.md#get_next_page) | **GET** | Get next page of paginated resource
159159

160160
## Documentation for Models
161161

docs/DefaultApi.md

Lines changed: 134 additions & 111 deletions
Large diffs are not rendered by default.

docs/SMSTenDLCCampaign.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ instance = Freeclimb::SMSTenDLCCampaign.new(
8282
optout_message: null,
8383
reference_id: null,
8484
mock: null,
85-
next_renewal_or_expiration_date: Fri Dec 31 19:00:00 EST 1999
85+
next_renewal_or_expiration_date: Fri Dec 31 18:00:00 CST 1999
8686
)
8787
```
8888

lib/freeclimb/api/default_api.rb

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3663,5 +3663,63 @@ def update_an_incoming_number_with_http_info(phone_number_id, opts = {})
36633663
end
36643664
return data, status_code, headers
36653665
end
3666+
def get_next_page_with_http_info(response, opts = {})
3667+
if @api_client.config.debugging
3668+
@api_client.config.logger.debug 'Calling API: DefaultApi.get_next_page ...'
3669+
end
3670+
3671+
# verify the required parameter 'phone_number_id' is set
3672+
if @api_client.config.client_side_validation && response.nil?
3673+
fail ArgumentError, "Missing the required parameter 'response' when calling DefaultApi.get_next_page"
3674+
end
3675+
# resource path
3676+
local_var_path = response.next_page_uri
3677+
3678+
# query parameters
3679+
query_params = opts[:query_params] || {}
3680+
3681+
# header parameters
3682+
header_params = opts[:header_params] || {}
3683+
# HTTP header 'Accept' (if needed)
3684+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3685+
# HTTP header 'Content-Type'
3686+
content_type = @api_client.select_header_content_type(['application/json'])
3687+
if !content_type.nil?
3688+
header_params['Content-Type'] = content_type
3689+
end
3690+
3691+
# form parameters
3692+
form_params = opts[:form_params] || {}
3693+
3694+
# http body (model)
3695+
post_body = opts[:debug_body] || {}
3696+
3697+
# return_type
3698+
return_type = opts[:debug_return_type] || response.class.name
3699+
3700+
# auth_names
3701+
auth_names = opts[:debug_auth_names] || ['fc']
3702+
3703+
new_options = opts.merge(
3704+
:operation => :"DefaultApi.get_next_page",
3705+
:header_params => header_params,
3706+
:query_params => query_params,
3707+
:form_params => form_params,
3708+
:body => post_body,
3709+
:auth_names => auth_names,
3710+
:return_type => return_type
3711+
)
3712+
3713+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3714+
if @api_client.config.debugging
3715+
@api_client.config.logger.debug "API called: DefaultApi#get_next_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3716+
end
3717+
return data, status_code, headers
3718+
end
3719+
3720+
def get_next_page(response, opts = {})
3721+
data, _status_code, _headers = get_next_page_with_http_info(response, opts)
3722+
data
3723+
end
36663724
end
36673725
end

lib/freeclimb/models/add_to_conference.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
require 'time'
1515

1616
module Freeclimb
17-
# The `AddToConference` command adds a Participant to a Conference. If this Participant currently is in another Conference, the Participant is first removed from that Conference. Two Call legs can be bridged together by creating a Conference and adding both Call legs to it via `AddToConference`.
17+
# The `AddToConference` command adds a Participant to a Conference. Two Call legs can be bridged together by creating a Conference and adding both Call legs to it via `AddToConference`.
1818
class AddToConference < PerclCommand
1919
# If `true`, Call control will be enabled for this Participant's Call leg.
2020
attr_accessor :allow_call_control

lib/freeclimb/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
=end
1212

1313
module Freeclimb
14-
VERSION = '4.6.2'
14+
VERSION = '4.7.0'
1515
end

0 commit comments

Comments
 (0)