Interface PublicationApiClient


@Generated("org.openapitools.codegen.languages.SpringCodegen") public interface PublicationApiClient
A delegate to be called by the Controller}. Implement this interface with a Service annotated class.
  • Method Summary

    Modifier and Type
    Method
    Description
    default Optional<org.springframework.web.context.request.NativeWebRequest>
     
    default org.springframework.http.ResponseEntity<MediumPublicationID>
    GET /publication/id_for/{publication_slug} : Get Publication ID Returns the unique `publication_id` for the given `publication_slug`.
    default org.springframework.http.ResponseEntity<MediumPublicationArticles>
    GET /publication/{publication_id}/articles : Get Publication Articles Returns the list of `articles_ids`, of the latest 25 articles, posted in that publication.
    default org.springframework.http.ResponseEntity<MediumPublication>
    GET /publication/{publication_id} : Get Publication Info Returns the publication related information such as *Publication name, Tagline, Description, Tags, Followers Count, Twitter username, Instagram username, Facebook Page name, etc …* **Note:** If you don't know the `publication_id`, you can get it from any article published by it.
    default org.springframework.http.ResponseEntity<MediumPublicationNewsletter>
    GET /publication/{publication_id}/newsletter : Get Publication Newsletter Returns the newsletter related information such as *id, name, description, slug, creator_id, subscribers, image_url, etc …* **Note:** If you don't know the `publication_id`, you can get it from any article published by it.
  • Method Details

    • getRequest

      default Optional<org.springframework.web.context.request.NativeWebRequest> getRequest()
    • publicationIdForPublicationSlugGet

      default org.springframework.http.ResponseEntity<MediumPublicationID> publicationIdForPublicationSlugGet(String publicationSlug)
      GET /publication/id_for/{publication_slug} : Get Publication ID Returns the unique `publication_id` for the given `publication_slug`. **Note:** You can find the `publication_slug` from the publication's homepage URL. - medium.com/_**publication_slug**
      Parameters:
      publicationSlug - It's a lowercased hyphen-separated unique string alloted to each Medium Publication. (required)
      Returns:
      OK (status code 200)
      See Also:
    • publicationPublicationIdArticlesGet

      default org.springframework.http.ResponseEntity<MediumPublicationArticles> publicationPublicationIdArticlesGet(String publicationId, String from)
      GET /publication/{publication_id}/articles : Get Publication Articles Returns the list of `articles_ids`, of the latest 25 articles, posted in that publication.
      Parameters:
      publicationId - It's a unique hash id assigned to every Medium Publication. (required)
      from - To get the articles before specified date and time. (optional)
      Returns:
      OK (status code 200)
      See Also:
    • publicationPublicationIdGet

      default org.springframework.http.ResponseEntity<MediumPublication> publicationPublicationIdGet(String publicationId)
      GET /publication/{publication_id} : Get Publication Info Returns the publication related information such as *Publication name, Tagline, Description, Tags, Followers Count, Twitter username, Instagram username, Facebook Page name, etc …* **Note:** If you don't know the `publication_id`, you can get it from any article published by it. Use endpoint \"/article/{article_id}\" to retrieve the `publication_id`.
      Parameters:
      publicationId - It's a unique hash id assigned to every Medium Publication. (required)
      Returns:
      OK (status code 200)
      See Also:
    • publicationPublicationIdNewsletterGet

      default org.springframework.http.ResponseEntity<MediumPublicationNewsletter> publicationPublicationIdNewsletterGet(String publicationId)
      GET /publication/{publication_id}/newsletter : Get Publication Newsletter Returns the newsletter related information such as *id, name, description, slug, creator_id, subscribers, image_url, etc …* **Note:** If you don't know the `publication_id`, you can get it from any article published by it. Use endpoint \"/article/{article_id}\" to retrieve the `publication_id`.
      Parameters:
      publicationId - It's a unique hash id assigned to every Medium Publication. (required)
      Returns:
      OK (status code 200)
      See Also: