Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
509
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. <?php
  2. /**
  3. * Example script to use the Copernica SOAP API.
  4. * @documentation private
  5. * @version 1.3
  6. */
  7. require_once(__DIR__.'/soapclient.php');
  8.  
  9. /**
  10. * Example PHP calls to the SOAP API
  11. */
  12. try
  13. {
  14. /**
  15. * Credentials to access the Copernica SOAP API
  16. * @var string
  17. */
  18. $email = "boris.degroot@copernica.com";
  19. $password = "!Boris123@.C";
  20.  
  21. /**
  22. * The account name, it's also possible to set the account
  23. * after a connection has been established with the SOAP API.
  24. * @var string | NULL
  25. */
  26. //$account = "standaard boekhandel";
  27. $account = "test_account_Boris";
  28.  
  29. /**
  30. * SOAP API url
  31. * This must be a valid hostname on which the server is reachable on.
  32. * Default server: http://soap.copernica.com
  33. * @var string
  34. */
  35. //$url = "http://publisher/";
  36. $url = 'https://soap.copernica.com/';
  37.  
  38. /**
  39. * Charset
  40. * @var string
  41. */
  42. $charset = "iso-8859-1";
  43.  
  44. /**
  45. * Instantiate SOAP api client
  46. */
  47. $soapclient = new PomSoapClient($email, $password, $account, $url, $charset);
  48. echo("-------\n");
  49. var_dump(
  50. $soapclient->Collection_searchSubProfiles(array(
  51. 'id' => 7,
  52. 'requirements' => array(
  53. $soapclient->toObject(array(
  54. 'fieldname' => 'modified',
  55. 'casesensitive' => 'true',
  56. 'operator' => '<',
  57. 'value' => '2017-01-01 00:00:00'
  58. ))
  59.  
  60. ),
  61. //'allproperties' => 'true'
  62. ))
  63. );
  64. echo("-------\n");
  65. }
  66. catch(exception $e){
  67. echo $e;
  68. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement