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)

Example:

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

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.5.tar.gz (3.1 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.5-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for unofficial_xitroo_api-0.5.tar.gz
Algorithm Hash digest
SHA256 3142910efcfa8b04e1f6ef7a6abe8c5f2fe0df4634af65aa9ad91b5c55579d9a
MD5 b67e47b0feb195068ecb51db3b00d96c
BLAKE2b-256 db42116ffddcf16228e0dc83def432f29cf7268fb1b6dcdb5d2707922f226da0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for unofficial_xitroo_api-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7373aa7aad221e31d4a286c948f7cfc8417ea1cf50e6e754c93fca7693b25941
MD5 06d3a6ef294c22271fd2f8a232ea6be6
BLAKE2b-256 22e83ca6d332b4fb50d6aee8010c46904fed4bc453cc1df64ccf3a80c0f7927d

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