12345678910111213141516171819202122232425262728293031323334353637 |
- import requests
- import time
- headers = {
- 'authority': 'flomoapp.com',
- 'accept': 'application/json, text/plain, */*',
- 'accept-language': 'zh-CN,zh;q=0.9,en;q=0.8',
- 'authorization': 'Bearer 1214040|p4pmlD8OOqTlzj7hiwkyAjWb6Q9HyQPyWnR322t5',
- 'cache-control': 'no-cache',
- 'content-type': 'application/json;charset=UTF-8',
- 'origin': 'https://v.flomoapp.com',
- 'pragma': 'no-cache',
- 'referer': 'https://v.flomoapp.com/',
- 'sec-ch-ua': '"Chromium";v="110", "Not A(Brand";v="24", "Google Chrome";v="110"',
- 'sec-ch-ua-mobile': '?0',
- 'sec-ch-ua-platform': '"macOS"',
- 'sec-fetch-dest': 'empty',
- 'sec-fetch-mode': 'cors',
- 'sec-fetch-site': 'same-site',
- 'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36',
- }
- timestamp = int(time.time())
- json_data = {
- 'content': '<p>test2</p>',
- 'created_at': timestamp,
- 'source': 'web',
- 'file_ids': [],
- 'tz': '8:0',
- 'timestamp': timestamp,
- 'api_key': 'flomo_web',
- 'app_version': '2.0',
- 'webp': '1',
- 'sign': '3c2b16926b7ecdaeb58bac6c272f044b',
- }
- response = requests.put('https://flomoapp.com/api/v1/memo', headers=headers, json=json_data)
- print(response.text)
|