Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 885 Bytes

File metadata and controls

25 lines (18 loc) · 885 Bytes
description Automatically generated file. DO NOT MODIFY
<?php
use Microsoft\Graph\Beta\GraphServiceClient;
use Microsoft\Graph\Beta\Generated\Models\PersonAward;
use Microsoft\Kiota\Abstractions\Types\Date;


$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);

$requestBody = new PersonAward();
$requestBody->setDescription('Lifetime Achievement award from the International Association of Branding Managers');
$requestBody->setDisplayName('Lifetime Achievement Award For Excellence in Branding');
$requestBody->setIssuedDate(new Date('Date'));
$requestBody->setIssuingAuthority('International Association of Branding Management');
$requestBody->setThumbnailUrl('https://iabm.io/sdhdfhsdhshsd.jpg');
$requestBody->setWebUrl('https://www.iabm.io');

$result = $graphServiceClient->me()->profile()->awards()->post($requestBody)->wait();