Skip to content

Instantly share code, notes, and snippets.

@aviaryan
Created March 6, 2016 17:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aviaryan/55481092bd586bce8c0e to your computer and use it in GitHub Desktop.
Save aviaryan/55481092bd586bce8c0e to your computer and use it in GitHub Desktop.
github api markdown test in python https://developer.github.com/v3/markdown/
import requests
import json
url = "https://api.github.com/markdown"
payload = {
"text": "**Hello** world !",
"mode": "gfm",
"context": "aviaryan/Clipjump"
}
r = requests.post(url = url, data = payload)
print(r, r.text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment