
आउटलुक खाते | 1 माह पुराना | वेब लॉगिन | OAUTH2 टोकन | POP3, IMAP सक्रिय
Seller-provided titleMarketplace cards may show: आउटलुक खाते| 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 महीने पुराने।
- वेब लॉगिन काम करता है।
- बहुत लंबे समय तक चलते हैं, एक साल या उससे अधिक समय तक जीवित रह सकते हैं।
- नए खाते, कहीं भी उपयोग नहीं किए गए, केवल आपकी पहुंच है।
- 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 the response content and access token
print(ret.text)
print(ret.json()['access_token'])
return ret.json()['access_token']
# Generate OAuth2 authentication string using the access token
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 # POP3 over SSL
def connect_pop3(email, access_token):
server = poplib.POP3_SSL(pop3_server, pop3_port)
# Authenticate using 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}')
# Retrieve the list of emails
num_messages = len(server.list()[1])
print(f"There are {num_messages} emails in the inbox.")
# Retrieve email content
for i in range(num_messages):
response, lines, octets = server.retr(i + 1)
msg_content = b"\n".join(lines).decode("utf-8")
print(f"Email {i + 1}:")
print(msg_content)
print("=" * 50)
def connect_imap(email, access_token):
mail = imaplib.IMAP4_SSL('outlook.office365.com')
# Print the generated authentication string
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("Email IDs:", messages)
mail.logout()
# Set the email address and refresh token
client_id = 'CLIENT_ID_HERE'
email = "example@hotmail.com"
t = "YOUR_REFRESH_TOKEN_HERE"
# Get the access token using the refresh token
acc_token = get_access_token(client_id, t)
# Connect to the IMAP server and access emails
connect_imap(email, acc_token)
.
