Yahoo! Mail Web Service Code Samples
The Yahoo! Mail Web Service offers two different ways to communicate: SOAP and JSON-RPC. The best choice depends on the programming language you intend to use to develop your application. Not all languages that support SOAP are compatible with the Yahoo! Mail Web Service, but all languages that support JSON-RPC are compatible with the Yahoo! Mail Web Service.
A list of languages you can use with JSON-RPC is available at JSON.org. Please also read our instructions on Using JSON with Yahoo! Web Services.
Technology Test Results:
| Language | SOAP | JSON-RPC |
|---|---|---|
| .NET | Yes, tested successfully | Yes |
| Java | Yes, Axis2 and JAX-WS tested successfully | Yes |
| Perl | No, SOAP Lite tested with incompatibilities | Yes |
| PHP 4 | No, Nusoap and Pear SOAP tested with incompatibilities | Yes |
| PHP 5 | Yes, built-in SOAP extension tested successfully | Yes |
| Python | No, ZSI and SOAPpy tested with incompatibilities | Yes |
Code Samples
- C#
Requires the Yahoo! Mail WSDL. - Java - JAX-WS or Axis2
Requires the Axis2 SOAP library or the JAX-WS library, and the Yahoo! Mail WSDL listed above. - Perl
Perl class with test cases for Y! Mail and Y! Photos. - PHP
PHP4 and PHP5 classes with test cases for Y! Mail and Y! Photos. - Python
Python class with test cases for Y! Mail and Y! Photos.
Ready to get started?
By applying for an Application ID for this service, you hereby agree to the Terms of Use
Yahoo! Groups Discussions
view all
Mail API's for accessing yahoo groups
Thu, 17 Dec 2009
Delete option on API does not send to trash folder
Thu, 26 Nov 2009
Tue, 24 Nov 2009
The YMail API on http://myMusik.us (1877sanjay7)
Thu, 19 Nov 2009

