Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once('../lib/organisation.class.php');
- require_once('../lib/event.class.php');
- require_once('../lib/venue.class.php');
- require_once('../lib/role.class.php');
- require_once('../lib/branch.class.php');
- require_once('../lib/booking.class.php');
- require_once('../lib/care_webservice.class.php');
- require_once('../lib/nct_webservice.class.php');
- require_once('../lib/utility.lib.php');
- session_start();
- //true = test, false = live
- $client = Care_Webservice::getInstance(true);
- /**
- 'country' => 'GB',
- 'source' => 'IBIZ1',
- 's_only' => 'N',
- 'telephone' => '07711 345 123',
- 'cnum' => '2445554',
- 's_dpa' => 'Y',
- 'town' => 'LONDON',
- 'mobile' => '',
- 'surname' => 'Xyz',
- 'email' => 'rimpu.garg@nct.org.uk',
- 'house_name' => '',
- 'forenames' => 'Abc',
- 'county' => undef,
- 'address' => '12 Road',
- 'title' => '',
- 'postcode' => 'W13 1XY'
- **/
- $ppNums = array(
- array('pp' => 'shahid.qureshi', 'pf' => '2445554', 'pg' => 'No', 'ph' => '2014/09/16', 'pi' => '2114/09/25', 'pj' => 'added for testing'),
- );
- $eventService = 'UpdateSuppression';
- foreach ($ppNums as $ppnum) {
- $eventParams = array('params' => array('UserID' => $ppnum['pp'], 'ContactNumber' => $ppnum['pf'], 'Suppression' => $ppnum['pg'],'OldSuppression' => 'ONLY', 'ValidFrom' => $ppnum['ph'], 'ValidTo' => $ppnum['pi'], 'Notes' => $ppnum['pj'], 'OldValidFrom' => '2114/09/11','OldValidTo' => '2199/09/11' ));
- print_r($client->doMethod($eventService, $eventParams));
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement