Client for making Web API request from a Microsoft Dynamics 365 Database.
Project description
Dynamics Web API Client
Client for making Web API request from a Microsoft Dynamics 365 Database.
API Reference Docs: https://docs.microsoft.com/en-us/powerapps/developer/data-platform/webapi/query-data-web-api
How to use:
- Init the client:
client = DynamicsClient(...)
client = DynamicsClient.from_environment()
- Set the table:
client.table = "..."
- Set row (Required for PATCH and DELETE, otherwese optional):
client.row_id = "..."
- Set query options (optional):
client.select = [...], client.expand = {...}, etc.
- Set headers (optional):
client.headers = {...} or client[...] = ...
Make a GET request:
result = client.GET()
Make a POST request:
result = client.POST(data={...})
Make a PATCH request:
result = client.PATCH(data={...})
Make a DELETE request:
result = client.DELETE()
Remember to reset between queries:
client.reset_query()
Query with no table nor query options set to get a list of tables in the database.
Use fetch_schema
for an xml representation of the relational ascpects of the data.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dynamics-client-0.0.2.tar.gz
(17.5 kB
view hashes)
Built Distribution
Close
Hashes for dynamics_client-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64157484735789b4bbb6354ebdc617f17f9ff634c428d2d08a72adf4a232f2ea |
|
MD5 | 8e47fdabfdc27bccd61d83b824654ca8 |
|
BLAKE2b-256 | 78c327d6318cf7dd57ddf442dfa3eecc7d659a2ce3b6a83dddcfca2961469e9c |