Interface MediumNodeParameters

Source
interface MediumNodeParameters {
    additionalFields?: {
        canonicalUrl?: string;
        license?:
            | "all-rights-reserved"
            | "cc-40-by"
            | "cc-40-by-nc"
            | "cc-40-by-nc-nd"
            | "cc-40-by-nc-sa"
            | "cc-40-by-nd"
            | "cc-40-by-sa"
            | "cc-40-zero"
            | "public-domain";
        notifyFollowers?: boolean;
        publishStatus?: "public"
        | "draft"
        | "unlisted";
        tags?: string;
    };
    authentication?: "oAuth2"
    | "accessToken";
    content?: string;
    contentFormat?: "html" | "markdown";
    limit?: number;
    operation?: "create" | "getAll";
    publication?: boolean;
    publicationId?: string;
    resource?: "post" | "publication";
    returnAll?: boolean;
    title?: string;
}

Properties§

Source§

readonly additionalFields?: {
    canonicalUrl?: string;
    license?:
        | "all-rights-reserved"
        | "cc-40-by"
        | "cc-40-by-nc"
        | "cc-40-by-nc-nd"
        | "cc-40-by-nc-sa"
        | "cc-40-by-nd"
        | "cc-40-by-sa"
        | "cc-40-zero"
        | "public-domain";
    notifyFollowers?: boolean;
    publishStatus?: "public"
    | "draft"
    | "unlisted";
    tags?: string;
}

Default: {}

Source§

readonly authentication?: "oAuth2" | "accessToken"

Default: "accessToken"

Source§

readonly content?: string

The body of the post, in a valid semantic HTML fragment, or Markdown

Source§

readonly contentFormat?: "html" | "markdown"

The format of the content to be posted

Source§

readonly limit?: number

Max number of results to return Default: 100 Type options: {"minValue":1,"maxValue":200}

Source§

readonly operation?: "create" | "getAll"

Default: "create"

Source§

readonly publication?: boolean

Whether you are posting for a publication

Source§

readonly publicationId?: string

Publication IDs. Choose from the list, or specify an ID using an expression. Type options: {"loadOptionsMethod":"getPublications"}

Source§

readonly resource?: "post" | "publication"

Default: "post"

Source§

readonly returnAll?: boolean

Whether to return all results or only up to a given limit

Source§

readonly title?: string

Title of the post. Max Length : 100 characters.