Package org.hihn.listenbrainz
Class LbSocialApi.APIfeedEventsRequest
java.lang.Object
org.hihn.listenbrainz.LbSocialApi.APIfeedEventsRequest
- Enclosing class:
LbSocialApi
-
Method Summary
Modifier and TypeMethodDescriptionokhttp3.Call
buildCall
(ApiCallback _callback) Build call for feedEventsSet countexecute()
Execute feedEvents requestokhttp3.Call
executeAsync
(ApiCallback<FeedEvents> _callback) Execute feedEvents request (asynchronously)Execute feedEvents request with HTTP info returnedSet maxTsSet minTs
-
Method Details
-
maxTs
Set maxTs- Parameters:
maxTs
- If you specify a 'max_ts' timestamp, events with timestamps less than the value will be returned. (optional)- Returns:
- APIfeedEventsRequest
-
minTs
Set minTs- Parameters:
minTs
- If you specify a 'min_ts' timestamp, events with timestamps greater than the value will be returned. (optional)- Returns:
- APIfeedEventsRequest
-
count
Set count- Parameters:
count
- (optional, default to 25)- Returns:
- APIfeedEventsRequest
-
buildCall
Build call for feedEvents- Parameters:
_callback
- ApiCallback API callback- Returns:
- Call to execute
- Throws:
ApiException
- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 Successful query, you have feed events! - 400 Bad request. - 401 Unauthorized, you do not have permission to view this user's feed. - 403 Forbidden, you do not have permission to view this user's feed. - 404 User not found. -
-
execute
Execute feedEvents request- Returns:
- FeedEvents
- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 Successful query, you have feed events! - 400 Bad request. - 401 Unauthorized, you do not have permission to view this user's feed. - 403 Forbidden, you do not have permission to view this user's feed. - 404 User not found. -
-
executeWithHttpInfo
Execute feedEvents request with HTTP info returned- Returns:
- ApiResponse<FeedEvents>
- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 Successful query, you have feed events! - 400 Bad request. - 401 Unauthorized, you do not have permission to view this user's feed. - 403 Forbidden, you do not have permission to view this user's feed. - 404 User not found. -
-
executeAsync
Execute feedEvents request (asynchronously)- Parameters:
_callback
- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException
- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 Successful query, you have feed events! - 400 Bad request. - 401 Unauthorized, you do not have permission to view this user's feed. - 403 Forbidden, you do not have permission to view this user's feed. - 404 User not found. -
-