function createUrlDump
createUrlDump(
userId: string
): Promise<Dump>

Posts a link as userId, for POST /api/dumps, with its preview fetched from the page. A public dump is broadcast as dump_created and notified to the poster's followers. Anyone @mentioned in the note is notified even when the dump is private.

Parameters

userId: string

Return Type

Promise<Dump>

Throws

APIException

400 when the URL isn't a public http(s) URL or a category doesn't exist.

Usage

import { createUrlDump } from "api/services/dump-service.ts";