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
<?php | |
use KiotaPosts\Client\PostsApiClient; | |
use KiotaPosts\Client\Models\Post; | |
use Microsoft\Kiota\Abstractions\ApiException; | |
use Microsoft\Kiota\Abstractions\Authentication\AnonymousAuthenticationProvider; | |
use Microsoft\Kiota\Http\GuzzleRequestAdapter; | |
require __DIR__.'/vendor/autoload.php'; |
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
kiota generate -l PHP -d https://raw.githubusercontent.com/microsoft/kiota-samples/main/get-started/quickstart/posts-api.yml -c PostsApiClient -n KiotaPosts\Client -o ./client |
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
composer require microsoft/kiota-abstractions | |
composer require microsoft/kiota-http-guzzle | |
composer require microsoft/kiota-serialization-json | |
composer require microsoft/kiota-serialization-text |
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
dotnet tool install --global Microsoft.OpenApi.Kiota |
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 asyncio | |
from kiota_abstractions.authentication.anonymous_authentication_provider import ( | |
AnonymousAuthenticationProvider) | |
from kiota_http.httpx_request_adapter import HttpxRequestAdapter | |
from client.posts_client import PostsClient | |
from client.models.post import Post | |
async def main(): | |
# You may need this if your're using asyncio on windows | |
# See: https://stackoverflow.com/questions/63860576 |
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
kiota generate -l python -c PostsClient -n client -d https://raw.githubusercontent.com/microsoft/kiota-samples/main/get-started/quickstart/posts-api.yml -o ./client |
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
pip install microsoft-kiota-abstractions | |
pip install microsoft-kiota-http | |
pip install microsoft-kiota-serialization-json | |
pip install microsoft-kiota-serialization-text |
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 asyncio | |
from azure.identity.aio import ClientSecretCredential | |
from msgraph import GraphServiceClient | |
credential = ClientSecretCredential( | |
'tenant_id', | |
'client_id', | |
'client_secret' | |
) | |
scopes = ['https://graph.microsoft.com/.default'] |
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
<?php | |
use Microsoft\Graph\GraphServiceClient; | |
use Microsoft\Kiota\Abstractions\ApiException; | |
use Microsoft\Kiota\Authentication\Oauth\ClientCredentialContext; | |
set_include_path(__DIR__); | |
require 'vendor/autoload.php'; | |
$tokenRequestContext = new ClientCredentialContext( | |
'tenantID', |
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
{ | |
"name": "isvargasmsft/phpdemoapp", | |
"description": "This is an app for demos", | |
"authors": [ | |
{ | |
"name": "y" | |
} | |
], | |
"minimum-stability": "RC", | |
"require": { |
NewerOlder