Class InstagramMediaReader

Direct Known Subclasses:
InstagramLocationMediaReader, InstagramSelfMediaReader, InstagramTagMediaReader, InstagramUserMediaReader

public abstract class InstagramMediaReader extends IntegrationReader
Base class for all InstagramXXXMediaReader.
  • Constructor Details

    • InstagramMediaReader

      public InstagramMediaReader(String accessToken, String clientSecret, int maxResults)
      Creates a reader for at most maxResults media; a non-positive limit is stored as 0 (no media).
  • Method Details

    • getMaxResults

      public int getMaxResults()
    • getToken

      public Token getToken()
      Returns the jInstagram token built from the access token and client secret.
    • toRecord

      protected Record toRecord(MediaFeedData mediaFeedData)
      Converts a media item to a record with its caption, author, comments, image URLs, likes, location, user and video URLs.