Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.39 KB | None | 0 0
  1. def add_comment_to_deal(deal_id,comment):
  2.     url = "https://api.pipedrive.com/v1/notes/" + "?api_token="
  3.     formdata = {
  4.         "content": comment,
  5.         "deal_id": deal_id
  6.     }
  7.     headers = {'cache-control': 'no-cache'}
  8.     response = requests.request("POST", url, headers=headers, data=formdata)
  9.     print('Pipedrive answered',response.text)
  10.     update_json = json.loads(response.text)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement