Download wp-calypso/client/dashboard/data/agency.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 427 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/dashboard/data/agency.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/dashboard/data/agency.ts
-
curl -L -o agency.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/dashboard/data/agency.ts
427 Bytes
| import wpcom from 'calypso/lib/wp'; | |
| export interface AgencyBlog { | |
| name: string; | |
| existing_wpcom_license_count: number; | |
| referral_status: 'active' | 'pending' | 'canceled' | 'archived'; | |
| prices: { | |
| actual_price: number; | |
| currency: string; | |
| }; | |
| } | |
| export async function fetchAgencyBlog( siteId: number ): Promise< AgencyBlog > { | |
| return wpcom.req.get( { | |
| path: `/agency/blog/${ siteId }`, | |
| apiNamespace: 'wpcom/v2', | |
| } ); | |
| } | |