Created
September 3, 2018 13:52
-
-
Save fereria/d7a2bb6b432ecba53021e2cd2f5333bc to your computer and use it in GitHub Desktop.
This file contains 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
# -*- coding: utf-8 -*- | |
import requests | |
import json | |
API_KEY = "<KEY>" | |
base_url = "https://<ID>.backlog.com/api/v2/" | |
issue_key = "ACS-2" | |
# add comment. | |
url = base_url + "issues/{0}/comments".format(issue_key) | |
payload = {"apiKey": API_KEY} | |
data = {"content": "hogehogehoge"} | |
a = requests.post(url, data=data, params=payload) | |
print a.text |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment