Skip to content

0x750/GraphRESTClient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Graph REST Client

A Python client to use the Microsoft Graph API as an application.

Exemple :

import GraphRESTClient as grc

client = grc.GraphRESTClient(
    'example.com', {
        'client_id' : "********-****-****-****-************",
        'scope' : "https://graph.microsoft.com/.default",
        'client_secret' : "***********************",
        'grant_type' : "client_credentials"
    }
)

rep = client.api(
        '/v1.0/users'
    ).select(
        ['displayName', 'mail']
    ).top(1).pages(2).get()

This request will return the display name and mail for the first user of the 2 first pages.

TODO

  • More standard API
  • POST, PATCH, DELETE methods
  • Auth Token management
    • Renew Token
    • Auto check and renew token

About

Python REST client for Microsoft GRAPH API in application connection context

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages