request
Call Signature
Section titled “Call Signature”request(
request
):Promise
<string
>
Defined in: obsidian.d.ts:3550
Similar to fetch()
, request a URL using HTTP/HTTPS, without any CORS restrictions.
Returns the text value of the response.
Parameters
Section titled “Parameters”request
Section titled “request”string
| RequestUrlParam
Returns
Section titled “Returns”Promise
<string
>
Call Signature
Section titled “Call Signature”request(
request
):Promise
<string
>
Defined in: src/obsidian/augmentations/functions.d.ts:590
Similar to fetch, request a URL using HTTP/HTTPS, without any CORS restrictions.
Parameters
Section titled “Parameters”request
Section titled “request”The request parameters.
string
| RequestUrlParam
Returns
Section titled “Returns”Promise
<string
>
The promise that resolves to the text value of the response.
Example
Section titled “Example”console.log(await request({ url: 'https://google.com' }));console.log(await request('https://google.com'));