Esempio n. 1
0
<?php

include_once 'src/yodlee.php';
if ($_SESSION['cobSessionToken']) {
    $obj = new YodleeAggregation();
    $obj->userSessionToken();
} else {
    die('session token not found.');
}
Esempio n. 2
0
<?php

include_once 'src/yodlee.php';
$obj = new YodleeAggregation();
$obj->logout();
Esempio n. 3
0
<?php

include_once 'src/yodlee.php';
$obj = new YodleeAggregation();
$UserTransactions = $obj->getUserTransactions();
?>
<!DOCTYPE html>
<HTML>
<HEAD>
	<title>Demo - PHP</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>
    <?php 
echo '<pre>';
echo $UserTransactions;
echo '</pre>';
Esempio n. 4
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>
Esempio n. 5
0
<?php

include_once 'src/yodlee.php';
if (isset($_POST['submit']) && $_POST['submit'] == 'user_login') {
    $obj = new YodleeAggregation();
    $obj->login();
}
?>

<!DOCTYPE html>
<HTML>
    <HEAD>
        <title>Demo - Login</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>Please login</h5>
        <form action="" method="post">
            <input type="text" value="sbMemsean.rock1" placeholder="Enter username" name="username"/>
            <input type="password" value="sbMemsean.rock1#123" placeholder="Enter password" name="passwd"/>
            <input type="submit" name="submit" value="user_login"/>
<?php

include_once 'src/yodlee.php';
$obj = new YodleeAggregation();
$CategoryTypes = $obj->getTransactionCategoryTypes();
$TransactionCategories = $obj->getUserTransactionCategories();
?>
<!DOCTYPE html>
<HTML>
<HEAD>
	<title>Demo - PHP</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>
    <?php 
echo '<pre>';
echo $CategoryTypes;
Esempio n. 7
0
<?php

include_once 'src/yodlee.php';
$obj = new YodleeAggregation();
$AllSiteAccounts = $obj->getAllSiteAccounts();
?>
<!DOCTYPE html>
<HTML>
<HEAD>
	<title>Demo - PHP</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>
    <ul>
        <li><a href="<?php 
echo SITE_URL;
?>
Esempio n. 8
0
<?php

include_once 'src/yodlee.php';
$obj = new YodleeAggregation();
$obj->startSiteRefresh();
Esempio n. 9
0
<?php

include_once 'src/yodlee.php';
$obj = new YodleeAggregation();
$obj->removeItemAccount();
Esempio n. 10
0
<?php

include_once 'src/yodlee.php';
$obj = new YodleeAggregation();
echo $obj->searchSites();
Esempio n. 11
0
<?php

include_once 'src/yodlee.php';
$obj = new YodleeAggregation();
$obj->searchTransactions($_GET['itemAccountId']);
Esempio n. 12
0
<?php

include_once 'src/yodlee.php';
if ($_SESSION['login_response']['isValid']) {
    $obj = new YodleeAggregation();
    $PopularSites = $obj->getPopularSites();
} else {
    die('Invalid response.');
}
?>
<!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>
Esempio n. 13
0
<?php

include_once 'src/yodlee.php';
$obj = new YodleeAggregation();
$ItemSummaries = $obj->getItemSummariesForSite($_GET['SiteAccId']);
?>
<!DOCTYPE html>
<HTML>
<HEAD>
	<title>Demo - PHP</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>
    <ul>
        <li><a target="_blank" href="<?php 
echo SITE_URL;
?>
Esempio n. 14
0
<?php

include_once 'src/yodlee.php';
$obj = new YodleeAggregation();
$obj->removeSiteAccount();