{"action":"closed","issue":{"url":"https://api.github.com/repos/Automattic/wpcom.js/issues/209","repository_url":"https://api.github.com/repos/Automattic/wpcom.js","labels_url":"https://api.github.com/repos/Automattic/wpcom.js/issues/209/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/wpcom.js/issues/209/comments","events_url":"https://api.github.com/repos/Automattic/wpcom.js/issues/209/events","html_url":"https://github.com/Automattic/wpcom.js/issues/209","id":195618741,"number":209,"title":"Ability to add custom headers to HTTP requests","user":{"login":"mweichert","id":374155,"avatar_url":"https://avatars.githubusercontent.com/u/374155?v=3","gravatar_id":"","url":"https://api.github.com/users/mweichert","html_url":"https://github.com/mweichert","followers_url":"https://api.github.com/users/mweichert/followers","following_url":"https://api.github.com/users/mweichert/following{/other_user}","gists_url":"https://api.github.com/users/mweichert/gists{/gist_id}","starred_url":"https://api.github.com/users/mweichert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mweichert/subscriptions","organizations_url":"https://api.github.com/users/mweichert/orgs","repos_url":"https://api.github.com/users/mweichert/repos","events_url":"https://api.github.com/users/mweichert/events{/privacy}","received_events_url":"https://api.github.com/users/mweichert/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-14T19:11:26Z","updated_at":"2016-12-14T19:47:53Z","closed_at":"2016-12-14T19:47:53Z","body":"Hi there,\r\n\r\nWe're looking into how to use the Calypso API (which is limited at this point, as you know) to expose a UI for a popular WP plugin that doesn't do some of today's norms like use the media library or custom post types. \r\n\r\nWhat I'd like to do is add media using the media library, which will generate the appropriate REST API requests behind the scenes to the WP instance, and then intercept them so that the data isn't actually added to the media library, but using the data constructs that the plugin provides. \r\n\r\nBut to do that, we need the ability to identify which requests to intercept. Is it possible to add custom headers to the HTTP requests that Calypso generates? If not, that would be a great addition.\r\n\r\nThanks,\r\nMike."}}
{"actor":{"display_login":"mweichert"}}