Skip to content

Commit

Permalink
Merge pull request #66 from FreeClimbAPI/VCSWP-18368
Browse files Browse the repository at this point in the history
Add GetNextPage method to DefaultApi
  • Loading branch information
lunderwood99 authored Sep 12, 2024
2 parents 0c64234 + 7d8ab0e commit de5821e
Show file tree
Hide file tree
Showing 29 changed files with 781 additions and 152 deletions.
122 changes: 0 additions & 122 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -147,149 +147,27 @@ docs/UpdateConferenceRequest.md
docs/UpdateConferenceRequestStatus.md
freeclimb.sln
git_push.sh
src/freeclimb.Test/Model/AccountRequestTests.cs
src/freeclimb.Test/Model/AccountResultAllOfTests.cs
src/freeclimb.Test/Model/AccountResultTests.cs
src/freeclimb.Test/Model/AccountStatusTests.cs
src/freeclimb.Test/Model/AccountTypeTests.cs
src/freeclimb.Test/Model/AddToConferenceAllOfTests.cs
src/freeclimb.Test/Model/AddToConferenceTests.cs
src/freeclimb.Test/Model/AnsweredByTests.cs
src/freeclimb.Test/Model/ApplicationListAllOfTests.cs
src/freeclimb.Test/Model/ApplicationListTests.cs
src/freeclimb.Test/Model/ApplicationRequestTests.cs
src/freeclimb.Test/Model/ApplicationResultAllOfTests.cs
src/freeclimb.Test/Model/ApplicationResultTests.cs
src/freeclimb.Test/Model/AvailableNumberListAllOfTests.cs
src/freeclimb.Test/Model/AvailableNumberListTests.cs
src/freeclimb.Test/Model/AvailableNumberTests.cs
src/freeclimb.Test/Model/BuyIncomingNumberRequestTests.cs
src/freeclimb.Test/Model/CallDirectionTests.cs
src/freeclimb.Test/Model/CallListAllOfTests.cs
src/freeclimb.Test/Model/CallListTests.cs
src/freeclimb.Test/Model/CallResultAllOfTests.cs
src/freeclimb.Test/Model/CallResultTests.cs
src/freeclimb.Test/Model/CallStatusTests.cs
src/freeclimb.Test/Model/CapabilitiesTests.cs
src/freeclimb.Test/Model/ConferenceListAllOfTests.cs
src/freeclimb.Test/Model/ConferenceListTests.cs
src/freeclimb.Test/Model/ConferenceParticipantListAllOfTests.cs
src/freeclimb.Test/Model/ConferenceParticipantListTests.cs
src/freeclimb.Test/Model/ConferenceParticipantResultAllOfTests.cs
src/freeclimb.Test/Model/ConferenceParticipantResultTests.cs
src/freeclimb.Test/Model/ConferenceResultAllOfTests.cs
src/freeclimb.Test/Model/ConferenceResultTests.cs
src/freeclimb.Test/Model/ConferenceStatusTests.cs
src/freeclimb.Test/Model/CreateConferenceAllOfTests.cs
src/freeclimb.Test/Model/CreateConferenceRequestTests.cs
src/freeclimb.Test/Model/CreateConferenceTests.cs
src/freeclimb.Test/Model/CreateWebRTCTokenTests.cs
src/freeclimb.Test/Model/DequeueTests.cs
src/freeclimb.Test/Model/EnqueueAllOfTests.cs
src/freeclimb.Test/Model/EnqueueTests.cs
src/freeclimb.Test/Model/FilterLogsRequestTests.cs
src/freeclimb.Test/Model/GetDigitsAllOfTests.cs
src/freeclimb.Test/Model/GetDigitsTests.cs
src/freeclimb.Test/Model/GetSpeechAllOfTests.cs
src/freeclimb.Test/Model/GetSpeechReasonTests.cs
src/freeclimb.Test/Model/GetSpeechTests.cs
src/freeclimb.Test/Model/GrammarFileBuiltInTests.cs
src/freeclimb.Test/Model/GrammarTypeTests.cs
src/freeclimb.Test/Model/HangupAllOfTests.cs
src/freeclimb.Test/Model/HangupTests.cs
src/freeclimb.Test/Model/IfMachineTests.cs
src/freeclimb.Test/Model/IncomingNumberListAllOfTests.cs
src/freeclimb.Test/Model/IncomingNumberListTests.cs
src/freeclimb.Test/Model/IncomingNumberRequestTests.cs
src/freeclimb.Test/Model/IncomingNumberResultAllOfTests.cs
src/freeclimb.Test/Model/IncomingNumberResultTests.cs
src/freeclimb.Test/Model/LanguageTests.cs
src/freeclimb.Test/Model/LogLevelTests.cs
src/freeclimb.Test/Model/LogListAllOfTests.cs
src/freeclimb.Test/Model/LogListTests.cs
src/freeclimb.Test/Model/LogResultTests.cs
src/freeclimb.Test/Model/MachineTypeTests.cs
src/freeclimb.Test/Model/MakeCallRequestTests.cs
src/freeclimb.Test/Model/MessageDirectionTests.cs
src/freeclimb.Test/Model/MessageRequestAllOfTests.cs
src/freeclimb.Test/Model/MessageRequestTests.cs
src/freeclimb.Test/Model/MessageResultAllOfTests.cs
src/freeclimb.Test/Model/MessageResultTests.cs
src/freeclimb.Test/Model/MessageStatusTests.cs
src/freeclimb.Test/Model/MessagesListAllOfTests.cs
src/freeclimb.Test/Model/MessagesListTests.cs
src/freeclimb.Test/Model/MutableResourceModelTests.cs
src/freeclimb.Test/Model/OutDialAllOfTests.cs
src/freeclimb.Test/Model/OutDialTests.cs
src/freeclimb.Test/Model/PaginationModelTests.cs
src/freeclimb.Test/Model/ParkAllOfTests.cs
src/freeclimb.Test/Model/ParkTests.cs
src/freeclimb.Test/Model/PauseAllOfTests.cs
src/freeclimb.Test/Model/PauseTests.cs
src/freeclimb.Test/Model/PerclCommandTests.cs
src/freeclimb.Test/Model/PerclScriptTests.cs
src/freeclimb.Test/Model/PlayAllOfTests.cs
src/freeclimb.Test/Model/PlayBeepTests.cs
src/freeclimb.Test/Model/PlayEarlyMediaAllOfTests.cs
src/freeclimb.Test/Model/PlayEarlyMediaTests.cs
src/freeclimb.Test/Model/PlayTests.cs
src/freeclimb.Test/Model/QueueListAllOfTests.cs
src/freeclimb.Test/Model/QueueListTests.cs
src/freeclimb.Test/Model/QueueMemberListAllOfTests.cs
src/freeclimb.Test/Model/QueueMemberListTests.cs
src/freeclimb.Test/Model/QueueMemberTests.cs
src/freeclimb.Test/Model/QueueRequestTests.cs
src/freeclimb.Test/Model/QueueResultAllOfTests.cs
src/freeclimb.Test/Model/QueueResultStatusTests.cs
src/freeclimb.Test/Model/QueueResultTests.cs
src/freeclimb.Test/Model/RecordUtteranceAllOfTests.cs
src/freeclimb.Test/Model/RecordUtteranceTermReasonTests.cs
src/freeclimb.Test/Model/RecordUtteranceTests.cs
src/freeclimb.Test/Model/RecordingListAllOfTests.cs
src/freeclimb.Test/Model/RecordingListTests.cs
src/freeclimb.Test/Model/RecordingResultAllOfTests.cs
src/freeclimb.Test/Model/RecordingResultTests.cs
src/freeclimb.Test/Model/RedirectAllOfTests.cs
src/freeclimb.Test/Model/RedirectTests.cs
src/freeclimb.Test/Model/RejectAllOfTests.cs
src/freeclimb.Test/Model/RejectTests.cs
src/freeclimb.Test/Model/RemoveFromConferenceTests.cs
src/freeclimb.Test/Model/RequestTypeTests.cs
src/freeclimb.Test/Model/SMSTenDLCBrandTests.cs
src/freeclimb.Test/Model/SMSTenDLCBrandsListResultAllOfTests.cs
src/freeclimb.Test/Model/SMSTenDLCBrandsListResultTests.cs
src/freeclimb.Test/Model/SMSTenDLCCampaignTests.cs
src/freeclimb.Test/Model/SMSTenDLCCampaignsListResultAllOfTests.cs
src/freeclimb.Test/Model/SMSTenDLCCampaignsListResultTests.cs
src/freeclimb.Test/Model/SMSTenDLCPartnerCampaignBrandTests.cs
src/freeclimb.Test/Model/SMSTenDLCPartnerCampaignTests.cs
src/freeclimb.Test/Model/SMSTenDLCPartnerCampaignsListResultAllOfTests.cs
src/freeclimb.Test/Model/SMSTenDLCPartnerCampaignsListResultTests.cs
src/freeclimb.Test/Model/SMSTollFreeCampaignTests.cs
src/freeclimb.Test/Model/SMSTollFreeCampaignsListResultAllOfTests.cs
src/freeclimb.Test/Model/SMSTollFreeCampaignsListResultTests.cs
src/freeclimb.Test/Model/SayAllOfTests.cs
src/freeclimb.Test/Model/SayTests.cs
src/freeclimb.Test/Model/SendDigitsAllOfTests.cs
src/freeclimb.Test/Model/SendDigitsTests.cs
src/freeclimb.Test/Model/SetListenAllOfTests.cs
src/freeclimb.Test/Model/SetListenTests.cs
src/freeclimb.Test/Model/SetTalkAllOfTests.cs
src/freeclimb.Test/Model/SetTalkTests.cs
src/freeclimb.Test/Model/SmsAllOfTests.cs
src/freeclimb.Test/Model/SmsTests.cs
src/freeclimb.Test/Model/StartRecordCallTests.cs
src/freeclimb.Test/Model/TFNTests.cs
src/freeclimb.Test/Model/TerminateConferenceTests.cs
src/freeclimb.Test/Model/TranscribeUtteranceAllOfRecordTests.cs
src/freeclimb.Test/Model/TranscribeUtteranceAllOfTests.cs
src/freeclimb.Test/Model/TranscribeUtteranceTests.cs
src/freeclimb.Test/Model/UnparkTests.cs
src/freeclimb.Test/Model/UpdateCallRequestStatusTests.cs
src/freeclimb.Test/Model/UpdateCallRequestTests.cs
src/freeclimb.Test/Model/UpdateConferenceParticipantRequestTests.cs
src/freeclimb.Test/Model/UpdateConferenceRequestStatusTests.cs
src/freeclimb.Test/Model/UpdateConferenceRequestTests.cs
src/freeclimb.Test/freeclimb.Test.csproj
src/freeclimb/Api/DefaultApi.cs
src/freeclimb/Client/ApiClient.cs
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

