Bonjour,
Je souhaite récupérer mes emails par un système de web service, pouvez-vous m'aider ?
Mon application fonctionne mais je dois saisir le login et mot de passe à chaque fois que je lance l'application. Et je récupère mes 150 emails mais comment je peux récupérer seulement les emails d'un jour donné en paramètre .
Merci
private static $outlookApiUrl = "https://outlook.office.com/api/v2.0";
public static function makeApiCall($access_token, $user_email, $method, $url, $payload = NULL) {
// Generate the list of headers to always send.
$headers = array(
"User-Agent: php-tutorial/1.0", // Sending a User-Agent header is a best practice.
"Authorization: Bearer ".$access_token, // Always need our auth token!
"Accept: application/json", // Always accept JSON response.
"client-request-id: ".self::makeGuid(), // Stamp each new request with a new GUID.
"return-client-request-id: true", // Tell the server to include our request-id GUID in the response.
"X-AnchorMailbox: ".$user_email // Provider user's email to optimize routing of API call
);