
OUTLOOK 계정 | 1개월 경과 | 웹 로그인 | OAUTH2 토큰 | POP3, IMAP 활성화
Seller-provided titleMarketplace cards may show: Outlook 계정| 1개월 경과| 웹 로그인| Oauth2 토큰| Pop3, Imap 활성화
배송:자동 배송
보증 기간:12 시간
재고 있음87.8K 구매 가능
$0.00
판매자 및 배송
| 이 제품 | 모두 | |
|---|---|---|
| 평균 배송 | 21 분 | 48 분 |
| 완료율 | 100.0% | 100.0% |
| 분쟁율 | 0.0% | 0.1% |
| 지원 티켓 비율 | 8.3% | 6.1% |
| 주문 | 12 | 2884 |
이 제품
- 평균 배송: 21 분
- 완료율: 100.0%
- 분쟁율: 0.0%
- 지원 티켓 비율: 8.3%
- 12건의 주문 기준
이 공급업체 (모든 제품)
- 평균 배송: 48 분
- 완료율: 100.0%
- 분쟁율: 0.1%
- 지원 티켓 비율: 6.1%
- 2884건의 주문 기준
옵션 선택
주문 요약
전체$0.00
- Outlook 계정, 고품질.
- 1개월 숙성됨.
- 웹 로그인 가능.
- 매우 오래 유지되며, 최대 1년 이상 사용 가능.
- 새 계정으로, 다른 곳에서 사용된 적 없음. 오직 본인만 접근 가능.
- OAuth2 활성화, RefreshToken, ClientId 포함.
- POP3, IMAP 활성화. IMAP, POP3 접근 시 OAuth2 사용.
- 남성 또는 여성.
계정 형식: login:password:refresh_token:client_id
중요: 브라우저에서 로그인할 때 복구 이메일 추가를 요청하면, 다음 링크를 열기만 하면 됩니다:
https://outlook.live.com/mail/0/
이미 로그인되어 있으므로 메일함으로 바로 이동합니다. 같은 브라우저에서 링크를 열면 됩니다.
OAuth2 IMAP 이메일 읽기 예제 Python:
import base64
import imaplib
import poplib
import requests
def get_access_token(client_id, refresh_token):
data = {
'client_id': client_id,
'grant_type': 'refresh_token',
'refresh_token': refresh_token
}
ret = requests.post('https://login.live.com/oauth20_token.srf', data=data)
# 응답 내용과 액세스 토큰 출력
print(ret.text)
print(ret.json()['access_token'])
return ret.json()['access_token']
# 액세스 토큰을 사용하여 OAuth2 인증 문자열 생성
def generate_auth_string(user, token):
auth_string = f"user={user}\1auth=Bearer {token}\1\1"
return auth_string
pop3_server = 'outlook.office365.com'
pop3_port = 995 # SSL을 통한 POP3
def connect_pop3(email, access_token):
server = poplib.POP3_SSL(pop3_server, pop3_port)
# OAuth2를 사용하여 인증
auth_string = generate_auth_string(email, access_token)
encoded_auth_string = base64.b64encode(auth_string.encode("utf-8")).decode("utf-8")
server._shortcmd(f'AUTH XOAUTH2')
server._shortcmd(f'{encoded_auth_string}')
# 이메일 목록 가져오기
num_messages = len(server.list()[1])
print(f"받은 편지함에 {num_messages}개의 이메일이 있습니다.")
# 이메일 내용 가져오기
for i in range(num_messages):
response, lines, octets = server.retr(i + 1)
msg_content = b"\n".join(lines).decode("utf-8")
print(f"이메일 {i + 1}:")
print(msg_content)
print("=" * 50)
def connect_imap(email, access_token):
mail = imaplib.IMAP4_SSL('outlook.office365.com')
# 생성된 인증 문자열 출력
print(generate_auth_string(email, access_token))
mail.authenticate('XOAUTH2', lambda x: generate_auth_string(email, access_token))
mail.select("INBOX")
status, messages = mail.search(None, 'ALL')
print("이메일 ID:", messages)
mail.logout()
# 이메일 주소와 리프레시 토큰 설정
client_id = 'CLIENT_ID_HERE'
email = "example@hotmail.com"
t = "YOUR_REFRESH_TOKEN_HERE"
# 리프레시 토큰을 사용하여 액세스 토큰 가져오기
acc_token = get_access_token(client_id, t)
# IMAP 서버에 연결하여 이메일 접근
connect_imap(email, acc_token)
.
