InstagramMedia

public struct InstagramMedia : Decodable

The struct containing an Instagram media.

  • id

    The media identifier.

    Declaration

    Swift

    public let id: String
  • The owner of the media.

    Declaration

    Swift

    public let user: InstagramUser
  • The date and time when the media was created.

    Declaration

    Swift

    public let createdDate: Date
  • The type of media. It can be image or video.

    Declaration

    Swift

    public let type: String
  • The thumbnail, low and standard resolution images of the media.

    Declaration

    Swift

    public let images: Images
  • The low and standard resolution videos of the media.

    Declaration

    Swift

    public let videos: Videos?
  • The headline of the media.

    Declaration

    Swift

    public let caption: InstagramComment?
  • A Count object that contains the number of comments on the media.

    Declaration

    Swift

    public let comments: Count
  • A Count object that contains the number of likes on the media.

    Declaration

    Swift

    public let likes: Count
  • A list of tags used in the media.

    Declaration

    Swift

    public let tags: [String]
  • A Boolean value that indicates whether the current logged-in user has liked the media.

    Declaration

    Swift

    public let userHasLiked: Bool
  • The image filter used by the media.

    Declaration

    Swift

    public let filter: String
  • The URL link of the media.

    Declaration

    Swift

    public let link: URL
  • The location of the media.

    Declaration

    Swift

    public let location: InstagramLocation<Int>?
  • A list of users and their position on the image.

    Declaration

    Swift

    public let usersInPhoto: [UserInPhoto]?
  • If the media is a carousel, this object contains all the images or videos inside it.

    Declaration

    Swift

    public let carouselMedia: [CarouselMedia]?
  • The distance to the location of media when it has been searched by location.

    Declaration

    Swift

    public let distance: Double?
  • A struct cointaing the number of elements.

    See more

    Declaration

    Swift

    public struct Count : Decodable
  • A struct containing the resolution of a video or image.

    See more

    Declaration

    Swift

    public struct Resolution : Decodable
  • A struct cointaining the thumbnail, low and high resolution images of the media.

    See more

    Declaration

    Swift

    public struct Images : Decodable
  • A struct cointaining the low and standard resolution videos of the media.

    See more

    Declaration

    Swift

    public struct Videos : Decodable
  • A struct containing the user and its position on the image.

    See more

    Declaration

    Swift

    public struct UserInPhoto : Decodable
  • The struct containing the images or videos of the carousel.

    See more

    Declaration

    Swift

    public struct CarouselMedia : Decodable
  • Declaration

    Swift

    public init(from decoder: Decoder) throws