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

Uploaded Python 3

File details

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

File metadata

  • Download URL: unofficial_xitroo_api-0.6.tar.gz
  • Upload date:
  • Size: 2.6 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.6.tar.gz
Algorithm Hash digest
SHA256 4c84dee4a880631d980dfb9555e2cd6e042fac00b5b99b560776b4430b0092d0
MD5 df1cae62c7a5c5101936a58f592b2e42
BLAKE2b-256 f2a542fe554ca9050713837d59bbfed154fa261e072df3a45a9884fc0581218e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for unofficial_xitroo_api-0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 11ab6484837e32922c07e764f35ee4f9ed7188d71f8daf3a67c4aa9c466a5096
MD5 cb2a36a503e75470d5df3f9904024ba1
BLAKE2b-256 63363f58157470abf2e0e6481a6c02ab10f301fde678f44d42991f23fa6140e5

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