This is content converted from Markdown!
Here's a JSON sample:
{
"foo": "bar"
}
var userId = "some-id"; | |
var mailboxSettings = new MailboxSettings | |
{ | |
AutomaticRepliesSetting = new AutomaticRepliesSetting | |
{ | |
Status = AutomaticRepliesStatus.AlwaysEnabled, | |
InternalReplyMessage = "Hi", | |
ExternalReplyMessage = "Bye" | |
} |
private List<SecurityKey> GetSigningKeys() | |
{ | |
// TODO: Implement a cache of signing keys with the auth metadata URL | |
// as an index | |
// When requests come in to validate a token, check if you already have cached signing keys | |
// for that URL | |
// Load tokens | |
var webClient = new WebClient(); | |
var authMetaData = JsonConvert.DeserializeObject<ExchangeAuthMetadata>(webClient.DownloadString(AppContext.MetadataUrl)); |
#! /usr/local/bin/python | |
"""Sends an actionable message to yourself | |
Usage: 'sendactionablemessage.py -u <username> -p <password>' | |
""" | |
import sys | |
import getopt | |
from smtplib import SMTP as SMTP | |
from email.mime.text import MIMEText |
<html> | |
<head> | |
<style> | |
h1 { | |
font-family: Calibri; | |
} | |
</style> | |
</head> | |
<body> | |
<h1>Hello World!</h1> |
// When using the v2 or beta endpoints of the Outlook API, the OutlookServicesClient class sends PATCH requests | |
// to a URL that contains the user's unique identifier in <guid>@<guid> format. This fails when authenticating | |
// with an app-only token. | |
// To work around this, you can implement an event handler for the BuildingRequest event on the client's .Context | |
// property, and replace the old user spec with the user's email. | |
// Sample function that calls an update on an event | |
public async Task<ActionResult> UpdateEvent(AppState passedAppState) | |
{ |