Download wp-calypso/apps/notifications/src/standalone/client.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 241 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/apps/notifications/src/standalone/client.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/apps/notifications/src/standalone/client.js
-
curl -L -o client.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/apps/notifications/src/standalone/client.js
241 Bytes
| import wpcom from 'wpcom'; | |
| import proxyRequest from 'wpcom-proxy-request'; | |
| export async function createClient() { | |
| const client = wpcom( proxyRequest ); | |
| await client.request( { metaAPI: { accessAllUsersBlogs: true } } ); | |
| return client; | |
| } | |