
আউটলুক অ্যাকাউন্ট | ১ মাস পুরনো | ওয়েব লগইন | OAuth2 টোকেন | POP3, IMAP সক্রিয়
Seller-provided titleMarketplace cards may show: আউটলুক অ্যাকাউন্ট| ১ মাস পুরনো| ওয়েব লগইন| OAuth2 টোকেন| POP3, IMAP সক্রিয়
ডেলিভারি:স্বয়ংক্রিয় ডেলিভারি
ওয়ারেন্টি সময়কাল:12 ঘন্টা
স্টকে আছে92K উপলব্ধ
$0.00
বিক্রেতা ও ডেলিভারি
| এই পণ্য | সব | |
|---|---|---|
| গড় ডেলিভারি | 21 মিনিট | 48 মিনিট |
| সম্পূর্ণতার হার | 100.0% | 100.0% |
| বিরোধের হার | 0.0% | 0.1% |
| সাপোর্ট টিকিট রেট | 8.3% | 6.1% |
| অর্ডার | 12 | 2852 |
এই পণ্য
- গড় ডেলিভারি: 21 মিনিট
- সম্পূর্ণতার হার: 100.0%
- বিরোধের হার: 0.0%
- সাপোর্ট টিকিট রেট: 8.3%
- 12 অর্ডারের ভিত্তিতে
এই সরবরাহকারী (সব পণ্য)
- গড় ডেলিভারি: 48 মিনিট
- সম্পূর্ণতার হার: 100.0%
- বিরোধের হার: 0.1%
- সাপোর্ট টিকিট রেট: 6.1%
- 2852 অর্ডারের ভিত্তিতে
অপশন নির্বাচন করুন
অর্ডার সারসংক্ষেপ
মোট$0.00
- Outlook অ্যাকাউন্ট, উচ্চ মানের।
- ১ মাস পুরনো।
- ওয়েব লগইন কাজ করে।
- অনেক দিন টিকে থাকে, এক বছর বা তার বেশি পর্যন্ত বাঁচতে পারে।
- নতুন অ্যাকাউন্ট, কোথাও ব্যবহার করা হয়নি, শুধু আপনারই অ্যাক্সেস আছে।
- 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)
.
