| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- #!/usr/bin/php
- <?php
- require_once dirname(__FILE__) . '/../../common.php';
- system('clear');
- print(Demos_Zend_Service_LiveDocx_Helper::wrapLine(
- PHP_EOL . 'Using the Free Public Server' .
- PHP_EOL .
- PHP_EOL . 'This sample application illustrates how to use Zend_Service_LiveDocx_MailMerge with the free, public LiveDocx server.' .
- PHP_EOL .
- PHP_EOL)
- );
- $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge();
- $phpLiveDocx->setUsername(Demos_Zend_Service_LiveDocx_Helper::USERNAME)
- ->setPassword(Demos_Zend_Service_LiveDocx_Helper::PASSWORD);
- $phpLiveDocx->getTemplateFormats(); // then call methods as usual
- printf('Username : %s%sPassword : %s%s WSDL : %s%s%s',
- $phpLiveDocx->getUsername(),
- PHP_EOL,
- $phpLiveDocx->getPassword(),
- PHP_EOL,
- $phpLiveDocx->getWsdl(),
- PHP_EOL,
- PHP_EOL
- );
- unset($phpLiveDocx);
- // -----------------------------------------------------------------------------
- // Alternatively, you can pass username and password in the constructor.
- $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge(
- array (
- 'username' => Demos_Zend_Service_LiveDocx_Helper::USERNAME,
- 'password' => Demos_Zend_Service_LiveDocx_Helper::PASSWORD,
- )
- );
- $phpLiveDocx->getTemplateFormats(); // then call methods as usual
- printf('Username : %s%sPassword : %s%s WSDL : %s%s%s',
- $phpLiveDocx->getUsername(),
- PHP_EOL,
- $phpLiveDocx->getPassword(),
- PHP_EOL,
- $phpLiveDocx->getWsdl(),
- PHP_EOL,
- PHP_EOL
- );
- unset($phpLiveDocx);
|