Skip to main content

Python API for Echo credentialing software

Project description


Installation
============

pip install echo_api

Configuration
=============

Secrets
=======

``echo_api`` is configured to take credentials from a file named
``secrets.json`` that is expected by default in your working directory.
``secrets.json`` should look like:

{
"USERNAME": "Username",
"PASSWORD": "P4ssw0rd123",
"WSDL_LOCATION": "wsdl.xml",
"ENDPOINT": "https://cloud.echooneappcloud.com/yourorganization/OneAppWebService"
}

If you want ``secrets.json`` to be somewhere other than your project
directory, you will need to set it in a ``Settings`` object and make
reference to it in your ``Connection``. More on that below.

Note that you must have credentials for a user that has access to the
API before you can proceed.

API Definition
==============

Due to the possibility of some configuration issues on Echo's side, you
will need to manually inspect the XML describing the API and ensure that
the endpoint definition is correct. Copy and paste this into the address
bar on your browser (you will need to change it to be your
organization):

https://cloud.echooneappcloud.com/yourorganization/OneAppWebService.svc?singleWsdl

Copy and paste the XML response into an XML file (``wsdl.xml``) in your
project directory and scroll all the way to the bottom until you see:

<wsdl:port name="BasicHttpBinding_OneAppWebService_SSL" binding="tns:BasicHttpBinding_OneAppWebService_SSL">
<soap:address location="https://eoaapp0.echooneapp.com/YourOrganization/OneAppWebService.svc"/>
</wsdl:port>
</wsdl:service>

You will want to change

<soap:address location="https://eoaapp0.echooneapp.com/YourOrganization/OneAppWebService.svc"/>

to

<soap:address location="https://cloud.echooneappcloud.com/yourorganization/OneAppWebService"/>

Once you've set up your wsdl and secrets files, test your connection.
For a secrets file that will remain in your project directory, simply
use:

.. code:: ipython3

from echo_api import Connection
# Connection() will log you in if everything is correctly configured.
connection = Connection()
connection.session_id




.. parsed-literal::

'IAMYOURSESSIONID'



If you wish to use a custom secrets location, you will need to create a
``Settings`` object and use that when creating your connection.

.. code:: ipython3

from echo_api import Settings, Connection
# secrets_location is full or relative path to secrets location
settings = Settings(secrets_location='secrets.json')
connection = Connection(settings=settings)

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

echo_api-1.0.0.dev0.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file echo_api-1.0.0.dev0.tar.gz.

File metadata

  • Download URL: echo_api-1.0.0.dev0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for echo_api-1.0.0.dev0.tar.gz
Algorithm Hash digest
SHA256 17632fa724f9b89d6163a97eaa515b6332250a1d5f3a7ce7b8b0fd383c1c39f3
MD5 bd62479103199b18108bc9de84ecb4e3
BLAKE2b-256 c3c147aa687b6312a9848f2c0acfcb00147296e5e67d35a52ee3456f797f5c7d

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