Download wp-calypso/client/dashboard/data/me-ssh.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 404 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/dashboard/data/me-ssh.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/dashboard/data/me-ssh.ts
-
curl -L -o me-ssh.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/dashboard/data/me-ssh.ts
404 Bytes
| import wpcom from 'calypso/lib/wp'; | |
| export interface UserSshKey { | |
| name: string; | |
| key: string; | |
| type: | |
| | 'ssh-rsa' | |
| | 'ssh-ed25519' | |
| | 'ecdsa-sha2-nistp256' | |
| | 'ecdsa-sha2-nistp384' | |
| | 'ecdsa-sha2-nistp521'; | |
| sha256: string; | |
| created_at: string; | |
| } | |
| export async function fetchSshKeys(): Promise< UserSshKey[] > { | |
| return wpcom.req.get( { | |
| path: '/me/ssh-keys', | |
| apiNamespace: 'wpcom/v2', | |
| } ); | |
| } | |