For the JSON Client, use the endpoint
"https://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
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:
Accept is not set then response would be in XML.
Below is a sample OAuth header (
you initiate the JSON or SOAP client .
You can also send requests as URL parameters as per OAuth spec. Refer the code sample