Package org.hihn.listenbrainz
Class LbPlaylistsApi.APIcreatePlaylistRequest
java.lang.Object
org.hihn.listenbrainz.LbPlaylistsApi.APIcreatePlaylistRequest
- Enclosing class:
LbPlaylistsApi
-
Method Summary
Modifier and TypeMethodDescriptionokhttp3.Call
buildCall
(ApiCallback _callback) Build call for createPlaylistexecute()
Execute createPlaylist requestokhttp3.Call
executeAsync
(ApiCallback<CreatePlaylist200Response> _callback) Execute createPlaylist request (asynchronously)Execute createPlaylist request with HTTP info returned
-
Method Details
-
buildCall
Build call for createPlaylist- 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 Playlist accepted. - 400 Invalid JSON sent. - 401 Invalid authorization. - 403 The submitting user is not allowed to create playlists for other users. -
-
execute
Execute createPlaylist request- Returns:
- CreatePlaylist200Response
- 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 Playlist accepted. - 400 Invalid JSON sent. - 401 Invalid authorization. - 403 The submitting user is not allowed to create playlists for other users. -
-
executeWithHttpInfo
Execute createPlaylist request with HTTP info returned- Returns:
- ApiResponse<CreatePlaylist200Response>
- 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 Playlist accepted. - 400 Invalid JSON sent. - 401 Invalid authorization. - 403 The submitting user is not allowed to create playlists for other users. -
-
executeAsync
public okhttp3.Call executeAsync(ApiCallback<CreatePlaylist200Response> _callback) throws ApiException Execute createPlaylist 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 Playlist accepted. - 400 Invalid JSON sent. - 401 Invalid authorization. - 403 The submitting user is not allowed to create playlists for other users. -
-