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.1.tar.gz
(16.8 kB
view hashes)
Built Distribution
Close
Hashes for dynamics_client-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9365f980d6e310a4c7c24c207aa02995f84257b977bf5d20d03ae10e8ee6a178 |
|
MD5 | 7a9428c023090481a3a56cd624a07fa8 |
|
BLAKE2b-256 | aac0bf0f8348f7bd4dc578b791bddb64c56231ac16a3d7205af3d708b3fe3db7 |