Memotoo
New features for MemotooRSS Feed
You have ideas and desires to improve service
Informations:
Number of messages: 441
Number of posts: 1468
Last posted: 2023-01-15 - 10:20
Last visit: 2024-04-19 - 13:18
Number of posts not read since your last visit: 0
Bookmark and Share
Return to the forum - Forums list - Reply to this post - New message - Search a postSearch a post

Agenda : Ajout, modification, suppression d'évenenmentsRSS Feed



Author Message
Philippe

Translate this message to:
BulgarianChinese (Traditional)CroatianCzechEnglishFinnishFrancaisGermanGreek
HindiItalianJapaneseNederlandsNorwegianPortugueseRussianSpanishSwedish
smile Posted 2015-11-16 - 17:21

Bonjour,

Serait-il possible dans le cas d'ajout, de modification ou de suppression d'évenenments d'avoir en retour un accusé de réception avec entre autre l' UID de l'évenement créé, modifié ou supprimé de manière à synchroniser avec un logiciel local ?

Merci,



3 Replie(s)
Author Message
Thomas - Webmaster Memotoo
Thomas - Webmaster Memotoo


Translate this message to:
BulgarianChinese (Traditional)CroatianCzechEnglishFinnishFrancaisGermanGreek
HindiItalianJapaneseNederlandsNorwegianPortugueseRussianSpanishSwedish
smile Posted 2015-11-17 - 08:55     Subject: Re: Agenda : Ajout, modification, suppression d'évenenments

Bonjour

Je ne comprends pas vraiment votre question... Pouvez-vous me donner un exemple ?


Philippe

Translate this message to:
BulgarianChinese (Traditional)CroatianCzechEnglishFinnishFrancaisGermanGreek
HindiItalianJapaneseNederlandsNorwegianPortugueseRussianSpanishSwedish
smile Posted 2015-11-29 - 17:05     Subject: Re: Re: Agenda : Ajout, modification, suppression d'évenenments

Bonjour,

Voici un script php d'ajout d'un évènement :

$user = "*****";
$password = "*****";
$url = " https://sync.memotoo.com/calendarICS.php";
$userpwd = $user.":".$password;

$data = "BEGIN:VCALENDAR".("\n");
$data .= "VERSION:2.0".("\n");
$data .= "PRODID:-//Memotoo//Memotoo Calendar 2.8//EN".("\n");
$data .= "CALSCALE:GREGORIAN".("\n");
$data .= "X-WR-CALNAME:Calendrier Philippe Bienvault".("\n");
$data .= "X-WR-CALDESC:Memotoo Calendrier Philippe Bienvault(Lecture / Ecriture)".("\n");
$data .= "BEGIN:VEVENT".("\n");
$data .= "DTSTART:20151229T110000Z".("\n");
$data .= "DTEND:20151229T120000Z".("\n");
$data .= "DESCRIPTION:la description".("\n");
$data .= "LOCATION:Lyon".("\n");
$data .= "SUMMARY:Essai Ajout php pppppppppppppppppppppppppppppppppppppppp".("\n");
$data .= "CATEGORIES:cecile".("\n");
$data .= "END:VEVENT".("\n");
$data .= "END:VCALENDAR".("\n");

$headers = array("Content-type:application/x-www-form-urlencoded");

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, True);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_USERPWD, $userpwd);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
$retours = curl_exec($ch);
curl_close($ch);


A l'exécution de ce script (qui ajoute bien un évènement), j'ai dans la variable $retour le code html suivant renvoyé par memotoo :

Moved Permanently

The document has moved here.


Serait-il possible d'avoir en retour UID de l'évènement créé au lieu de ce code html ?

Merci,

Philippe Bienvault.


Thomas - Webmaster Memotoo
Thomas - Webmaster Memotoo


Translate this message to:
BulgarianChinese (Traditional)CroatianCzechEnglishFinnishFrancaisGermanGreek
HindiItalianJapaneseNederlandsNorwegianPortugueseRussianSpanishSwedish
smile Posted 2015-11-30 - 14:07     Subject: Re: Re: Agenda : Ajout, modification, suppression d'évenenments

Bonjour Philippe

Merci pour l'exemple je comprends mieux.

Pour avoir un UID en retour à l'ajout de l'événement, je vous conseille d'utiliser plutot l'API de Memotoo via SOAP:
https://www.memotoo.com/fr/index.php?rub=api#SOAP-server.php
https://www.memotoo.com/mesdocsActions.php?action=viewFile&uid=bdd312e588c3dbc4a...

Voici des exemples qui vous permettrons de voir comment cela marche:
https://www.memotoo.com/folderPublic.php?uid=b04816fd22ab8351b36cfbd1e0598b14&ke...


Memotoo Cloud My Address Book Ask my contacts to update their information
Return to the forum - Forums list - Reply to this post - New message - Search a postSearch a post