Skip to content

Instantly share code, notes, and snippets.

@tiandiduwuxiaoxiao
Last active November 29, 2018 08:33
Show Gist options
  • Save tiandiduwuxiaoxiao/f0c7eb68974f936075c4acb0165b3b46 to your computer and use it in GitHub Desktop.
Save tiandiduwuxiaoxiao/f0c7eb68974f936075c4acb0165b3b46 to your computer and use it in GitHub Desktop.
github api stuffs

Write some note while learn how to use REST API v3

  1. Get a repository's readme file's content
https://api.github.com/repos/tiandiduwuxiaoxiao/pythonProble/readme
  1. Get a repository's any file's content
https://api.github.com/repos/tiandiduwuxiaoxiao/pythonProble/contents/index.py

You can refer to the documentation

@tiandiduwuxiaoxiao
Copy link
Author

get file content via this API then can use atob() to decode the message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment