Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def add_comment_to_deal(deal_id,comment):
- url = "https://api.pipedrive.com/v1/notes/" + "?api_token="
- formdata = {
- "content": comment,
- "deal_id": deal_id
- }
- headers = {'cache-control': 'no-cache'}
- response = requests.request("POST", url, headers=headers, data=formdata)
- print('Pipedrive answered',response.text)
- update_json = json.loads(response.text)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement