Skip to main content

Xitroo API

Project description

USAGE

pip install unofficial-xitroo-api

What does it?

It will get the latest inbox email and returns their body or subject as string to get for example account verification codes

Documentation

Arguments

.get_bodyText()
.get_bodyHtmlStrict()
.get_bodyHtml()
.get_subject()
>>> returns string from last mail

.get_latest_inbox_raw()
>>> returns json from latest mail

Parameters

You can also pass in an integer how many times it should check the inbox

refresh_counter=int

refresh_wait=int

"refresh_counter" is how many times it should ckeck the inbox (default is 5)

"refresh_wait" is how many seconds it should wait between refreshes (default is 5)

"http_timeout" If the request doesn't load in 15 seconds it will send a new one (default is 15)

Example:

xitroo("test@xitroo.de", refresh_counter=5, refresh_wait=5, http_timeout=15)

Examples

from xitroo.api import xitroo

xitroo_email = xitroo("test@xitroo.de")
print(xitroo_email.get_bodyText())
from xitroo.api import xitroo as x

print(x("test@xitroo.de", refresh_counter=5, refresh_wait=5).get_subject())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

unofficial_xitroo_api-0.7.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

unofficial_xitroo_api-0.7-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file unofficial_xitroo_api-0.7.tar.gz.

File metadata

  • Download URL: unofficial_xitroo_api-0.7.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for unofficial_xitroo_api-0.7.tar.gz
Algorithm Hash digest
SHA256 ce0719ce2a8ea0b0a62e3934d49bb7c59d1ff32a335747b3bd47fe0ddd055135
MD5 4d8f4bb258ce5bf3ae6d11b49da370b5
BLAKE2b-256 820a869065040f16bc3e08dcff935c6a37cc8685f15c00735adf916eb2109efe

See more details on using hashes here.

File details

Details for the file unofficial_xitroo_api-0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for unofficial_xitroo_api-0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 8e0340101e1762866daa68fb4a43dbf8c69573e5bda559041b843ba0ae0be3b1
MD5 8d6bd0cd3dd4c91992ad890c833b43a7
BLAKE2b-256 c88fd0eef3ecc9963e36c91af5cb9af0aa712cb485f4cd1343c5159b9f63c3da

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page