Package org.hihn.listenbrainz
Class LbSocialApi.APIfollowRequest
java.lang.Object
org.hihn.listenbrainz.LbSocialApi.APIfollowRequest
- Enclosing class:
LbSocialApi
-
Method Summary
Modifier and TypeMethodDescriptionokhttp3.Call
buildCall
(ApiCallback _callback) Build call for followvoid
execute()
Execute follow requestokhttp3.Call
executeAsync
(ApiCallback<Void> _callback) Execute follow request (asynchronously)Execute follow request with HTTP info returned
-
Method Details
-
buildCall
Build call for follow- 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 Successfully followed the user 'user_name'. - 400 Already following the user user_name, or trying to follow yourself. - 401 Invalid authorization. See error message for details. -
-
execute
Execute follow request- 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 Successfully followed the user 'user_name'. - 400 Already following the user user_name, or trying to follow yourself. - 401 Invalid authorization. See error message for details. -
-
executeWithHttpInfo
Execute follow request with HTTP info returned- Returns:
- ApiResponse<Void>
- 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 Successfully followed the user 'user_name'. - 400 Already following the user user_name, or trying to follow yourself. - 401 Invalid authorization. See error message for details. -
-
executeAsync
Execute follow 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 Successfully followed the user 'user_name'. - 400 Already following the user user_name, or trying to follow yourself. - 401 Invalid authorization. See error message for details. -
-