All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
apiActivityEntriesGet | GET /api/activityEntries |
ActivityEntryForApiContractPartialFindResult apiActivityEntriesGet(before, since, userId, editEvent, entryType, maxResults, getTotalCount, fields, entryFields, lang, sortRule)
// 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.ActivityEntryApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
ActivityEntryApi apiInstance = new ActivityEntryApi(defaultClient);
LocalDateTime before = new LocalDateTime(); // LocalDateTime |
LocalDateTime since = new LocalDateTime(); // LocalDateTime |
Integer userId = 56; // Integer |
EntryEditEvent editEvent = EntryEditEvent.fromValue("Created"); // EntryEditEvent |
EntryType entryType = EntryType.fromValue("Undefined"); // EntryType |
Integer maxResults = 50; // Integer |
Boolean getTotalCount = false; // Boolean |
ActivityEntryOptionalFields fields = ActivityEntryOptionalFields.fromValue("None"); // ActivityEntryOptionalFields |
EntryOptionalFields entryFields = EntryOptionalFields.fromValue("None"); // EntryOptionalFields |
ContentLanguagePreference lang = ContentLanguagePreference.fromValue("Default"); // ContentLanguagePreference |
ActivityEntrySortRule sortRule = ActivityEntrySortRule.fromValue("CreateDateDescending"); // ActivityEntrySortRule |
try {
ActivityEntryForApiContractPartialFindResult result = apiInstance.apiActivityEntriesGet(before, since, userId, editEvent, entryType, maxResults, getTotalCount, fields, entryFields, lang, sortRule);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ActivityEntryApi#apiActivityEntriesGet");
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 |
---|---|---|---|
before | LocalDateTime | [optional] | |
since | LocalDateTime | [optional] | |
userId | Integer | [optional] | |
editEvent | EntryEditEvent | [optional] [enum: Created, Updated, Deleted, Restored] | |
entryType | EntryType | [optional] [enum: Undefined, Album, Artist, DiscussionTopic, PV, ReleaseEvent, ReleaseEventSeries, Song, SongList, Tag, User, Venue] | |
maxResults | Integer | [optional] [default to 50] | |
getTotalCount | Boolean | [optional] [default to false] | |
fields | ActivityEntryOptionalFields | [optional] [enum: None, ArchivedVersion, Entry] | |
entryFields | EntryOptionalFields | [optional] [enum: None, AdditionalNames, Description, MainPicture, Names, PVs, Tags, WebLinks] | |
lang | ContentLanguagePreference | [optional] [enum: Default, Japanese, Romaji, English] | |
sortRule | ActivityEntrySortRule | [optional] [enum: CreateDateDescending, CreateDate] |
ActivityEntryForApiContractPartialFindResult
No authorization required
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json
Status code | Description | Response headers |
---|---|---|
200 | Success | - |