def upload(username, password):
"""
Sends the copied text to server.
"""
payload = {"text": copy(), "device": ""}
res = requests.post(
server_url+"copy-paste/",
data = payload,
auth = (username, password)
)
if res.status_code == 200:
print("Succeses! Copied to Cloud-Clipboard.")
else:
print("Error: ", res.text)
评论列表
文章目录