-
Notifications
You must be signed in to change notification settings - Fork 2
/
addEtDate.php
40 lines (29 loc) · 932 Bytes
/
addEtDate.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
include('config.php');
try {
// Fügt einen Termin zu einem Stammdatensatz hinzu. Dadurch ensteht eine "Reihe"
// http://handbuch.evangelische-termine.de/soap-api-dokumentation#addEtDate
#mit eventid
$date = new StdClass();
$date->mode = "vonbis";
$date->start = "2017-04-16 14:32:00";
$date->end = "";
$date->eventid = 1280784;
$date->subtitle = "Mit Kirchenkaffee";
$date->externalid = "extern-656777";
#$ret = $client->addEtDate($date );
#var_dump($ret);
#mit externalid
$date = new StdClass();
$date->mode = "vonbis";
$date->start = "2017-04-18 12:39:00";
$date->end = "";
$date->eventid = 'extern-54321'; # externalid des events
$date->subtitle = "Ohne Kirchenkaffee";
$date->externalid = "extern-656777"; # externalid für date
$ret = $client->addEtDate($date, true );
var_dump($ret);
} catch(SoapFault $exp){
echo $exp->getMessage();
print $client->__getLastResponse();
}