Upload Files To One Drive Using Microsoft Graph API In Python

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

КОМЕНТАРІ • 53

  • @elaia929
    @elaia929 2 роки тому +2

    It worked! Thank you. Just when I really need it then saw this video then notice this was posted last monday!!!!!

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

      Cool. Glad this video helped!

  • @quakechamp5690
    @quakechamp5690 Рік тому +2

    Hi, is there any way to upload to the shared folder that is accessible by shared links?

  • @AliHassan-fn9et
    @AliHassan-fn9et 2 роки тому +3

    Hello all, I am getting this error "ModuleNotFoundError: No module named 'ms_graph'"
    Please suggest any solution

    • @Vivi-mq5uz
      @Vivi-mq5uz Рік тому

      Hello, I also met the same problem. Have you found the solution?

    • @Vivi-mq5uz
      @Vivi-mq5uz Рік тому

      I finished watching the author's video on Microsoft Graph API, I found the answer, thank you, and thanks to the author of this video

  • @AliHassan-fn9et
    @AliHassan-fn9et 2 роки тому +7

    There is no module ms_graph in python. How I can download ms_graph module?

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

    I was trying to automate some of the files which has to be uploaded to one drive regularly but the access token gets expired and python fails. I have to provide authorization everytime. Is there a possibility to automate this?

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

    Great video! Thanks for sharing

  • @meowrawrrawr7999
    @meowrawrrawr7999 2 роки тому +2

    hi, how do you produce the user code? cause im getting key error at line 33 in the ms_graph.py (print('user_code: ' + flow["user_code"]))
    am i missing out some actions? or am i doing something wrong?

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

      user code is generated when you send a request to MS Graph API server. If you don't get the user code back, it usually means some information you provided are incorrect.

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

      @@jiejenn aight. noted w thanks!! 😊

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

      @@jiejenn what is likely to be incorrect ?

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

      Unless I have access to your account, otherwise this is not something I have an answer for.

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

      @@jiejenn i am also facing same problem... the file cache .json file does not exists

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

    How can i do that in javascript. I am creating a web application to upload my files to onedrive and I need to get the download link?
    I tried but, I can't find any video and the documentation are messy. Appreciate your help

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

      I'm not familiar with JS unfortunately.

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

      @@jiejenn does SPO (SharePoint Online) licence required to upload a file to onedrive via MS gragh api?? I am getting error that 'TENENT DOESN'T HAVE SPO LICENCE'

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

    Im not geting the device code can you please help me in this error.

  • @LSPtips
    @LSPtips 2 роки тому +2

    It worked but can we automate the step where we need to submit the code and login to the app?

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

      YES PLEASE SHOW US HOW TO DO THIS

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

    'code': 'itemNotFound', 'message': 'Item not found', 'innerError' me sale este error si pueden ayudarme estare eternamente agradecido.

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

    I have this error - What can be? error': {'code': 'InvalidAuthenticationToken', 'message': 'CompactToken parsing failed with error code: 80049217'

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

      use space after bearer like this 'Authorization':'Bearer '

  • @JoshAnderson-ls3oq
    @JoshAnderson-ls3oq Рік тому

    Can I do the same thing in my flutter app with dart

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

    your videos are a great help thank you 👍

  • @videolooker-atter5425
    @videolooker-atter5425 2 роки тому

    This only works for files under 4MB though right?

  • @ekoputro2975
    @ekoputro2975 11 місяців тому

    how to get APP_ID from onedrive?

    • @jiejenn
      @jiejenn  11 місяців тому

      You have to create an app in Azure first.

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

    where can i get the api id?

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

      Maybe this video might help ua-cam.com/video/1Jyd7SA-0kI/v-deo.html

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

    can this be considered as a backup also?

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

      Not sure if I follow your question.

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

    how do you find your one drive App Id?

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

      You have to creat an app in Azure first.

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

    how can i get my onedrive access token?

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

      You will need to create an app in Azure first.

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

      @@jiejenn yes, but that access token when you have already registered the application, where is it located?

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

      Maybe this video will answer your question. ua-cam.com/video/1Jyd7SA-0kI/v-deo.html

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

    where do we find appid?

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

      App Id can be located in your Azure App.

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

    Great video. How can I upload a zip file ? or a whole folder ?

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

      You can upload a zip file just like how you would upload other files. To upload a folder, use os.walk method.

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

    no module name ms_graph

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

      You have to create a file called ms_graph.py with the source code he provided in the description.