Skip to content

Commit 64370b3

Browse files
authored
Merge pull request #56 from FreeClimbAPI/VCSWP-18369
add getNextPage method to DefaultApi class
2 parents d2c8c8f + 152e49c commit 64370b3

31 files changed

+724
-32
lines changed

.openapi-generator/FILES

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,4 +318,3 @@ src/main/java/com/github/freeclimbapi/auth/ApiKeyAuth.java
318318
src/main/java/com/github/freeclimbapi/auth/Authentication.java
319319
src/main/java/com/github/freeclimbapi/auth/HttpBasicAuth.java
320320
src/main/java/com/github/freeclimbapi/auth/HttpBearerAuth.java
321-
src/test/java/com/github/freeclimbapi/DefaultApiTest.java

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="5.7.0"></a>
13+
14+
## [5.7.0] - 2024-09-03
15+
16+
### Added
17+
18+
- `getNextPage` method to `DefaultApi` class
19+
1220
<a name="5.6.2"></a>
1321

1422
## [5.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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Add this dependency to your project's POM:
4040
<dependency>
4141
<groupId>com.github.freeclimbapi</groupId>
4242
<artifactId>freeclimb-java-client</artifactId>
43-
<version>5.6.2</version>
43+
<version>5.7.0</version>
4444
<scope>compile</scope>
4545
</dependency>
4646
```
@@ -56,7 +56,7 @@ Add this dependency to your project's build file:
5656
}
5757
5858
dependencies {
59-
implementation "com.github.freeclimbapi:freeclimb-java-client:5.6.2"
59+
implementation "com.github.freeclimbapi:freeclimb-java-client:5.7.0"
6060
implementation("com.squareup.okhttp3:okhttp:4.9.3")
6161
implementation("com.squareup.okhttp3:logging-interceptor:4.9.3")
6262
}
@@ -72,7 +72,7 @@ mvn clean package
7272

7373
Then manually install the following JARs:
7474

75-
* `target/freeclimb-java-client-5.6.2.jar`
75+
* `target/freeclimb-java-client-5.7.0.jar`
7676
* `target/lib/*.jar`
7777

7878
## Getting Started
@@ -199,7 +199,7 @@ Class | Method | HTTP request | Description
199199
*DefaultApi* | [**updateAnAccount**](docs/DefaultApi.md#updateAnAccount) | **POST** /Accounts/{accountId} | Manage an account
200200
*DefaultApi* | [**updateAnApplication**](docs/DefaultApi.md#updateAnApplication) | **POST** /Accounts/{accountId}/Applications/{applicationId} | Update an application
201201
*DefaultApi* | [**updateAnIncomingNumber**](docs/DefaultApi.md#updateAnIncomingNumber) | **POST** /Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId} | Update an Incoming Number
202-
202+
| *DefaultApi* | [**getNextPage**](docs/DefaultApi.md#getNextPage) | **GET** | Get next page of paginated resource
203203
204204
## Documentation for Models
205205

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apply plugin: 'java'
44
apply plugin: 'com.diffplug.spotless'
55

66
group = 'com.github.freeclimbapi'
7-
version = '5.6.2'
7+
version = '5.7.0'
88

99
buildscript {
1010
repositories {

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "com.github.freeclimbapi",
44
name := "freeclimb-java-client",
5-
version := "5.6.2",
5+
version := "5.7.0",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

docs/AddToConference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# AddToConference
44

5-
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`.
5+
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`.
66

77
## Properties
88

docs/DefaultApi.md

Lines changed: 68 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Method | HTTP request | Description
6060
[**updateAnAccount**](DefaultApi.md#updateAnAccount) | **POST** /Accounts/{accountId} | Manage an account
6161
[**updateAnApplication**](DefaultApi.md#updateAnApplication) | **POST** /Accounts/{accountId}/Applications/{applicationId} | Update an application
6262
[**updateAnIncomingNumber**](DefaultApi.md#updateAnIncomingNumber) | **POST** /Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId} | Update an Incoming Number
63-
63+
[**getNextPage**](DefaultApi.md#getNextPage) | **GET** | Get next page of paginated resource
6464

6565
<a name="buyAPhoneNumber"></a>
6666
# **buyAPhoneNumber**
@@ -4020,3 +4020,70 @@ Name | Type | Description | Notes
40204020
|-------------|-------------|------------------|
40214021
**200** | Updated Incoming Phone Number | - |
40224022

4023+
4024+
<a name="getNextPage"></a>
4025+
# **getNextPage**
4026+
> <T extends Pagination> T getNextPage(T response)
4027+
4028+
Get next page of paginated resource
4029+
4030+
### Example
4031+
```java
4032+
// Import classes:
4033+
import com.github.freeclimbapi.ApiClient;
4034+
import com.github.freeclimbapi.ApiException;
4035+
import com.github.freeclimbapi.Configuration;
4036+
import com.github.freeclimbapi.auth.*;
4037+
import com.github.freeclimbapi.models.*;
4038+
import com.github.freeclimbapi.DefaultApi;
4039+
4040+
public class Example {
4041+
public static void main(String[] args) {
4042+
4043+
ApiClient defaultClient = Configuration.getDefaultApiClient();
4044+
defaultClient.setBasePath("https://www.freeclimb.com/apiserver");
4045+
defaultClient.setAccountId("YOUR_ACCOUNT_ID");
4046+
defaultClient.setApiKey("YOUR_API_KEY");
4047+
4048+
4049+
DefaultApi apiInstance = new DefaultApi(defaultClient);
4050+
4051+
String alias = "alias_example";
4052+
4053+
try {
4054+
ApplicationList result = apiInstance.listApplications(alias);
4055+
System.out.println(result);
4056+
ApplicationList nextPageResult = apiInstance.getNextPage(result);
4057+
System.out.println(nextPageResult);
4058+
} catch (ApiException e) {
4059+
System.err.println("Exception")
4060+
System.err.println("Status code: " + e.getCode());
4061+
e.printStackTrace();
4062+
}
4063+
}
4064+
}
4065+
```
4066+
4067+
### Parameters
4068+
Name | Type | Description | Notes
4069+
------------- | ------------- | ------------- | -------------
4070+
response | T extends Pagination | Previous response from request to get paginated resource |
4071+
4072+
### Return type
4073+
4074+
**T**
4075+
4076+
### Authorization
4077+
4078+
[fc](../README.md#fc)
4079+
4080+
### HTTP request headers
4081+
4082+
- **Content-Type**: Not defined
4083+
- **Accept**: application/json
4084+
4085+
### HTTP response details
4086+
| Status code | Description | Response headers |
4087+
|-------------|-------------|------------------|
4088+
| **200** | List of paginated resource | - |
4089+

0 commit comments

Comments
 (0)