Це відео не доступне.
Перепрошуємо.

How To Create Access Token From Microsoft Graph API In Python

Поділитися
Вставка
  • Опубліковано 18 сер 2024

КОМЕНТАРІ • 37

  • @CepetiTech
    @CepetiTech 11 місяців тому +4

    Wasn't method 1 supposed to not require user input? User has to open browser every time to get a new token

  • @barbaraferro5203
    @barbaraferro5203 Рік тому

    Thanks for the tutorial, your explanation is very good

  • @mariamqotob767
    @mariamqotob767 Рік тому +1

    The video is really useful and the only online clear walk through I got by. However the first method uses two depricated functions `get_authorization_request_url` and `acquire_token_by_authorization_code`.
    I want to use `initiate_auth_code_flow` and `acquire_token_by_auth_code_flow` instead.
    I'm facing a problem that `acquire_token_by_auth_code_flow` requires argument `auth_response: dict` and I can't figure out how to get it in a pure python script.

    • @jiejenn
      @jiejenn  Рік тому +1

      Hi Mariam, thanks for the update; didn't realize the first two methods are depreciated. Let me look into an alternative and I will make an update video.

    • @stefano8840
      @stefano8840 Рік тому

      @@jiejenn Hey! Would be good if you did it

  • @adityamathur5972
    @adityamathur5972 10 місяців тому +1

    Can code be written to create a custom schedule in onedrive to make older files in just one onedrive folder to be available online only while recent ones available online AND offline?

  • @aragaorj
    @aragaorj Місяць тому

    I needed to understand how to search for the type of event that occurred with a schedule.
    For example, when it is canceled there is the iscanceled attribute, but for appointments that have been declined and are still listed on the calendar, how do I get their status? I already did a search and didn't find this.
    My purpose is to program a script to search for declined appointments and delete them automatically.

  • @vishnupradhaban2189
    @vishnupradhaban2189 Рік тому +1

    how to do this without the authorization code???? is it possible?

  • @johnnyarguello6402
    @johnnyarguello6402 Рік тому +1

    can i get the access token without opening any window? Only by my code?

  • @artemglebov8234
    @artemglebov8234 2 роки тому +1

    Thanks a lot of your tutorial!
    Is there solution how to get token before expire code?

  • @andysalas1812
    @andysalas1812 Рік тому +1

    In Public client it gives me an error AADSTS70002: The provided client is not supported for this feature. what should I do?

    • @jiejenn
      @jiejenn  Рік тому

      Not sure. I would probably Google the error.

  • @sammalcolm1854
    @sammalcolm1854 Рік тому

    Is this the same the same thing as a "Azure Active Directory (Azure AD) access token in the form Bearer "? Or is an Azure AD token something seperate?

    • @jiejenn
      @jiejenn  Рік тому

      This is separated from Azure AD

  • @Plok26
    @Plok26 Місяць тому

    Do you have a tutorial on how to insert data into a Sharepoint list in python sir?

    • @jiejenn
      @jiejenn  Місяць тому

      I don't have experience working with SharePoint unfortunately.

  • @RealOnlyDor
    @RealOnlyDor Рік тому +1

    Is it possible to get the code without opening the browser and just through the code itself?

    • @jiejenn
      @jiejenn  Рік тому

      One approach is to precreate the token file first.

    • @RealOnlyDor
      @RealOnlyDor Рік тому +1

      @@jiejenn Is there a long-lasting token? My aim is to make this code a file server that will take/return files between onedirve and another server. It won't be feasible if I need a token every 1 hour and can't automate it's generation completely.

    • @jiejenn
      @jiejenn  Рік тому

      Maybe ask Google.

    • @patriciarivaltamachado8127
      @patriciarivaltamachado8127 9 місяців тому

      @@RealOnlyDor Hi did you figure it out?

  • @markkevin3379
    @markkevin3379 Рік тому +1

    Thanks a lot for this tutorial! We're transitioning from basic authentication to OAuth as Microsoft is depreciating the former.
    I've tried the authorization code method but I'm getting a ridiculously long authorization code and returns an "AADSTS9002313: Invalid request. Request is malformed or invalid. suberror: 'bad_token'" error. Any clues on this one?

    • @jiejenn
      @jiejenn  Рік тому

      Could be many reasons. Without looking at your app and code, I can only guess you have a typo or two or your app is not set up correctly.

  • @prashanth928
    @prashanth928 7 місяців тому

    Hi i just want to know how can i see pstn calls in azure databricks.... can you please help me on that

    • @jiejenn
      @jiejenn  7 місяців тому +1

      I don't know how.

  • @user-oc6wj6ov6t
    @user-oc6wj6ov6t 8 місяців тому

    Nice tutorial, how do I create the app?

    • @50PullUps
      @50PullUps 3 місяці тому

      The UA-cam channel Intune Training has an EXCELLENT playlist titled ‘Graph 101’ that explains how to create the app registration and how to create the necessary ‘delegated permissions grants’ for the app registration.

  • @jimtesting5437
    @jimtesting5437 2 роки тому

    Will this create a token to be able to create new events in an outlook calendar?

    • @jiejenn
      @jiejenn  2 роки тому

      Can you clarify your question, not sure if I understand.

    • @jimtesting5437
      @jimtesting5437 2 роки тому

      @@jiejenn I'm trying to create a calendar event with Microsoft graph API similar to your other video with google calendar API. But I keep getting different errors with my token. Any chance of a video showing how to create an event in outlook with Graph?

    • @jiejenn
      @jiejenn  2 роки тому

      @@jimtesting5437 I might have to look into it.

  • @simonebollati5285
    @simonebollati5285 2 роки тому

    Sorry but the first method don't work for me, this is the my browser error after opening the link: ERR_EMPTY_RESPONSE.
    The login page does not appear, can you help me to resolve ?
    Thanks a lot

    • @jiejenn
      @jiejenn  2 роки тому

      Have you tried Google the error?

  • @cadugevaerd
    @cadugevaerd 2 роки тому

    how can i use my corporative login? If i try to login, i dont receive de Code.

    • @jiejenn
      @jiejenn  2 роки тому

      When you print the access response, what information do you see?