Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@fereria
Created September 3, 2018 13:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fereria/d7a2bb6b432ecba53021e2cd2f5333bc to your computer and use it in GitHub Desktop.
Save fereria/d7a2bb6b432ecba53021e2cd2f5333bc to your computer and use it in GitHub Desktop.
# -*- 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