HOTMAIL 账号 | 1 个月老号 | 网页登录 | OAUTH2 令牌 | GRAPH API - HOTMAIL 账号 | 1 个月老号 | 网页登录 | OAUTH2 令牌 | GRAPH API
| 類目 | Hotmail |
| 發貨方式 | 自動發貨 |
| 購買數量 | 1 ~ 50 |
| 支援補貨 | 否 |
| 上游商品號 | #110404 |
商品詳情
高质量Hotmail账号,已养号1个月。网页登录可用。账号全新未使用,仅您一人可访问。账号可使用长达一年或更久。已启用OAuth2,包含RefreshToken和ClientId。请使用OAuth2令牌通过GraphAPI访问邮件,而非传统的IMAP/POP3方式。此邮箱使用Graph API读取邮件,指南:https://graph.microsoft.com。账号性别可能为男或女。
账号格式:登录名:密码:refresh_token:client_id
重要提示:如果在浏览器登录时提示添加恢复邮箱,只需打开:https://outlook.live.com/mail/0/ 由于您已登录,系统会直接带您进入邮箱。请在同一个浏览器中打开该链接即可。
OAuth2 GraphAPI 邮件读取 Python 示例:
import requests
def get_access_token(refresh_token, client_id):
token_url = "https://login.microsoftonline.com/common/oauth2/v2.0/token"
data = {
"client_id": client_id,
"grant_type": "refresh_token",
"refresh_token": refresh_token,
"scope": "https://graph.microsoft.com/.default offline_access"
}
response = requests.post(token_url, data=data)
response.raise_for_status()
return response.json()["access_token"]
def read_emails(access_token):
headers = {
"Authorization": f"Bearer {access_token}"
}
url = "https://graph.microsoft.com/v1.0/me/mailFolders/inbox/messages?$top=1"
response = requests.get(url, headers=headers)
response.raise_for_status()
emails = response.json()["value"]
print("数量:", len(emails))
for email in emails:
print(" 主题:", email["subject"])
print(" 发件人:", email["from"]["emailAddress"]["address"])
print(" 预览:", email["bodyPreview"])
print("-" * 40)
account = {
"email": 'example@hotmail.com',
"client_id": 'CLIENT_ID_HERE',
"refresh_token": 'YOUR_REFRESH_TOKEN_HERE'
}
access_token = get_access_token(account['refresh_token'], account['client_id'])
read_emails(access_token)