listoapi


Namelistoapi JSON
Version 0.1.76 PyPI version JSON
download
home_pagehttps://github.com/listomx/listoapi
SummaryListo SDK module for web API integration
upload_time2023-05-25 22:58:55
maintainer
docs_urlNone
authorHugo Villegas <hugo.villegas@listo.mx>
requires_python
license
keywords api listo listoapi sdk integration python
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Listo SDK module for web API integration
===============================================

* `Install`_
* `Documentation`_

Install
-------

``pip install listoapi``

Documentation
--------------

Complete documentation can be found at `https://apidocs.listo.mx/ <https://apidocs.listo.mx/>`_.

Start
~~~~~~~~~~~~~~~~~~~~~~

::

    from listoapi import ListoApi

    api = ListoApi("your_listo_token")

Search invoices
~~~~~~~~~~~~~~~~~~~~~~

::

    invoice = next(api.Invoices.search(uuid="00112233-4455-6677-8899-AABBCCDDEEFF"))

or

::

    for invoice in api.Invoices.search(issued_on="m:2018-05-01T00:00:00"):
        # Your code

Full details of invoice
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

::

    api.Invoices.details(invoice['id'])

Add or delete payments
~~~~~~~~~~~~~~~~~~~~~~

::

    api.Invoices.add_payment(invoice['id'], bank_account=1234, amount=200, amount_mxn=200,
                             effective_on=""2018-07-24T00:00:00)
    api.Invoices.delete_payments(invoice['id'])

Generate invoice
~~~~~~~~~~~~~~~~~~~~~~

::

    api = ListoApi("your_listo_token", "path/to/cer/file.cer", "path/to/key/file.key", "key_password")
    generation_data = [{...}]

    res, certification_data, original_chain = next(api.Invoicing.generate(generation_data, staging=False, certify=True))



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/listomx/listoapi",
    "name": "listoapi",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "api listo listoapi sdk integration python",
    "author": "Hugo Villegas <hugo.villegas@listo.mx>",
    "author_email": "hugo.villegas@listo.mx",
    "download_url": "https://files.pythonhosted.org/packages/b9/21/d11f5bf3139952cb26ebbedd9af27cf2de43f16f883fae6da9f0e98667d7/listoapi-0.1.76.tar.gz",
    "platform": null,
    "description": "Listo SDK module for web API integration\n===============================================\n\n* `Install`_\n* `Documentation`_\n\nInstall\n-------\n\n``pip install listoapi``\n\nDocumentation\n--------------\n\nComplete documentation can be found at `https://apidocs.listo.mx/ <https://apidocs.listo.mx/>`_.\n\nStart\n~~~~~~~~~~~~~~~~~~~~~~\n\n::\n\n    from listoapi import ListoApi\n\n    api = ListoApi(\"your_listo_token\")\n\nSearch invoices\n~~~~~~~~~~~~~~~~~~~~~~\n\n::\n\n    invoice = next(api.Invoices.search(uuid=\"00112233-4455-6677-8899-AABBCCDDEEFF\"))\n\nor\n\n::\n\n    for invoice in api.Invoices.search(issued_on=\"m:2018-05-01T00:00:00\"):\n        # Your code\n\nFull details of invoice\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n::\n\n    api.Invoices.details(invoice['id'])\n\nAdd or delete payments\n~~~~~~~~~~~~~~~~~~~~~~\n\n::\n\n    api.Invoices.add_payment(invoice['id'], bank_account=1234, amount=200, amount_mxn=200,\n                             effective_on=\"\"2018-07-24T00:00:00)\n    api.Invoices.delete_payments(invoice['id'])\n\nGenerate invoice\n~~~~~~~~~~~~~~~~~~~~~~\n\n::\n\n    api = ListoApi(\"your_listo_token\", \"path/to/cer/file.cer\", \"path/to/key/file.key\", \"key_password\")\n    generation_data = [{...}]\n\n    res, certification_data, original_chain = next(api.Invoicing.generate(generation_data, staging=False, certify=True))\n\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Listo SDK module for web API integration",
    "version": "0.1.76",
    "project_urls": {
        "Homepage": "https://github.com/listomx/listoapi"
    },
    "split_keywords": [
        "api",
        "listo",
        "listoapi",
        "sdk",
        "integration",
        "python"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8e922aa2673e0a9ebc601305c1abffd0b4adde9ce80eacf59f864e6c94b78d58",
                "md5": "88df29994c58540191d420eae1c813c4",
                "sha256": "a11bd7735817e596ac5246f1ab3e8a473e003c4243acdd3ffdeae7e621e06091"
            },
            "downloads": -1,
            "filename": "listoapi-0.1.76-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "88df29994c58540191d420eae1c813c4",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 792272,
            "upload_time": "2023-05-25T22:58:49",
            "upload_time_iso_8601": "2023-05-25T22:58:49.684932Z",
            "url": "https://files.pythonhosted.org/packages/8e/92/2aa2673e0a9ebc601305c1abffd0b4adde9ce80eacf59f864e6c94b78d58/listoapi-0.1.76-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b921d11f5bf3139952cb26ebbedd9af27cf2de43f16f883fae6da9f0e98667d7",
                "md5": "15acf2c69f04bca41fef5c7cbb16456d",
                "sha256": "8549ffa806d45122f25d71f044dc7ca465e97de79ebcb35da4ee9c434d8fbafa"
            },
            "downloads": -1,
            "filename": "listoapi-0.1.76.tar.gz",
            "has_sig": false,
            "md5_digest": "15acf2c69f04bca41fef5c7cbb16456d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 784345,
            "upload_time": "2023-05-25T22:58:55",
            "upload_time_iso_8601": "2023-05-25T22:58:55.711487Z",
            "url": "https://files.pythonhosted.org/packages/b9/21/d11f5bf3139952cb26ebbedd9af27cf2de43f16f883fae6da9f0e98667d7/listoapi-0.1.76.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-25 22:58:55",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "listomx",
    "github_project": "listoapi",
    "github_not_found": true,
    "lcname": "listoapi"
}
        
Elapsed time: 0.16658s