Exemple #1
0
class PostAction(BaseModel):
    """
    A class representing the post action
    """

    name: Optional[str] = field(repr=True)
    link: Optional[str] = field()
Exemple #2
0
class PagingCursors(BaseModel):
    """
    A class representing the paging cursors.
    """

    after: Optional[str] = field(repr=True)
    before: Optional[str] = field()
Exemple #3
0
class IgBusPublishLimitConfig(BaseModel):
    """
    A class representing the content publish limit config.
    """

    quota_total: Optional[int] = field(repr=True)
    quota_duration: Optional[int] = field()
Exemple #4
0
class ReactionSummary(BaseModel):
    """
    A class representing
    """

    total_count: Optional[int] = field()
    viewer_reaction: Optional[str] = field()
Exemple #5
0
class MsgUser(BaseModel):
    """
    A class representing the User in message.
    """

    id: Optional[str] = field(repr=True, compare=True)
    name: Optional[str] = field(repr=True)
    email: Optional[str] = field()
class CvUser(BaseModel):
    """
    A class representing the User in conversation.
    """

    id: Optional[str] = field(repr=True, compare=True)
    name: Optional[str] = field(repr=True)
    email: Optional[str] = field()
Exemple #7
0
class ImageSource(BaseModel):
    """
    A class representing the Image Source.
    """

    height: Optional[int] = field()
    width: Optional[int] = field()
    src: Optional[str] = field(repr=True)
Exemple #8
0
class Picture(BaseModel):
    """
    A class representing the Picture connection.

    Refer: https://developers.facebook.com/docs/graph-api/reference/page/picture
    """

    data: Optional[ProfilePictureSource] = field(repr=True)
    paging: Optional[Paging] = field()
class Attachments(BaseModel):
    """
    A class representing the Attachments connection.

    Refer: https://developers.facebook.com/docs/graph-api/reference/post/attachments/
    """

    data: Optional[List[StoryAttachment]] = field(repr=True)
    paging: Optional[Paging] = field()
Exemple #10
0
class IgBusInsightValue(BaseModel):
    """
    A class representing the Instagram insight value info.

    Refer: https://developers.facebook.com/docs/instagram-api/reference/ig-user/insights
    """

    value: Optional[Union[int, dict]] = field(repr=True)
    end_time: Optional[str] = field(repr=True)
Exemple #11
0
class VideoStatus(BaseModel):
    """
    A class representing the Video Status.

    Refer: https://developers.facebook.com/docs/graph-api/reference/video-status/
    """

    processing_progress: Optional[int] = field(repr=True)
    video_status: Optional[str] = field(repr=True)
Exemple #12
0
class IgBusMediaResponse(BaseModel):
    """
    A class representing the Business Medias response.

    Refer: https://developers.facebook.com/docs/instagram-api/reference/ig-user/media
    """

    data: List[IgBusMedia] = field(repr=True, compare=True)
    paging: Optional[Paging] = field(repr=True)
class IgBasicMediaResponse(IgBasicMediaChild):
    """
    A class representing the Basic display medias response.

    Refer: https://developers.facebook.com/docs/instagram-basic-display-api/reference/user/media
    """

    data: Optional[List[IgBasicMedia]] = field(repr=True, compare=True)
    paging: Optional[Paging] = field(repr=True)
Exemple #14
0
class IgBusMentionedMediaResponse(BaseModel):
    """
    A class representing the response for mentioned media.

    Refer: https://developers.facebook.com/docs/instagram-api/reference/ig-user/mentioned_media
    """

    mentioned_media: Optional[IgBusMedia] = field(repr=True)
    id: Optional[str] = field(repr=True)
Exemple #15
0
class IgBusHashtagsResponse(BaseModel):
    """
    A class representing the hashtag.

    Refer: https://developers.facebook.com/docs/instagram-api/reference/ig-user/recently_searched_hashtags
    """

    data: List[IgBusHashtag] = field(repr=True)
    paging: Optional[Paging] = field(repr=True)
Exemple #16
0
class IgBusMentionedCommentResponse(BaseModel):
    """
    A class representing the response for mentioned comment.

    Refer: https://developers.facebook.com/docs/instagram-api/reference/ig-user/mentioned_comment
    """

    mentioned_comment: Optional[IgBusReply] = field(repr=True)
    id: Optional[str] = field(repr=True)
