Реклама в магазине
Banner
Разное

OUTLOOK ACCOUNTS | 1 MONTH AGED | WEB LOGIN | OAUTH2 TOKEN | GRAPH API

Изображение: OUTLOOK ACCOUNTS | 1 MONTH AGED | WEB LOGIN | OAUTH2 TOKEN | GRAPH API
4559 шт.
3,04 руб.
Мин.заказ: 1 шт.
Куплено: 0 раз
  • Outlook accounts, high-quality.
  • 1 MONTH AGED.
  • Web login works.
  • Live very long time, can live up to a year or more.
  • New accounts, not used anywhere, only you have access.
  • OAuth2 activated, RefreshToken, ClientId included.
  • Use an OAuth2 token to access emails via GraphAPI instead of the traditional IMAP/POP3 protocol.
  • This mail uses Graph API to read mailboxes, guide https://graph.microsoft.com .
  • Male or female.

Format of accounts: login:password:refresh_token:client_id

 

  • Outlook аккаунты, высокое качество.
  • 1 МЕСЯЦ возраст.
  • Веб-вход работает.
  • Живут очень долго, могут жить до года и более.
  • Новые аккаунты, нигде не использовались, доступ к ним есть только у вас.
  • OAuth2 активирован, RefreshToken, ClientId в комплекте.
  • Используйте токен OAuth2 для доступа к электронной почте через GraphAPI вместо традиционного протокола IMAP/POP3.
  • Эта почта использует Graph API для чтения почтовых ящиков, руководство https://graph.microsoft.com .
  • Пол мужской или женский.

Формат выдаваемых аккаунтовlogin:password:refresh_token:client_id


OAuth2 GraphAPI Email Read Example 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("Count: ", len(emails))
    
    for email in emails:
        print("   Subject:", email["subject"])
        print("   From:", email["from"]["emailAddress"]["address"])
        print("   Preview:", email["bodyPreview"])
        print("-" * 40) 

account = {
    "email": '[email protected]',
    "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)

Реклама в магазине
Banner