Decoding base64 while using GitHub API to Download a File

前端 未结 3 1292
执念已碎
执念已碎 2021-01-05 19:28

I am using the GitHub API to download a file from GitHub. I have been able to successfully authenticate as well as get a response from github, and see a base64 encoded stri

3条回答
  •  醉梦人生
    2021-01-05 20:15

    For some reason the Github APIs base64 encoded content doesn't decode properly at all the online base64 decoders I've tried from the front page of google.

    Python works however:

    import base64
    base64.b64decode("ewogICAgInN3YWdnZXIiOiAiM...")
    

提交回复
热议问题