We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0641b36 commit 3cd3c44Copy full SHA for 3cd3c44
docs/README.md
@@ -40,14 +40,15 @@ const client = new PasteClient("DEV_API_KEY");
40
## Create a Paste
41
42
```ts
43
+import { PasteClient, Publicity, ExpireDate } from "pastebin-api";
44
const client = new PasteClient("DEV_API_KEY");
45
46
const url = await client.createPaste({
47
code: "const something = 'Hello World!'",
- expireDate: "N",
48
+ expireDate: ExpireDate.Never,
49
format: "javascript",
50
name: "something.js",
- publicity: 0,
51
+ publicity: Publicity.Public,
52
});
53
54
console.log(url);
0 commit comments