<?php

/*
 * yahoo_export_address_book.php
 *
 * @(#) $Header: /opt2/ena/metal/http/yahoo_export_address_book.php,v 1.4 2006/04/10 06:51:43 mlemos Exp $
 *
 */
require 'http.php';
require 'yahoo_user.php';
$yahoo = new yahoo_user_class();
$yahoo->user = '******';
$yahoo->password = '******';
$parameters = array();
$success = $yahoo->ExportAddressBook($parameters);
?>
<html>
<head>
<title>Export Yahoo user address book</TITLE>
</head>
<body>
<h1 style="text-align: center">Export Yahoo user address book</h1>
<hr />
<?php 
if ($success) {
    if (strlen($yahoo->logged_user)) {
        ?>
<h2 style="text-align: center">The user '<?php 
        echo $yahoo->logged_user;
        ?>
' has logged in Yahoo successfully.</h2>
예제 #2
0
<?php

/*
 * yahoo_group_invite.php
 *
 * @(#) $Header: /opt2/ena/metal/http/yahoo_group_invite.php,v 1.1 2006/04/07 21:44:23 mlemos Exp $
 *
 */
require 'http.php';
require 'yahoo_user.php';
$yahoo = new yahoo_user_class();
$yahoo->user = '******';
$yahoo->password = '******';
$group = 'groupname';
$users = array("*****@*****.**", "*****@*****.**", "*****@*****.**");
$message = "Hello,\n\n" . "This is an invitation to join our group at Yahoo!\n\n" . "Please follow the instructions to accept the invitation and start participating.\n\n" . "Regards,\n\n" . "the moderator\n";
$parameters = array();
$success = $yahoo->InviteToGroup($group, $users, $message, $parameters);
?>
<html>
<head>
<title>Invite users to a Yahoo group</TITLE>
</head>
<body>
<h1 style="text-align: center">Invite users to a Yahoo group</h1>
<hr />
<?php 
if ($success) {
    if (strlen($yahoo->logged_user)) {
        ?>
<h2 style="text-align: center">The user '<?php