<?php /*+********************************************************************************** * The contents of this file are subject to the vtiger CRM Public License Version 1.0 * ("License"); You may not use this file except in compliance with the License * The Original Code is: vtiger CRM Open Source * The Initial Developer of the Original Code is vtiger. * Portions created by vtiger are Copyright (C) vtiger. * All Rights Reserved. ************************************************************************************/ chdir('../../'); header('Content-type: text/plain'); include_once 'vtlib/Vtiger/Net/Client.php'; include_once 'include/Zend/Json.php'; $mobileAPITestController = new Mobile_API_TestController(); $mobileAPITestController->doLoginAndFetchModules('admin', 'admin'); //$mobileAPITestController->doLogin('standarduser', 'standarduser'); //$mobileAPITestController->doFetchModuleFilters('Leads'); //$mobileAPITestController->doFilterDetailsWithCount('1'); //$mobileAPITestController->doFetchAllAlerts(); //$mobileAPITestController->doAlertDetailsWithMessage(5); //$mobileAPITestController->doListModuleRecords('Calendar'); //$mobileAPITestController->doFetchRecord('9x0', true); //$mobileAPITestController->doDescribe('Documents'); //$mobileAPITestController->doSave('Leads', '2x0', array('lastname'=>'Testing', 'company'=>'Company')); //$mobileAPITestController->doSync('HelpDesk');//, 0, 1277646523, 'public');//, 0, 1277234885);// 1271240542); //$mobileAPITestController->doScanImage(); //$mobileAPITestController->doFetchRecordsWithGrouping('Potentials', 'alertid', '4') //$mobileAPITestController->doQuery('Contacts', "SELECT firstname,lastname,account_id FROM Contacts LIMIT 1,2;"); //$mobileAPITestController->doQuery('Contacts', "SELECT * FROM Contacts;", 0, true); //$mobileAPITestController->doRelatedRecordsWithGrouping('3x2', 'Contacts', 1);
<?php /*+********************************************************************************** * The contents of this file are subject to the vtiger CRM Public License Version 1.0 * ("License"); You may not use this file except in compliance with the License * The Original Code is: vtiger CRM Open Source * The Initial Developer of the Original Code is vtiger. * Portions created by vtiger are Copyright (C) vtiger. * All Rights Reserved. ************************************************************************************/ chdir('../../'); header('Content-type: text/plain'); include_once 'vtlib/Vtiger/Net/Client.php'; include_once 'include/Zend/Json.php'; $mobileAPITestController = new Mobile_API_TestController(); $mobileAPITestController->doLoginAndFetchModules('admin', 'admin'); //$mobileAPITestController->doLogin('standarduser', 'standarduser'); //$mobileAPITestController->doFetchModuleFilters('Leads'); //$mobileAPITestController->doFilterDetailsWithCount('1'); //$mobileAPITestController->doFetchAllAlerts(); //$mobileAPITestController->doAlertDetailsWithMessage(5); //$mobileAPITestController->doListModuleRecords('Calendar'); //$mobileAPITestController->doFetchRecord('9x0', true); $mobileAPITestController->doDescribe('Documents'); //$mobileAPITestController->doSave('Leads', '2x0', array('lastname'=>'Testing', 'company'=>'Company')); //$mobileAPITestController->doSync('HelpDesk');//, 0, 1277646523, 'public');//, 0, 1277234885);// 1271240542); //$mobileAPITestController->doScanImage(); //$mobileAPITestController->doFetchRecordsWithGrouping('Potentials', 'alertid', '4') //$mobileAPITestController->doQuery('Contacts', "SELECT firstname,lastname,account_id FROM Contacts LIMIT 1,2;"); //$mobileAPITestController->doQuery('Contacts', "SELECT * FROM Contacts;", 0, true); //$mobileAPITestController->doRelatedRecordsWithGrouping('3x2', 'Contacts', 1);