This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends: ["spectral:oas"] | |
rules: | |
operation-operationId: off | |
operation-tags: off | |
operation-tag-defined: off | |
operation-description: off | |
info-contact: off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
repositories { | |
// Use Maven Central for resolving dependencies. | |
mavenCentral() | |
} | |
dependencies { | |
// Use JUnit test framework. | |
testImplementation libs.junit | |
// This dependency is used by the application. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// indexes into the users and message folders collections using the fluent style API to list out messages | |
client.UserById("[email protected]").MessageFoldersById("Inbox").Messages().Get(nil) | |
// sends a message using the models and the fluent style API POST method | |
requestBody := msgraphsdk.NewSendMailRequestBody() | |
message := msgraphsdk.NewMessage() | |
requestBody.SetMessage(message) | |
subject := "Meet for lunch?" | |
message.SetSubject(&subject) | |
body := msgraphsdk.NewItemBody() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ( | |
azidentity "github.com/Azure/azure-sdk-for-go/sdk/azidentity" | |
a "github.com/microsoft/kiota/authentication/go/azure" | |
"context" | |
// this line imports the v1.0 SDK | |
msgraphsdk "github.com/microsoftgraph/msgraph-sdk-go" | |
// this line imports the beta SDK | |
msgraphbetasdk "github.com/microsoftgraph/msgraph-beta-sdk-go" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ( | |
azidentity "github.com/Azure/azure-sdk-for-go/sdk/azidentity" | |
a "github.com/microsoft/kiota/authentication/go/azure" | |
"context" | |
msgraphsdk "github.com/microsoftgraph/msgraph-sdk-go" | |
) | |
// the following block creates a new device code credential using the Azure Identity library which will be used by the authentication provider to obtain an access token for requests | |
cred, err := azidentity.NewDeviceCodeCredential(&azidentity.DeviceCodeCredentialOptions{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$accessToken = "<AccessTokenWithMailSendPermission>" | |
$srcFileName = "PathToRequestPayloadUncompress-SeeOtherFile" | |
$destFileName = "APath" | |
$srcFileStream = New-Object System.IO.FileStream($srcFileName,([IO.FileMode]::Open),([IO.FileAccess]::Read),([IO.FileShare]::Read)) | |
$destFileStream = New-Object System.IO.FileStream($destFileName,([IO.FileMode]::Create),([IO.FileAccess]::Write),([IO.FileShare]::None)) | |
$gzip = New-Object System.IO.Compression.GZipStream($destFileStream,[System.IO.Compression.CompressionMode]::Compress) | |
$gzip.CopyTo($srcFileStream) | |
$gzip.Flush() | |
$destFileStream.Dispose() | |
Invoke-WebRequest -UseBasicParsing -Uri "https://graph.microsoft.com/v1.0/me/sendMail" ` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. General Change notifications concepts | |
https://docs.microsoft.com/en-us/graph/webhooks | |
# 2. Change notifications with resource data | |
https://docs.microsoft.com/en-us/graph/webhooks-with-resource-data | |
# 3. Lifecycle notifications | |
https://docs.microsoft.com/en-us/graph/webhooks-outlook-authz | |
# 4. Azure Event Hubs delivery |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ACTIVITY_TYPE_DIGITAL, DIGITAL_CATEGORY_EMAIL } from '../../definitions'; | |
export const modelName = 'email'; | |
export const modelVersion = '1'; | |
export const explanation = { | |
text: | |
'Calculations take into account the direct emissions associated with the email infrastructure worldwide.', | |
links: [ | |
{ | |
label: 'Phys.org (2015)', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param([String]$version) | |
Install-PackageProvider -Name NuGet -Force -Scope "CurrentUser" | |
if($version -ne "") { | |
Install-Module SharePointPnPPowerShellOnline -Scope "CurrentUser" -RequiredVersion $version -Verbose -AllowClobber -Force | |
} else { | |
Install-Module SharePointPnPPowerShellOnline -Scope "CurrentUser" -Verbose -AllowClobber -Force | |
} |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
0 warn pnpm: | |
message: "using --force I sure hope you know what you are doing" | |
prefix: "C:\\sources\\gitttl\\SiteCreation\\SiteCreationForm" | |
1 info pnpm: | |
message: "Installing a flat node_modules. Use flat node_modules only if you rely on buggy dependencies that you cannot fix." | |
prefix: "C:\\sources\\gitttl\\SiteCreation\\SiteCreationForm" | |
2 debug pnpm:package-json: | |
initial: | |
name: "site-creation-form" |
NewerOlder