示例#1
0
<?php

include_once 'src/yodlee.php';
if (isset($_POST['submit']) && trim($_POST['login']) != '' && trim($_POST['passwd']) != '') {
    $obj = new YodleeAggregation();
    $obj->addSiteAccount($_GET['site'], $_POST['login'], $_POST['passwd']);
    exit;
} else {
    ?>
        <!DOCTYPE html>
        <HTML>
            <HEAD>
                <title>Demo - Step 3</title>
                <link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
                <link rel="stylesheet" href="css/codemirror.css">
                <link rel="stylesheet" href="css/eclipse.css">
                <style>
                body{
                padding: 10px;	
                }
                .c-method{
                margin-left: 20px;
                }
                </style>
            </HEAD>
            <BODY>
                <h5>Username : <?php 
    echo $_SESSION['login_response']['Body']->loginName . ' (' . $_SESSION['login_response']['Body']->userId . ')';
    ?>
</h5>
                <b>Please login to add your account</b>