You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Note that `oauth_url` is expected to be a *base* URL, from which authorization & token endpoints are derived internally. As such, the `oauth_url` should end in ".org/" in most cases.
24
+
*
22
25
* @typedef {Object} ClientConstructorOptions
23
26
* @property {string} base_url - Base URL for API (e.g. 'https://[FQDN]/api/v0.1/').
24
27
* If missing, client will check process.env.NYPL_API_BASE_URL
25
28
* @property {string} oauth_key - OAUTH key. (If missing, client will use
26
29
* process.env.NYPL_OAUTH_KEY)
27
30
* @property {string} oauth_secret - OAUTH secret. (If missing, client will use
28
31
* process.env.NYPL_OAUTH_SECRET)
29
-
* @property {string} oauth_url - OAUTH URL. (If missing, client will use
32
+
* @property {string} oauth_url - OAUTH base URL. This is used to build token
33
+
* endpoints. Normally, should end in ".org/" (If missing, client will use
30
34
* process.env.NYPL_OAUTH_URL)
31
35
* @property {string} log_level - Set [log level](https://github.com/pimterry/loglevel)
32
36
* (i.e. info, error, warn, debug). Default env.LOG_LEVEL or 'error'
<dd><p>Note that <code>oauth_url</code> is expected to be a <em>base</em> URL, from which authorization & token endpoints are derived internally. As such, the <code>oauth_url</code> should end in ".org/" in most cases.</p>
@@ -77,6 +78,8 @@ DELETE an object from an api endpoint
77
78
<aname="ClientConstructorOptions"></a>
78
79
79
80
## ClientConstructorOptions : <code>Object</code>
81
+
Note that `oauth_url` is expected to be a *base* URL, from which authorization & token endpoints are derived internally. As such, the `oauth_url` should end in ".org/" in most cases.
82
+
80
83
**Kind**: global typedef
81
84
**Properties**
82
85
@@ -85,7 +88,7 @@ DELETE an object from an api endpoint
85
88
| base_url | <code>string</code> | Base URL for API (e.g. 'https://[FQDN]/api/v0.1/'). If missing, client will check process.env.NYPL_API_BASE_URL |
86
89
| oauth_key | <code>string</code> | OAUTH key. (If missing, client will use process.env.NYPL_OAUTH_KEY) |
87
90
| oauth_secret | <code>string</code> | OAUTH secret. (If missing, client will use process.env.NYPL_OAUTH_SECRET) |
88
-
| oauth_url | <code>string</code> | OAUTH URL. (If missing, client will use process.env.NYPL_OAUTH_URL) |
91
+
| oauth_url | <code>string</code> | OAUTH base URL. This is used to build token endpoints. Normally, should end in ".org/" (If missing, client will use process.env.NYPL_OAUTH_URL) |
89
92
| log_level | <code>string</code> | Set [log level](https://github.com/pimterry/loglevel) (i.e. info, error, warn, debug). Default env.LOG_LEVEL or 'error' |
0 commit comments