Metered Internet Allowances (super great content for that ass:)
The governing of and regulations over access to the internet have become ridiculious from my point of view.
2019-2021
Internet Limited Data Consumption
A lot of folks out there aren't aware of what DATA is or how speeds and allowences break-down. 
Here is a listing of speeds and allowences compliments of hughes.net
- Actual speeds may vary
- [4] Assumes DVD-quality video streaming consumes data at a rate of 700 MB/hour, HD-quality video streaming consumes data at a rate of 2 GB/hour, streaming audio/radio consumes data at a rate of 75 MB/hour, an average web page is 2 MB, and social media pages consume data at a rate of 350 MB/hour. Please be aware that the values provided should only be used as a general estimation, as data usage may vary by device, by type and by quality of content.
Web Hooks
# Authenticate Google Accounts
curl -X POST https://api.nylas.com/connect/authorize -d '{ 
    "client_id": "nylas_client_id",
    "name": "Nyla the Cheetah",
    "email_address": "nyla@nylas.com",
    "provider": "gmail",
    "settings": {
        "google_client_id": "{google_api_client_id}",
        "google_client_secret": "{geoogle_api_client_secret}",
        "google_refresh_token": "{google_api_refresh_token}"
    },
    "scopes": "email.read_only,calendar.read_only,contacts.read_only"
}'
# Authenticate Google Account using a Service Account
curl -X POST https://api.nylas.com/connect/authorize -d '{
    "client_id": "nylas_client_id",
    "name": "Nyla the Cheetah",
    "email_address": "nyla@gmail.com", # Account to be authenticated
    "provider": "gmail",
    "settings": {
        "service_account_json": { # Service account credentials
        "type": "service_account",
        "project_id": "my-google-app-123456",
        "private_key_id": "68915b4e55baac9191dd32e0be784687c6873b14",
        "private_key": "-----BEGIN PRIVATE KEY-----\nMIIE....fZ1F8=\n-----END PRIVATE KEY-----\n",
        "client_email": "test-service-account@my-google-app-123456.iam.gserviceaccount.com",
        "client_id": "10569134234239528168761",
        "auth_uri": "https://accounts.google.com/o/oauth2/auth",
        "token_uri": "https://oauth2.googleapis.com/token",
        "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
        "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/test-service-account%40my-google-app-123456.iam.gserviceaccount.com"
    }
    "scopes": "calendar"
}'
# Authenticate Office365 Accounts
curl -X POST https://api.nylas.com/connect/authorize -d '{ 
    "client_id": "nylas_client_id",
    "name": "Nyla the Cheetah",
    "email_address": "nyla@nylas.com",
    "provider": "office365",
    "settings":{
        "microsoft_client_id":     "{microsoft_client_id}",
        "microsoft_client_secret": "{microsoft_client_secret}",
        "microsoft_refresh_token": "{microsoft_refresh_token}",
        "redirect_uri":            "https://example.com/redirect", # Redirect URI that the was originally used to get the refresh token        
    },
    "scopes": "email.read_only,calendar.read_only,contacts.read_only"
}'
# Authenticate Exchange Accounts
curl -X POST https://api.nylas.com/connect/authorize -d '{
    "client_id": "nylas_client_id",
    "name": "Nyla the Cheetah",
    "email_address": "nyla@nylas.com",
    "provider": "exchange",
    "settings": {
        "username": "nyla@nylas.com",
        "password": "MakeEmailSuckLess",
        "exchange_server_host": "exchange.nylas.com"
    },
    "scopes": "email.read_only,calendar.read_only,contacts.read_only"
}'
# Authenticate Exchange Account using a Service Account via Password
curl -X POST https://api.nylas.com/connect/authorize -d '{
    "client_id": "nylas_client_id",
    "name": "Nyla the Cheetah",
    "email_address": "nyla@nylas.com", # Account to authenticate
    "provider": "exchange",
    "settings": {
        "username": "username", # Service account username
        "password": "password", # Service account password
        "service_account": true
    }
    "scopes": "calendar.read_only"
}'
# Authenticate Exchange Account using a Service Account via OAuth
curl -X POST https://api.nylas.com/connect/authorize -d '{ 
    "client_id":     "nylas_client_id",
    "name":          "Nyla the Cheetah",
    "email_address": "nyla@nylas.com",   # Account to authenticate
    "provider":      "exchange",
    "settings": {
        "microsoft_client_id":     "{microsoft_client_id}",
        "microsoft_client_secret": "{microsoft_client_secret}",
        "microsoft_refresh_token": "{microsoft_refresh_token}", # Service account refresh token!
        "redirect_uri":            "https://example.com/redirect",
        "service_account": true
    },
    "scopes": "calendar"
}'
# Authenticate Outlook Accounts
curl -X POST https://api.nylas.com/connect/authorize -d '{
    "client_id": "nylas_client_id",
    "name": "Nyla the Cheetah",
    "email_address": "nyla@outlook.com",
    "provider": "outlook",
    "settings": {
        "username": "nyla@outlook.com",
        "password": "MakeEmailSuckLess",
        "exchange_server_host": "eas.outlook.com"
    },
    "scopes": "email.read_only,calendar.read_only,contacts.read_only"
}'
# Authenticate known IMAP providers
curl -X POST https://api.nylas.com/connect/authorize -d '{
    "client_id": "nylas_client_id",
    "name": "Nyla the Cheetah",
    "email_address": "nyla@aol.com",
    "provider": "aol",
    "settings": {
        "password": "MakeEmailSuckLess"
    },
    "scopes": "email.read_only,calendar.read_only,contacts.read_only"
}'
# Authenticate a generic IMAP provider
curl -X POST https://api.nylas.com/connect/authorize -d '{
    "client_id": "nylas_client_id",
    "name": "Nyla the Cheetah",
    "email_address": "nyla@nylas.com",
    "provider": "imap",
    "settings": {
        "imap_host": "imap.nylas.com",
        "imap_port": 993,
        "imap_username": "nyla",
        "imap_password": "MakeEmailSuckLess",
        "smtp_host": "smtp.nylas.net",
        "smtp_port": 587,
        "smtp_username": "nyla",
        "smtp_password": "MakeEmailSuckLess",
        "ssl_required": true
    },
    "scopes": "email.read_only,calendar.read_only,contacts.read_only"
}'
# Virtual Calendars
curl --location --request POST'https://api.nylas.com/connect/authorize' \
    --data-raw '{
    "client_id": "9df4ff17888f4729ad4e1463d2547d",
    "provider": "nylas",
    "scopes": "calendar", 
    "email": "virtual_account_unique_id",
    "name": "Virtual Calendar",
    "settings": {}
    }'

Comments
Post a Comment