Class InstagramLocationReader


public class InstagramLocationReader extends IntegrationReader
Search for a location by geographic coordinate in Instagram.
See Also:
  • Constructor Details

    • InstagramLocationReader

      public InstagramLocationReader(String accessToken, String clientSecret, double latitude, double longitude)
      Search Instagram for a location by geographic coordinate. Distance is 750m.
      Parameters:
      accessToken - Instagram access token
      clientSecret - Client secret of the registered Instagram app
      latitude - Latitude of the location to search for
      longitude - Longitude of the location to search for
  • Method Details

    • setLatitude

      public InstagramLocationReader setLatitude(double latitude)
      Sets the latitude of the location to search for; must be called before open().
    • getLatitude

      public double getLatitude()
    • setLongitude

      public InstagramLocationReader setLongitude(double longitude)
      Sets the longitude of the location to search for; must be called before open().
    • getLongitude

      public double getLongitude()
    • readImpl

      protected Record readImpl() throws Throwable
      Description copied from class: DataReader
      Overridden by subclasses to read the next record from this DataReader. The default implementation of DataReader.read() now insures that this method will not be called again after it returns a null.

      If no record is available, null will be returned.

      Contract for subclasses (see also docs/authoring/DataReader.md):

      Specified by:
      readImpl in class DataReader
      Throws:
      Throwable
    • open

      public void open() throws DataException
      Description copied from class: DataEndpoint
      Makes this endpoint ready for reading or writing.
      Overrides:
      open in class IntegrationReader
      Throws:
      DataException
    • close

      public void close() throws DataException
      Description copied from class: DataEndpoint
      Indicates that this endpoint has finished reading or writing.
      Overrides:
      close in class DataEndpoint
      Throws:
      DataException
    • addExceptionProperties

      public DataException addExceptionProperties(DataException exception)
      Description copied from class: Endpoint
      Adds this endpoint's current state to a DataException. Since this method is called whenever an exception is thrown, subclasses should override it to add their specific information.
      Overrides:
      addExceptionProperties in class DataReader