Exemple #17
0
class IgBusDiscoveryUserMediaResponse(BaseModel):
    """
    A class representing the response for discovery user.

    Refer: https://developers.facebook.com/docs/instagram-api/reference/ig-user/business_discovery#sample-response
    """

    business_discovery: Optional[IgBusDiscoveryUserMedia] = field(repr=True)
    id: Optional[str] = field(repr=True)
Exemple #18
0
class IgBusInsightsResponse(BaseModel):
    """
    A class representing the Instagram insights response.

    Refer: https://developers.facebook.com/docs/instagram-api/reference/ig-user/insights
    """

    data: List[IgBusInsight] = field(repr=True)
    paging: Optional[Paging] = field()
Exemple #19
0
class UserAgeRange(BaseModel):
    """
    A class representing user age range.

    Refer: https://developers.facebook.com/docs/graph-api/reference/age-range/
    """

    max: Optional[int] = field(repr=True)
    min: Optional[int] = field(repr=True)
Exemple #20
0
class FeedResponse(BaseModel):
    """
    A class representing the post response.

    Refer: https://developers.facebook.com/docs/graph-api/reference/page/feed/#read
    """

    data: List[Post] = field(repr=True, compare=True)
    paging: Optional[Paging] = field()
class IgBasicMediaChildren(BaseModel):
    """
    A class representing the Basic display media children data.

    Refer: https://developers.facebook.com/docs/instagram-basic-display-api/reference/media/children
    """

    data: Optional[List[IgBasicMediaChild]] = field(repr=True)
    paging: Optional[Paging] = field()
class LiveVideosResponse(BaseModel):
    """
    A class representing the result for live videos edge.

    Refer: https://developers.facebook.com/docs/graph-api/reference/page/live_videos
    """

    data: List[LiveVideo] = field(repr=True, compare=True)
    paging: Optional[Paging] = field()
Exemple #23
0
class AlbumResponse(BaseModel):
    """
    A class representing the result for albums edge.

    Refer: https://developers.facebook.com/docs/graph-api/reference/page/albums
    """

    data: List[Album] = field(repr=True, compare=True)
    paging: Optional[Paging] = field()
Exemple #24
0
class IgBusHashtag(BaseModel):
    """
    A class representing the hashtag.

    Refer: https://developers.facebook.com/docs/instagram-api/reference/ig-hashtag/
    """

    id: Optional[str] = field(repr=True, compare=True)
    name: Optional[str] = field(repr=True)
Exemple #25
0
class BusinessResponse(BaseModel):
    """
    A class representing the result for businesses edge.

    Refer: https://developers.facebook.com/docs/graph-api/reference/user/businesses/
    """

    data: List[Business] = field(repr=True, compare=True)
    paging: Optional[Paging] = field()
class StoryAttachmentSubattachments(BaseModel):
    """
    A class representing the Story Attachment Subattachments.

    Refer: https://developers.facebook.com/docs/graph-api/reference/story-attachment/subattachments/
    """

    data: Optional[List["StoryAttachment"]] = field(repr=True)
    paging: Optional[Paging] = field()
Exemple #27
0
class IgBusCommentResponse(BaseModel):
    """
    A class representing the comments response.

    Refer: https://developers.facebook.com/docs/instagram-api/reference/ig-media/comments
    """

    data: List[IgBusComment] = field(repr=True)
    paging: Optional[Paging] = field(repr=True)
Exemple #28
0
class IgBusPublishLimit(BaseModel):
    """
    A class representing the content publish limit.

    Refer: https://developers.facebook.com/docs/instagram-api/reference/ig-user/content_publishing_limit
    """

    config: Optional[IgBusPublishLimitConfig] = field(repr=True)
    quota_usage: Optional[int] = field(repr=True)
class ApplicationAccountsResponse(BaseModel):
    """
    A class representing the application edge accounts response.

    Refer: https://developers.facebook.com/docs/graph-api/reference/application/accounts/
    """

    data: Optional[List[ApplicationTestAccount]] = field(repr=True)
    paging: Optional[Paging] = field()
class StoryAttachmentMedia(BaseModel):
    """
    A class representing the Story Attachment Media.

    Refer: https://developers.facebook.com/docs/graph-api/reference/story-attachment-media/
    """

    image: Optional[ImageSource] = field()
    source: Optional[str] = field(repr=True)