Skip to main content

Librería para transferir información entre API Intercambiador y las fuentes de datos.

Project description

Intercambiador-API-Integrate-Python

Installation

pip install apiintercambiador

Usage

from apiintercambiador import Apiintercambiador

ai = Apiintercambiador("token", True) # True = sandbox

GET

result = ai.getProperties()

POST

data = [
    {
        "fuente_origen": "1",
        "agency_id": "123",
        "propietario": "123",
        "status_id": "1",
        "status_property_id": "1",
        "cadastral_reference": "PYTHONTEST1"
    },
    {
        "fuente_origen": "1",
        "agency_id": "123",
        "propietario": "123",
        "status_id": "1",
        "status_property_id": "1",
        "cadastral_reference": "PYTHONTEST2"
    }
]
result = ai.addProperty(data)

PUT

data = [
    {
        "_id": "000000000000aaaaaaaaaaaa",
        "fuente_origen": "1",
        "agency_id": "123",
        "propietario": "123",
        "status_id": "1",
        "status_property_id": "1",
        "cadastral_reference": "PYTHONTEST1"
    },
    {
        "_id": "000000000000bbbbbbbbbbbb",
        "fuente_origen": "1",
        "agency_id": "123",
        "propietario": "123",
        "status_id": "1",
        "status_property_id": "1",
        "cadastral_reference": "PYTHONTEST2"
    }
]
result = ai.updateProperty(data)

DELETE

data = ["000000000000bbbbbbbbbbbb"]

result = ai.deleteProperty(data)

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

apiintercambiador-0.0.3.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.

apiintercambiador-0.0.3-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file apiintercambiador-0.0.3.tar.gz.

File metadata

  • Download URL: apiintercambiador-0.0.3.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.9

File hashes

Hashes for apiintercambiador-0.0.3.tar.gz
Algorithm Hash digest
SHA256 443bded21f251d90ec8488455381edc1a9077ff765995129245e9c52a7f2f3e2
MD5 05e39896e5b2914f8a72ef184b918651
BLAKE2b-256 f53d6cbd00f75b1703cd99f8e7a8b8511dbfc3f7499c90d414926b8f8e390c4c

See more details on using hashes here.

File details

Details for the file apiintercambiador-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for apiintercambiador-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c10fb93858e689c0214495ad93cc88d84edb3ee7b47e41e33787689c8ab593cc
MD5 ca5561ac3f287f6e829f750c966eb10a
BLAKE2b-256 0abe0db8eb16ffd929c886a37aff489e91cdc29f75953d336678ef5cd299c7c4

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