Namespace | tinymce.util |
Class | JSONRequest |
This class enables you to use JSON-RPC to call backend methods.
Example
Public Methods
Method | Defined By |
---|---|
JSONRequest(s:Object) : Constructs a new JSONRequest instance. | JSONRequest |
send(o:Object):void : Sends a JSON-RPC call. | JSONRequest |
sendRPC(o:Object):void : [static] Simple helper function to send a JSON-RPC request without the need to initialize an object. | JSONRequest |
Method details
JSONRequest
public function JSONRequest(s:Object)
Constructs a new JSONRequest instance.
Parameters
Param | Detail |
---|---|
s:Object | Optional settings object. |
send
public function send(o:Object):void
Sends a JSON-RPC call. Consult the Wiki API documentation for more details on what you can pass to this function.
Parameters
Param | Detail |
---|---|
o:Object | Call object where there are three field id, method and params this object should also contain callbacks etc. |
sendRPC
public static function sendRPC(o:Object):void
Simple helper function to send a JSON-RPC request without the need to initialize an object. Consult the Wiki API documentation for more details on what you can pass to this function.
Parameters
Param | Detail |
---|---|
o:Object | Call object where there are three field id, method and params this object should also contain callbacks etc. |
Was this article helpful? Yes - No
Well, that's awkward . Would you mind opening an issue or helping us out?
Thanks for the feedback!
Except as otherwise noted, the content of this page is licensed under the Creative Commons BY-NC-SA 3.0 License, and code samples are licensed under the Apache 2.0 License.