$currentUser['bgl360_query_data'] = $resource_request_bgl360->getData($queryData['access_token'], '/fund/list');
//$currentUser['bgl360_query_data'] = $resource_request_bgl360->getData($queryData['access_token'], '/fund/detal?fundId=8a009fab528515320152ae5f949d003a');
//$currentUser['bgl360_query_data'] = $resource_request_bgl360->getData($queryData['access_token'], '/fund/trustees ');
//echo print_r($currentUser['bgl360_query_data']);
$funds = $currentUser['bgl360_query_data']['funds'];
//echo 'fund list = ' . $_POST['fundList'] .' access token = '  . $queryData['access_token'] . '<br>';
/**
 * Tim's code
 */
if ($_POST) {
    // echo "<pre>";
    $fundDetails = $resource_request_bgl360->getFundDetail($_POST['fundList'], $queryData['access_token']);
    // echo "<h1>Fund details</h1>";
    // print_r($fundDetails);
    $fundDetailsData = $fundDetails;
    $members = $resource_request_bgl360->getFundMembers($_POST['fundList'], $queryData['access_token']);
    // echo "<h1>Members</h1>";
    // print_r($members);
    $membersData = $members;
    $trustees = $resource_request_bgl360->getTrusteesList($_POST['fundList'], $queryData['access_token']);
    // echo "<h1>Trustees</h1>";
    // print_r($trustees);
    $trusteesData = $trustees;
    // Set fund details
    //		$resource_request_bgl360->setFundDetail($fundDetails);
    //		$resource_request_bgl360->setTrustees($trustees, 0);
    //		$resource_request_bgl360->setFundMembers($members, 0);
    //		$fundDetails = new \App\FundDetails($fundDetails);
    //		echo "Fund details = " . $fundDetails->fundName . '<br>';
    //		echo "Fund postal address = " . $fundDetails->fundPostalAddress . '<br>';
    //
 * Instantiate classes
 */
$current_user = wp_get_current_user();
$service_bgl360 = new ServiceBgl360($wpdb, $current_user->ID);
$resource_request_bgl360 = new ResourceRequestBgl360();
//echo "This is the post data";
//print_r($_REQUEST);
//echo "current user id " .  $current_user->ID . ' <br>';
$fundList = $_REQUEST['fundList'];
$accessToken = $_REQUEST['accessToken'];
$currentUser = $service_bgl360->getCurrentAccessTokenByUser();
//echo "<pre>";
//print_r($currentUser);
//echo "current token of the user " . $currentUser[0]['access_token'] . '<br>';
//echo "access token " . $currentUser[0]['bgl360_token'];
if ($_POST) {
    // echo "<pre>";
    $members = $resource_request_bgl360->getFundMembers($fundList, $currentUser[0]['access_token']);
    // print_r($members);
    echo '<content-label><label for="fundList">Choose Fund Member: </label><content-label>';
    echo '<content-dropdown><select name="pensionMemberRefKey" id="select-fund-member">';
    echo '<option value="">- Select One -</option>';
    for ($i = 0; $i < count($members); $i++) {
        $member = new \App\Member($members, $i);
        echo '<option value="' . $member->fundMemberMemberRefKey . '">' . $member->fundMemberFullName . '</option>';
    }
    echo '
		</select><content-dropdown>';
} else {
    //echo print_r($service_bgl360,true);
}