A sample project to demonstrate how backend applications can use basic authentication with Iress Xplan Resourceful API and EDAI. This also includes sample code that uses Two Factor Authentication (2FA).
Note: 2FA for the user must use the Software Token method.
Please see pyproject.toml for the Python dependencies.
devbox run installTo view the current usage/help please run:
devbox run helpOr directly:
python3 src/call.py -hdevbox run call -b https://dev.xplan.iress.com.au -u testuser -p ASDDsf3sdsf2 -o HTHHH72MQ7CBVX3SU25YRKQO6OAI36TD -i FPj9cymketaHXunJE3E3 -tfa -apidevbox run call -b https://dev.xplan.iress.com.au -u testuser -p ASDDsf3sdsf2 -o HTHHH72MQ7CBVX3SU25YRKQO6OAI36TD -i FPj9cymketaHXunJE3E3 -tfa -edaiNote:
- If you don't specify a password using the
-poption the script will prompt for the password - If you don't specify an OTP Secret using the
-ooption the script will prompt for the secret
Available commands:
devbox run test- Run testsdevbox run lint- Run lintingdevbox run format- Format codedevbox run upgrade- Upgrade dependencies
Sample result of the above script:
[
{
"bookmark": "eyJpZCI6MTI1OX0=",
"id": 1259,
"entity_name": "Portfolio Superfund"
},
{
"bookmark": "eyJpZCI6MTQwNn0=",
"id": 1406,
"entity_name": "Portfolio Company Pty Ltd"
},
{
"bookmark": "eyJpZCI6MTQwN30=",
"id": 1407,
"entity_name": "Portfolio Trust"
}
]
MIT License (See the included Licence file for more information).