Created
March 6, 2016 17:59
-
-
Save aviaryan/55481092bd586bce8c0e to your computer and use it in GitHub Desktop.
github api markdown test in python https://developer.github.com/v3/markdown/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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