Advertisement
Guest User

Untitled

a guest
Sep 17th, 2014
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. <?php
  2.  
  3. require_once('../lib/organisation.class.php');
  4. require_once('../lib/event.class.php');
  5. require_once('../lib/venue.class.php');
  6. require_once('../lib/role.class.php');
  7. require_once('../lib/branch.class.php');
  8. require_once('../lib/booking.class.php');
  9. require_once('../lib/care_webservice.class.php');
  10. require_once('../lib/nct_webservice.class.php');
  11. require_once('../lib/utility.lib.php');
  12. session_start();
  13.  
  14.  
  15. //true = test, false = live
  16. $client = Care_Webservice::getInstance(true);
  17. /**
  18. 'country' => 'GB',
  19. 'source' => 'IBIZ1',
  20. 's_only' => 'N',
  21. 'telephone' => '07711 345 123',
  22. 'cnum' => '2445554',
  23. 's_dpa' => 'Y',
  24. 'town' => 'LONDON',
  25. 'mobile' => '',
  26. 'surname' => 'Xyz',
  27. 'email' => 'rimpu.garg@nct.org.uk',
  28. 'house_name' => '',
  29. 'forenames' => 'Abc',
  30. 'county' => undef,
  31. 'address' => '12 Road',
  32. 'title' => '',
  33. 'postcode' => 'W13 1XY'
  34. **/
  35. $ppNums = array(
  36. array('pp' => 'shahid.qureshi', 'pf' => '2445554', 'pg' => 'No', 'ph' => '2014/09/16', 'pi' => '2114/09/25', 'pj' => 'added for testing'),
  37. );
  38.  
  39. $eventService = 'UpdateSuppression';
  40.  
  41. foreach ($ppNums as $ppnum) {
  42. $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' ));
  43. print_r($client->doMethod($eventService, $eventParams));
  44. }
  45.  
  46.  
  47. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement