Python client for Linxo API
Project description
python-linxo-client
===================
|PyPI| |PyPI| |Build Status| |Requirements Status|
Python client for `Linxo API <https://www.linxo.com>`__
Installation
============
The python wrapper works with Python 2.6+ and Python 3.2+.
The easiest way to get the latest stable release is to grab it from
`pypi <https://pypi.python.org/pypi/linxo>>`__ using ``pip``.
.. code:: bash
pip install linxo-client
Alternatively, you may get latest development version directly from Git.
::
pip install -e git+https://github.com/alkivi-sas/python-linxo-client.git#egg=linxo
Configuration
=============
Create a linxo.conf. They are parsend in that order.
::
# Current directory
./linxo.conf
# Home directory
~/.linxo.conf
# Global
/etc/linxo.conf
The file should contains client\_id and client\_secret with a fake
access and refresh\_token. You can obtain client\_id and client\_secret
by contacting Linxo.
\`\`\`ini [default] endpoint = prod
[prod] client\_id = dazjdkazldnoiazd,azldaz client\_secret = dazdazdza
access\_token = fake for now refresh\_token = fake for now\`\`\`\`
Next step is to generate a token
.. code:: python
# -*- encoding: utf-8 -*-
import linxo
# create a client using configuration
client = linxo.Client()
# Request token
valid_scopes = [
'accounts_manage',
'accounts_read',
'connections_manage',
'connections_sync',
'transactions_read',
'users_create']
client.generate_token(scopes=['transactions_read'])
Execute the code, you will be asked to login to linxo and you will be
redirected to localhost. Copy the code part, and the token will be save
to your configuration file automatically.
Usage
=====
.. code:: python
# -*- encoding: utf-8 -*-
import linxo
client = linxo.Client()
client.get('/transactions')
Documentation
=============
The api documentation is `available
here <https://sandbox-api.linxo.com/v2/documentation/>`__.
.. |PyPI| image:: https://img.shields.io/pypi/v/linxo.svg
.. |PyPI| image:: https://img.shields.io/pypi/status/linxo.svg
.. |Build Status| image:: https://travis-ci.org/alkivi-sas/python-linxo-client.svg?branch=master
:target: https://travis-ci.org/alkivi-sas/python-linxo-client
.. |Requirements Status| image:: https://requires.io/github/alkivi-sas/python-linxo-client/requirements.svg?branch=master
:target: https://requires.io/github/alkivi-sas/python-linxo-client/requirements/?branch=master
===================
|PyPI| |PyPI| |Build Status| |Requirements Status|
Python client for `Linxo API <https://www.linxo.com>`__
Installation
============
The python wrapper works with Python 2.6+ and Python 3.2+.
The easiest way to get the latest stable release is to grab it from
`pypi <https://pypi.python.org/pypi/linxo>>`__ using ``pip``.
.. code:: bash
pip install linxo-client
Alternatively, you may get latest development version directly from Git.
::
pip install -e git+https://github.com/alkivi-sas/python-linxo-client.git#egg=linxo
Configuration
=============
Create a linxo.conf. They are parsend in that order.
::
# Current directory
./linxo.conf
# Home directory
~/.linxo.conf
# Global
/etc/linxo.conf
The file should contains client\_id and client\_secret with a fake
access and refresh\_token. You can obtain client\_id and client\_secret
by contacting Linxo.
\`\`\`ini [default] endpoint = prod
[prod] client\_id = dazjdkazldnoiazd,azldaz client\_secret = dazdazdza
access\_token = fake for now refresh\_token = fake for now\`\`\`\`
Next step is to generate a token
.. code:: python
# -*- encoding: utf-8 -*-
import linxo
# create a client using configuration
client = linxo.Client()
# Request token
valid_scopes = [
'accounts_manage',
'accounts_read',
'connections_manage',
'connections_sync',
'transactions_read',
'users_create']
client.generate_token(scopes=['transactions_read'])
Execute the code, you will be asked to login to linxo and you will be
redirected to localhost. Copy the code part, and the token will be save
to your configuration file automatically.
Usage
=====
.. code:: python
# -*- encoding: utf-8 -*-
import linxo
client = linxo.Client()
client.get('/transactions')
Documentation
=============
The api documentation is `available
here <https://sandbox-api.linxo.com/v2/documentation/>`__.
.. |PyPI| image:: https://img.shields.io/pypi/v/linxo.svg
.. |PyPI| image:: https://img.shields.io/pypi/status/linxo.svg
.. |Build Status| image:: https://travis-ci.org/alkivi-sas/python-linxo-client.svg?branch=master
:target: https://travis-ci.org/alkivi-sas/python-linxo-client
.. |Requirements Status| image:: https://requires.io/github/alkivi-sas/python-linxo-client/requirements.svg?branch=master
:target: https://requires.io/github/alkivi-sas/python-linxo-client/requirements/?branch=master
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
linxo-0.0.4.tar.gz
(7.6 kB
view details)
File details
Details for the file linxo-0.0.4.tar.gz
.
File metadata
- Download URL: linxo-0.0.4.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2bea3c5e3c03aa294c6d23eaa1286f97173d916f5adbcc5169508a1f6b8330f7 |
|
MD5 | 0db81824405703a05e905b69c000e26e |
|
BLAKE2b-256 | e64bd7c0af05c95e3f4c5504371b116d31c92d4c1b0231f7439d58ea9a2311fd |