[wp-trac] [WordPress Trac] #23099: Add JSON-RPC support using existing XML-RPC methods
WordPress Trac
noreply at wordpress.org
Wed Jan 2 01:39:21 UTC 2013
#23099: Add JSON-RPC support using existing XML-RPC methods
-----------------------------+------------------------------
Reporter: maxcutler | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: XML-RPC | Version: 3.5
Severity: normal | Resolution:
Keywords: |
-----------------------------+------------------------------
Comment (by maxcutler):
Replying to [comment:3 wonderboymusic]:
> Thanks for doing this. Just so I understand,
'wp_rpc_request_handler_class' can be a class that extends IXR_Server?
It can be any class with a constructor that takes a list of method
callbacks.
> I am not wildly in love with POST'ing JSON for read-only APIs, but it's
a good forward step for WP.
This is absolutely necessary for security purposes. Otherwise you'd have
to include username/passwords in the URL for GET requests, which makes
them visible in server/proxy logs and other places that POST contents
aren't logged.
Another enhancement would be to add more auth options, so that it can
piggy-back on an admin cookie or use oauth or other options that don't
include the password in plaintext. But that's for another ticket.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23099#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list