val credentials = RetroCredentials("<username>", "<web api key>")val api: RetroInterface = RetroClient(credentials).apival response: NetworkResponse<GetComments.Response, ErrorResponse> = api.getCommentsOnUserWall( username = "MaxMilyin",)if (response is NetworkResponse.Success) { // handle the data val comments: GetComments.Response = response.body} else if (response is NetworkResponse.Error) { // if the server returns an error it be found here val errorResponse: ErrorResponse? = response.body // if the api (locally) had an internal error, it'll be found here val internalError: Throwable? = response.error}
Kotlin
val credentials = RetroCredentials("<username>", "<web api key>")val api: RetroInterface = RetroClient(credentials).apival response: NetworkResponse<GetComments.Response, ErrorResponse> = api.getCommentsOnGameWall( gameId = 14402,)if (response is NetworkResponse.Success) { // handle the data val comments: GetComments.Response = response.body} else if (response is NetworkResponse.Error) { // if the server returns an error it be found here val errorResponse: ErrorResponse? = response.body // if the api (locally) had an internal error, it'll be found here val internalError: Throwable? = response.error}
Kotlin
val credentials = RetroCredentials("<username>", "<web api key>")val api: RetroInterface = RetroClient(credentials).apival response: NetworkResponse<GetComments.Response, ErrorResponse> = api.getCommentsOnAchievementWall( achievementId = 14402,)if (response is NetworkResponse.Success) { // handle the data val comments: GetComments.Response = response.body} else if (response is NetworkResponse.Error) { // if the server returns an error it be found here val errorResponse: ErrorResponse? = response.body // if the api (locally) had an internal error, it'll be found here val internalError: Throwable? = response.error}
Comments
A call to this endpoint returns comments of a specified kind: game, achievement, or user.
HTTP Request
https://retroachievements.org/API/API_GetComments.php?t=1&i=1
Query Parameters
y
i
t
c
o
Client Library
Response
Source