All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
apiPvsForSongsGet | GET /api/pvs/for-songs | |
apiPvsThumbnailGet | GET /api/pvs/thumbnail |
PVForSongContractPartialFindResult apiPvsForSongsGet(name, author, service, maxResults, getTotalCount, lang)
// Import classes:
import mikufan.cx.vocadbapiclient.client.ApiClient;
import mikufan.cx.vocadbapiclient.client.ApiException;
import mikufan.cx.vocadbapiclient.client.Configuration;
import mikufan.cx.vocadbapiclient.client.models.*;
import mikufan.cx.vocadbapiclient.api.PvApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
PvApi apiInstance = new PvApi(defaultClient);
String name = "name_example"; // String |
String author = "author_example"; // String |
PVService service = PVService.fromValue("NicoNicoDouga"); // PVService |
Integer maxResults = 10; // Integer |
Boolean getTotalCount = false; // Boolean |
ContentLanguagePreference lang = ContentLanguagePreference.fromValue("Default"); // ContentLanguagePreference |
try {
PVForSongContractPartialFindResult result = apiInstance.apiPvsForSongsGet(name, author, service, maxResults, getTotalCount, lang);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PvApi#apiPvsForSongsGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
name | String | [optional] | |
author | String | [optional] | |
service | PVService | [optional] [enum: NicoNicoDouga, Youtube, SoundCloud, Vimeo, Piapro, Bilibili, File, LocalFile, Creofuga, Bandcamp] | |
maxResults | Integer | [optional] [default to 10] | |
getTotalCount | Boolean | [optional] [default to false] | |
lang | ContentLanguagePreference | [optional] [enum: Default, Japanese, Romaji, English] |
PVForSongContractPartialFindResult
No authorization required
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json
Status code | Description | Response headers |
---|---|---|
200 | Success | - |
apiPvsThumbnailGet(pvUrl)
// Import classes:
import mikufan.cx.vocadbapiclient.client.ApiClient;
import mikufan.cx.vocadbapiclient.client.ApiException;
import mikufan.cx.vocadbapiclient.client.Configuration;
import mikufan.cx.vocadbapiclient.client.models.*;
import mikufan.cx.vocadbapiclient.api.PvApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
PvApi apiInstance = new PvApi(defaultClient);
String pvUrl = "pvUrl_example"; // String |
try {
apiInstance.apiPvsThumbnailGet(pvUrl);
} catch (ApiException e) {
System.err.println("Exception when calling PvApi#apiPvsThumbnailGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
pvUrl | String | [optional] |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
200 | Success | - |