None

<a name="4.8.0"></a>

## [4.8.0] - 2024-09-12

### Added

- GetNextPage method to DefaultApi

<a name="4.7.1"></a>

## [4.7.1] - 2024-08-01
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
MIT License
-------------

Copyright (c) 2023 FreeClimbAPI
Copyright (c) 2024 FreeClimbAPI

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:

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ FreeClimb is a cloud-based application programming interface (API) that puts the
This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 1.0.0
- SDK version: 4.7.1
- SDK version: 4.8.0
- Build package: org.openapitools.codegen.languages.CSharpNetCoreClientCodegen
For more information, please visit [https://www.freeclimb.com/support/](https://www.freeclimb.com/support/)

Expand Down Expand Up @@ -175,7 +175,7 @@ Class | Method | HTTP request | Description
*DefaultApi* | [**UpdateAnAccount**](docs/DefaultApi.md#updateanaccount) | **POST** /Accounts/{accountId} | Manage an account
*DefaultApi* | [**UpdateAnApplication**](docs/DefaultApi.md#updateanapplication) | **POST** /Accounts/{accountId}/Applications/{applicationId} | Update an application
*DefaultApi* | [**UpdateAnIncomingNumber**](docs/DefaultApi.md#updateanincomingnumber) | **POST** /Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId} | Update an Incoming Number

*DefaultApi* | [**GetNextPage**](docs/DefaultApi.md#GetNextPage) | **GET** | Get next page of paginated resource

<a name="documentation-for-models"></a>
## Documentation for Models
Expand Down
9 changes: 9 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# auto-generated by OpenAPI Generator (https://github.com/OpenAPITools/openapi-generator)
#
image: Visual Studio 2022
clone_depth: 1
build_script:
- dotnet build -c Release
- dotnet test -c Release
after_build:
- dotnet pack .\src\freeclimb\freeclimb.csproj -o ../../output -c Release --no-build
78 changes: 77 additions & 1 deletion docs/DefaultApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Method | HTTP request | Description
[**UpdateAnAccount**](DefaultApi.md#updateanaccount) | **POST** /Accounts/{accountId} | Manage an account
[**UpdateAnApplication**](DefaultApi.md#updateanapplication) | **POST** /Accounts/{accountId}/Applications/{applicationId} | Update an application
[**UpdateAnIncomingNumber**](DefaultApi.md#updateanincomingnumber) | **POST** /Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId} | Update an Incoming Number

[**GetNextPage**](DefaultApi.md#GetNextPage) | **GET** | Get next page of paginated resource

<a name="buyaphonenumber"></a>
# **BuyAPhoneNumber**
Expand Down Expand Up @@ -4468,3 +4468,79 @@ Name | Type | Description | Notes

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

<a name="GetNextPage"></a>
# **GetNextPage**
> T GetNextPage(T: response) where T : PaginationModel
Get next page of a paginated resource

### Example
```csharp
using System.Collections.Generic;
using System.Diagnostics;
using freeclimb.Api;
using freeclimb.Client;
using freeclimb.Model;

namespace Example
{
public class GetNextPageExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://www.freeclimb.com/apiserver";
// Configure HTTP basic authorization: fc
config.Username = "YOUR_ACCOUNT_ID";
config.Password = "YOUR_API_KEY";

var apiInstance = new DefaultApi(config);

var alias = "alias_example"; // string | Return only applications with aliases that exactly match this value. (optional)

try
{
// List applications
ApplicationList result = apiInstance.ListApplications(alias);
Debug.WriteLine(result);
ApplicationList nextPageResult = apiInstance.GetNextPage(result);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
```

### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
response | T where T : PaginationModel | The response from previous request to list paginated resource |

### Return type

T where T : PaginationModel

### Authorization

[fc](../README.md#fc)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| 200 | Successfully retrieved resource | - |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

10 changes: 5 additions & 5 deletions freeclimb.sln
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
VisualStudioVersion = 12.0.0.0
MinimumVisualStudioVersion = 10.0.0.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "freeclimb", "src\freeclimb\freeclimb.csproj", "{22A9343F-C344-4758-B71F-23869A86A160}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "freeclimb", "src\freeclimb\freeclimb.csproj", "{0DF8E0AC-461F-4A6D-AA67-360F6A1ECC3E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "freeclimb.Test", "src\freeclimb.Test\freeclimb.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
EndProject
Expand All @@ -12,10 +12,10 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{22A9343F-C344-4758-B71F-23869A86A160}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{22A9343F-C344-4758-B71F-23869A86A160}.Debug|Any CPU.Build.0 = Debug|Any CPU
{22A9343F-C344-4758-B71F-23869A86A160}.Release|Any CPU.ActiveCfg = Release|Any CPU
{22A9343F-C344-4758-B71F-23869A86A160}.Release|Any CPU.Build.0 = Release|Any CPU
{0DF8E0AC-461F-4A6D-AA67-360F6A1ECC3E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0DF8E0AC-461F-4A6D-AA67-360F6A1ECC3E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0DF8E0AC-461F-4A6D-AA67-360F6A1ECC3E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0DF8E0AC-461F-4A6D-AA67-360F6A1ECC3E}.Release|Any CPU.Build.0 = Release|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down
Loading

0 comments on commit de5821e

Please sign in to comment.