Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 903 Bytes

File metadata and controls

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


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

$requestBody = new ItemPublication();
$requestBody->setDescription('One persons journey to the top of the branding management field.');
$requestBody->setDisplayName('Got Brands? The story of Innocenty Popov and his journey to the top.');
$requestBody->setPublishedDate(new Date('Date'));
$requestBody->setPublisher('International Association of Branding Management Publishing');
$requestBody->setThumbnailUrl('https://iabm.io/sdhdfhsdhshsd.jpg');
$requestBody->setWebUrl('https://www.iabm.io');

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