Package com.mediumapi.client
Interface ListApiClient
public interface ListApiClient
A delegate to be called by the
Controller}. Implement this interface
with a Service annotated class.-
Method Summary
Modifier and TypeMethodDescriptiondefault Optional<org.springframework.web.context.request.NativeWebRequest>default org.springframework.http.ResponseEntity<MediumListArticles>listListIdArticlesGet(String listId) GET /list/{list_id}/articles : Get List Articles Returns an array of `articles_ids` present in the given Medium List.default org.springframework.http.ResponseEntity<MediumList>listListIdGet(String listId) GET /list/{list_id} : Get List Info Returns the list-related information such as *id, name, author, description, thumbnail image url, creation datetime, last article inserted datetime, number of articles in the list, claps, voters, and comments/responses*.default org.springframework.http.ResponseEntity<MediumListResponses>listListIdResponsesGet(String listId) GET /list/{list_id}/responses : Get List Responses Returns an array of `response_ids` of the comments (same as `article_ids`) on the given Medium List.
-
Method Details
-
getRequest
-
listListIdArticlesGet
default org.springframework.http.ResponseEntity<MediumListArticles> listListIdArticlesGet(String listId) GET /list/{list_id}/articles : Get List Articles Returns an array of `articles_ids` present in the given Medium List.- Parameters:
listId- It's a unique hash id assigned to every Medium List. (required)- Returns:
- OK (status code 200)
- See Also:
-
listListIdGet
GET /list/{list_id} : Get List Info Returns the list-related information such as *id, name, author, description, thumbnail image url, creation datetime, last article inserted datetime, number of articles in the list, claps, voters, and comments/responses*.- Parameters:
listId- It's a unique hash id assigned to every Medium List. (required)- Returns:
- OK (status code 200)
- See Also:
-
listListIdResponsesGet
default org.springframework.http.ResponseEntity<MediumListResponses> listListIdResponsesGet(String listId) GET /list/{list_id}/responses : Get List Responses Returns an array of `response_ids` of the comments (same as `article_ids`) on the given Medium List.- Parameters:
listId- It's a unique hash id assigned to every Medium List. (required)- Returns:
- OK (status code 200)
- See Also:
-