@@ -30,6 +30,7 @@ console.log(paste.url)
30
30
- [ UserStore] ( #userstore )
31
31
- [ UserPasteStore] ( #userpastestore )
32
32
- [ Typedefs] ( #typedefs )
33
+ - [ PastebinCredentials] ( #pastebincredentials )
33
34
- [ Format] ( #format-2 )
34
35
- [ Privacy] ( #privacy-2 )
35
36
- [ Expiry] ( #expiry-2 )
@@ -72,22 +73,7 @@ new PastebinClient(apiKey, username, password)
72
73
#### .credentials
73
74
74
75
Your Pastebin credentials.
75
- ** Type: [ Object] ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object ) **
76
-
77
- ##### credentials.apiKey
78
-
79
- Your Pastebin API key.
80
- ** Type: ?[ string] ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String ) **
81
-
82
- ##### credentials.username
83
-
84
- Your Pastebin username.
85
- ** Type: ?[ string] ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String ) **
86
-
87
- ##### credentials.password
88
-
89
- Your Pastebin password.
90
- ** Type: ?[ string] ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String ) **
76
+ ** Type: [ PastebinCredentials] ( #pastebincredentials ) **
91
77
92
78
#### .user
93
79
@@ -484,6 +470,21 @@ Fetch this user's pastes, and store them in the cache.
484
470
485
471
## Typedefs
486
472
473
+ ### PastebinCredentials
474
+
475
+ The credentials provided to and stored in the PastebinClient.
476
+
477
+ ** Type:** ` { apiKey?: string, username?: string, password?: string, userKey?: string } `
478
+
479
+ | name | description | type | default |
480
+ | -------- | ------------------------------------------------ | ------ | ------- |
481
+ | apiKey | Your Pastebin API key | string | ` null ` |
482
+ | username | Your Pastebin username | string | ` null ` |
483
+ | password | Your Pastebin password | string | ` null ` |
484
+ | userKey | Your Pastebin user key, obtained when logging in | string | ` null ` |
485
+
486
+ #### Properties
487
+
487
488
### Format
488
489
489
490
A "format," which will be used for syntax highlighting. You can see the full list of formats [ here] ( https://pastebin.com/doc_api#5 ) .
0 commit comments