Untitled
unknown
plain_text
2 years ago
9.7 kB
5
Indexable
import requests cookies = { '_vwo_uuid_v2': 'D01C700486106A1BF4A382875BBEDED6D|df1636d5329e47bbf7dc23322eeb78c5', 'ps_mode': 'trackingV1', '_ga': 'GA1.2.1897840216.1690738373', '__hstc': '199959601.8dab452eb2034ca58b1c80d2242ec7e9.1690738373841.1690738373841.1690738373841.1', 'hubspotutk': '8dab452eb2034ca58b1c80d2242ec7e9', 'hs_type': '{"utm_source":"google","utm_first_source":"google","utm_campaign":"","utm_first_campaign":"","utm_medium":"organic","utm_first_medium":"organic","last_touch_url":"/pricing/","first_touch_url":"/help-desk-ticketing-system/","referrer":""}', '_uetvid': '28bdc4d02eff11ee8931890348a77b56', 'PHPSESSID': '8caee8d2bd4425f9fb928de7408d9b3d', '_A_source': 'utmcsr=(direct)', '_A_LastTouchURL': '/members/login/', 'firstTouchGA': '(direct)~~~~~~~~', '_A_FirstTouchURL': '/members/login/', 'mhash': 'b6ca3370ace16a1a3c224eb42e89e91d866928ac', 'folder_sort': '1', '_hp2_ses_props.1354226225': '%7B%22r%22%3A%22https%3A%2F%2Fsecure.helpscout.net%2F%22%2C%22ts%22%3A1694389413860%2C%22d%22%3A%22secure.helpscout.net%22%2C%22h%22%3A%22%2Fconversation%2F2355340777%2F18%2F%22%7D', 'mp_24584a81456f04dafe43aaae71181d43_mixpanel': '%7B%22distinct_id%22%3A%20%22%24device%3A189a7dc7e2e36c-0686e70aa445a7-26031c51-e1000-189a7dc7e2f36c%22%2C%22%24device_id%22%3A%20%22189a7dc7e2e36c-0686e70aa445a7-26031c51-e1000-189a7dc7e2f36c%22%2C%22__mps%22%3A%20%7B%7D%2C%22__mpso%22%3A%20%7B%22initial_utm_source%22%3A%20%22google%22%2C%22initial_utm_medium%22%3A%20%22organic%22%2C%22initial_utm_campaign%22%3A%20null%2C%22initial_utm_content%22%3A%20null%2C%22initial_utm_term%22%3A%20null%7D%2C%22__mpus%22%3A%20%7B%7D%2C%22__mpa%22%3A%20%7B%7D%2C%22__mpu%22%3A%20%7B%7D%2C%22__mpr%22%3A%20%5B%5D%2C%22__mpap%22%3A%20%5B%5D%2C%22utm_source%22%3A%20%22google%22%2C%22utm_medium%22%3A%20%22organic%22%2C%22%24initial_referrer%22%3A%20%22https%3A%2F%2Fwww.helpscout.com%2F%22%2C%22%24initial_referring_domain%22%3A%20%22www.helpscout.com%22%2C%22%24search_engine%22%3A%20%22google%22%7D', '_hp2_id.1354226225': '%7B%22userId%22%3A%227464428330613400%22%2C%22trackerVersion%22%3A%224.0%22%2C%22pageviewId%22%3A%225591206080263146%22%2C%22sessionId%22%3A%226863987960254991%22%2C%22identity%22%3A%22746831%22%2C%22identityField%22%3Anull%2C%22isIdentified%22%3A1%7D', '_dd_s': 'logs=1&id=101cd8f2-ae3b-4784-85da-8a22ad6cf10d&created=1694389412470&expire=1694390516132', } headers = { 'Accept': 'application/json, text/javascript, */*; q=0.01', 'Accept-Language': 'en-US,en;q=0.9', 'Connection': 'keep-alive', 'Content-Type': 'application/json', # 'Cookie': '_vwo_uuid_v2=D01C700486106A1BF4A382875BBEDED6D|df1636d5329e47bbf7dc23322eeb78c5; ps_mode=trackingV1; _ga=GA1.2.1897840216.1690738373; __hstc=199959601.8dab452eb2034ca58b1c80d2242ec7e9.1690738373841.1690738373841.1690738373841.1; hubspotutk=8dab452eb2034ca58b1c80d2242ec7e9; hs_type={"utm_source":"google","utm_first_source":"google","utm_campaign":"","utm_first_campaign":"","utm_medium":"organic","utm_first_medium":"organic","last_touch_url":"/pricing/","first_touch_url":"/help-desk-ticketing-system/","referrer":""}; _uetvid=28bdc4d02eff11ee8931890348a77b56; PHPSESSID=8caee8d2bd4425f9fb928de7408d9b3d; _A_source=utmcsr=(direct); _A_LastTouchURL=/members/login/; firstTouchGA=(direct)~~~~~~~~; _A_FirstTouchURL=/members/login/; mhash=b6ca3370ace16a1a3c224eb42e89e91d866928ac; folder_sort=1; _hp2_ses_props.1354226225=%7B%22r%22%3A%22https%3A%2F%2Fsecure.helpscout.net%2F%22%2C%22ts%22%3A1694389413860%2C%22d%22%3A%22secure.helpscout.net%22%2C%22h%22%3A%22%2Fconversation%2F2355340777%2F18%2F%22%7D; mp_24584a81456f04dafe43aaae71181d43_mixpanel=%7B%22distinct_id%22%3A%20%22%24device%3A189a7dc7e2e36c-0686e70aa445a7-26031c51-e1000-189a7dc7e2f36c%22%2C%22%24device_id%22%3A%20%22189a7dc7e2e36c-0686e70aa445a7-26031c51-e1000-189a7dc7e2f36c%22%2C%22__mps%22%3A%20%7B%7D%2C%22__mpso%22%3A%20%7B%22initial_utm_source%22%3A%20%22google%22%2C%22initial_utm_medium%22%3A%20%22organic%22%2C%22initial_utm_campaign%22%3A%20null%2C%22initial_utm_content%22%3A%20null%2C%22initial_utm_term%22%3A%20null%7D%2C%22__mpus%22%3A%20%7B%7D%2C%22__mpa%22%3A%20%7B%7D%2C%22__mpu%22%3A%20%7B%7D%2C%22__mpr%22%3A%20%5B%5D%2C%22__mpap%22%3A%20%5B%5D%2C%22utm_source%22%3A%20%22google%22%2C%22utm_medium%22%3A%20%22organic%22%2C%22%24initial_referrer%22%3A%20%22https%3A%2F%2Fwww.helpscout.com%2F%22%2C%22%24initial_referring_domain%22%3A%20%22www.helpscout.com%22%2C%22%24search_engine%22%3A%20%22google%22%7D; _hp2_id.1354226225=%7B%22userId%22%3A%227464428330613400%22%2C%22trackerVersion%22%3A%224.0%22%2C%22pageviewId%22%3A%225591206080263146%22%2C%22sessionId%22%3A%226863987960254991%22%2C%22identity%22%3A%22746831%22%2C%22identityField%22%3Anull%2C%22isIdentified%22%3A1%7D; _dd_s=logs=1&id=101cd8f2-ae3b-4784-85da-8a22ad6cf10d&created=1694389412470&expire=1694390516132', 'Origin': 'https://secure.helpscout.net', 'Referer': 'https://secure.helpscout.net/conversation/2355233146/1/', 'Sec-Fetch-Dest': 'empty', 'Sec-Fetch-Mode': 'cors', 'Sec-Fetch-Site': 'same-origin', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36', 'X-CSRF-Token': '368cafc6f2d2235c0c5dfbc2a003e9ba7abae4db95f7ea84f7c313255fbc41a732bdc1a06601fbbb43f21c4b061a6123e5a410209ad83602c01d19c9d1294616', 'X-Requested-With': 'XMLHttpRequest', 'sec-ch-ua': '"Chromium";v="116", "Not)A;Brand";v="24", "Google Chrome";v="116"', 'sec-ch-ua-mobile': '?0', 'sec-ch-ua-platform': '"Windows"', } json_data = { 'type': 'forwardparent', 'body': 'sdsdsd<br>', 'status': 1, 'bcc': [], 'owner': 1, 'savedReplyID': '', 'editorMode': 1, 'fromType': '1', 'cc': [], 'forwardTo': [ 'delta.alf@yahoo.com', ], 'attachments': [], 'customerID': 0, 'emailEntryID': 0, 'state': 0, 'attachmentCount': 0, 'forwardTicketID': 0, 'spamScore': 0, 'openedAt': None, 'forwardTicket': None, 'id': 7052601996, 'assignedTo': None, 'createdAt': '2023-09-10 23:46:45', 'createdBy': 746831, 'source': 2, 'actionSourceId': 746831, 'actionType': 10, 'fromMailbox': None, 'mailboxId': 308980, 'isCreatedByUser': True, 'isLineItem': False, 'isVisibleToCustomer': False, 'isWorkflow': False, 'isExternalImport': False, 'ccList': None, 'bccList': None, 'to': [ 'delta.alf@yahoo.com', ], 'isDraft': False, 'isPublished': False, 'isUnderReview': False, 'isBounced': False, 'isHidden': False, 'isNoteThread': False, 'isCustomerThread': False, 'isMessageThread': False, 'isForwardParentThread': True, 'isForwardChildThread': False, 'isChatThread': False, 'isBeaconChatThread': False, 'isPhoneThread': False, 'emailId': 0, 'isMerged': False, 'isChatSource': False, 'isFirstThread': False, 'changes': [], 'customFields': None, 'ticketID': 2355233146, 'isShowToField': False, 'isForwardThread': False, 'forward': { 'toList': { 'count': 1, 'isPartial': False, 'value': 'delta.alf@yahoo.com', }, 'isFromTypeMailbox': True, 'ticket': None, }, 'originalCreatorId': 746831, 'className': ' thread', 'handleTime': 75.277, 'inReplyToId': 7052598692, 'convRedirect': 2, 'folderId': 7861983, 'includePhone': False, 'folderParams': { 'folderId': 7861983, 'owner': None, 'page': None, 'sort': 1, }, } response = requests.put( 'https://secure.helpscout.net/api/v0/conversations/2355233146/forward/', cookies=cookies, headers=headers, json=json_data, ) # Note: json_data will not be serialized by requests # exactly as it was in the original request. #data = '{"type":"forwardparent","body":"sdsdsd<br>","status":1,"bcc":[],"owner":1,"savedReplyID":"","editorMode":1,"fromType":"1","cc":[],"forwardTo":["delta.alf@yahoo.com"],"attachments":[],"customerID":0,"emailEntryID":0,"state":0,"attachmentCount":0,"forwardTicketID":0,"spamScore":0,"openedAt":null,"forwardTicket":null,"id":7052601996,"assignedTo":null,"createdAt":"2023-09-10 23:46:45","createdBy":746831,"source":2,"actionSourceId":746831,"actionType":10,"fromMailbox":null,"mailboxId":308980,"isCreatedByUser":true,"isLineItem":false,"isVisibleToCustomer":false,"isWorkflow":false,"isExternalImport":false,"ccList":null,"bccList":null,"to":["delta.alf@yahoo.com"],"isDraft":false,"isPublished":false,"isUnderReview":false,"isBounced":false,"isHidden":false,"isNoteThread":false,"isCustomerThread":false,"isMessageThread":false,"isForwardParentThread":true,"isForwardChildThread":false,"isChatThread":false,"isBeaconChatThread":false,"isPhoneThread":false,"emailId":0,"isMerged":false,"isChatSource":false,"isFirstThread":false,"changes":[],"customFields":null,"ticketID":2355233146,"isShowToField":false,"isForwardThread":false,"forward":{"toList":{"count":1,"isPartial":false,"value":"delta.alf@yahoo.com"},"isFromTypeMailbox":true,"ticket":null},"originalCreatorId":746831,"className":" thread","handleTime":75.277,"inReplyToId":7052598692,"convRedirect":2,"folderId":7861983,"includePhone":false,"folderParams":{"folderId":7861983,"owner":null,"page":null,"sort":1}}' #response = requests.put( # 'https://secure.helpscout.net/api/v0/conversations/2355233146/forward/', # cookies=cookies, # headers=headers, # data=data, #)
Editor is loading...