{"library":"wpcom-xhr-request","type":"library","category":null,"description":"wpcom-xhr-request is a lightweight browser library for making authenticated REST API requests to WordPress.com using XMLHttpRequest and CORS. Version 1.3.1 is the latest stable release. It handles OAuth 1.0a authentication and token management, providing a simpler interface than raw XMLHttpRequest or fetch with custom auth headers. Unlike the Node.js counterpart wpcom.js, this package is specifically designed for client-side use in browsers. It has low release cadence, with occasional maintenance updates. Key differentiators: automatic OAuth signing, cookie-based token storage, and integration with WordPress.com's API endpoints.","language":"javascript","status":"maintenance","version":"1.3.1","tags":["javascript","browser","wpcom","wordpress","rest","api","oauth"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install wpcom-xhr-request","imports":["import wpcomXhrRequest from 'wpcom-xhr-request'","import WPCOMXhrRequest from 'wpcom-xhr-request'","import { getRequestToken } from 'wpcom-xhr-request'"]},{"cmd":"yarn add wpcom-xhr-request","imports":[]},{"cmd":"pnpm add wpcom-xhr-request","imports":[]}],"homepage":"https://github.com/Automattic/wp-calypso","github":"https://github.com/Automattic/wp-calypso","docs":null,"changelog":null,"pypi":null,"npm":"wpcom-xhr-request","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}