For the JSON Client, use the endpoint
"http://mail.yahooapis.com/ws/mail/v1.1/jsonrpc", set the content-type
and pass the OAuth headers. For more details, refer to the PHP files ListFolder.php or
GetUserData.php.
An Accept header is necessary if you want to get back a response in JSON if an error occurs. A JSON response for an expired token will
appear as below:
If Accept is not set then response would be in XML.
Below is a sample OAuth header ($oauthHeaderForJson) before
you initiate the JSON or SOAP client .
You can also send requests as URL parameters as per OAuth spec. Refer the code sample ListFoldersUrl.php