Function FetchPosts

  • Type Parameters

    Parameters

    • token: string

      OAuth2 token from Tumblr

    • blogIdentifier: string

      Identifier of the blog to fetch posts from

    • Optional id: string | number

      ID of the post to fetch

    • Optional tag: string | string[]

      Tag(s) to filter posts by (limit 4)

    • limit: number = 20

      Maximum number of posts to fetch

    • offset: number = 0

      Number of posts to skip

    • Optional reblogInfo: boolean

      Whether to include reblog info

    • Optional notesInfo: boolean

      Whether to include notes info

    • filter: "text" | "raw" | "none" = "none"

      Filter to apply to the posts (raw, text, none)

    • Optional before: number

      Unix timestamp to fetch posts before

    • npf: boolean = true

      Whether to use the new post format

    • Optional type: "link" | "text" | "photo" | "quote" | "chat" | "audio" | "video" | "answer"

      The type of posts to return, as legacy categories

    • basicAuth: boolean = false

      Whether to treat the token argument as an OAuth2 token or a basic consumer ID

    Returns Promise<PostType[]>

Generated using TypeDoc