Ich hätte noch ein paar Fragen, wie man einen Termin einträgt, bevor ich das alles umsetze. Zur Illustration habe ich die Request-Parameter unten angehängt.
1) Ist "checkBusyConficts" eigentlich ein Schreibfehler?
3) Müssen immer
alle Felder übergeben werden (z.B. "creation_*", "last_modified_*", "deleted_*", "id" etc.) - einige werden doch (hoffentlich) vom Server überschrieben?
3) Warum wird bei "container_id" eigentlich der gesamte Kalendar-Container übergeben? Buchstäblich müsste doch lediglich die id (hier 2310) ausreichen?
4a) Ähnlich wie bei 3) der "organizer", mir scheint auch das ein gesamter (interner) Adressbucheintrag zu sein. Reicht da nicht auch die Id?
4b) "attendee" ist ein Array, der Organizer das erste Member. Welche "user_type" gibt es? Reicht es im Falle von "user" nicht, bei "user_id" die Id statt des ganzen Accounts zu übergeben?
5) Verständnisfrage: Wie stelle ich wiederkehrende Events mit Ausnahmen her? In welchem Zusammenhang steht da "recurid" und "exdate" (offensichtlich ein Array, mit Datum/Startzeit). Welche "rrule" gibt es, welche weiteren parameter kennen sie?
Besonders die letzte Frage wäre mir wichtig, ich würde mich über eine Antwort freuen.
- Code: Select all
"recordData": {
"container_id": {
"id": "2310",
"name": "Test",
"type": "personal",
"backend": "Sql",
"color": "#FF00FF",
"application_id": "2fc3822724df1e7defbf1c5ca214fb587e03b5ba",
"created_by": "4928b5e3232cfe053a76a31d07e4a11416ee9566",
"creation_time": "2011-10-22 22:57:38",
"last_modified_by": null,
"last_modified_time": null,
"is_deleted": "0",
"deleted_by": null,
"deleted_time": null,
"account_grants": {
"readGrant": true,
"addGrant": true,
"editGrant": true,
"deleteGrant": true,
"privateGrant": true,
"exportGrant": true,
"syncGrant": true,
"adminGrant": true,
"freebusyGrant": true,
"account_id": "4928b5e3232cfe053a76a31d07e4a11416ee9566",
"account_type": "account"
},
"is_container_node": false
},
"creation_time": "",
"created_by": "",
"last_modified_time": "",
"last_modified_by": "",
"is_deleted": "",
"deleted_time": "",
"deleted_by": "",
"id": "",
"dtend": "2012-01-02 19:00:00",
"transp": "OPAQUE",
"class": "PUBLIC",
"description": "",
"geo": "",
"location": "",
"organizer": {
"id": "4",
"adr_one_countryname": null,
"adr_one_locality": null,
"adr_one_postalcode": null,
"adr_one_region": null,
"adr_one_street": null,
"adr_one_street2": null,
"adr_two_countryname": null,
"adr_two_locality": null,
"adr_two_postalcode": null,
"adr_two_region": null,
"adr_two_street": null,
"adr_two_street2": null,
"assistent": null,
"bday": null,
"calendar_uri": null,
"email": "",
"email_home": null,
"freebusy_uri": null,
"geo": null,
"note": null,
"container_id": "2",
"pubkey": null,
"role": null,
"room": null,
"salutation_id": null,
"title": null,
"tz": null,
"url": null,
"url_home": null,
"n_family": "user",
"n_fileas": "user, demo",
"n_fn": "demo user",
"n_given": "demo",
"n_middle": null,
"n_prefix": null,
"n_suffix": null,
"org_name": null,
"org_unit": null,
"tel_assistent": null,
"tel_car": null,
"tel_cell": null,
"tel_cell_private": null,
"tel_fax": null,
"tel_fax_home": null,
"tel_home": null,
"tel_other": null,
"tel_pager": null,
"tel_prefer": null,
"tel_work": null,
"created_by": "05ba52b53189ca9d4d8caf42baac9beb0b15b976",
"creation_time": "2009-07-21 10:41:25",
"last_modified_by": null,
"last_modified_time": null,
"is_deleted": "0",
"deleted_by": null,
"deleted_time": null,
"lon": null,
"lat": null,
"type": "user",
"jpegphoto": "0",
"account_id": "4928b5e3232cfe053a76a31d07e4a11416ee9566"
},
"priority": "",
"status_id": "",
"summary": "Testtermin",
"url": "",
"uid": "",
"attendee": [
{
"user_type": "user",
"role": "REQ",
"quantity": 1,
"status": "ACCEPTED",
"user_id": {
"accountId": "4928b5e3232cfe053a76a31d07e4a11416ee9566",
"accountLoginName": "tine20demo",
"accountLastLogin": "2012-01-02 15:53:08",
"accountLastLoginfrom": "91.66.77.28",
"accountLastPasswordChange": "2009-07-21 10:41:25",
"accountStatus": "enabled",
"accountExpires": null,
"accountPrimaryGroup": "c86d1e3f2d879837c95d5ba65c052aea279c77e1",
"accountHomeDirectory": "",
"accountLoginShell": "",
"accountDisplayName": "user, demo",
"accountFullName": "demo user",
"accountFirstName": "demo",
"accountLastName": "user",
"accountEmailAddress": "",
"lastLoginFailure": "2011-10-25 17:26:13",
"loginFailures": "0",
"contact_id": "4",
"openid": null,
"visibility": "displayed",
"container_id": "2"
}
}
],
"alarms": "",
"tags": [ ],
"notes": [ ],
"dtstart": "2012-01-02 18:00:00",
"recurid": "",
"exdate": "",
"rrule": "",
"is_all_day_event": false,
"rrule_until": "",
"originator_tz": "",
"readGrant": false,
"editGrant": true,
"deleteGrant": false
},
"checkBusyConficts": 1