this class provides the REST client API for communication with Microsoft Dynamics 365 Common Data Service servers
More...
|
const | ApiProfiles = ... |
| API profiles.
|
|
const | DefaultApiVersion = "9.2" |
| Default API version.
|
|
const | DefaultBusinessCentralBaseUri = "https://api.businesscentral.dynamics.com/" |
| Default Dynamics 365 base URI.
|
|
const | DefaultDynamicsPingHeaders = ... |
| Default Dynamics ping headers.
|
|
const | DefaultDynamicsPingMethod = "GET" |
| Default Dynamics ping method.
|
|
const | DefaultDynamicsPingPath = "{api_uri_path}/WhoAmI" |
| Default Dynamics ping path.
|
|
const | OAuth2AuthUriPathSuffix = "/oauth2/v2.0/authorize" |
| OAuth2 auth URI path suffix.
|
|
const | OAuth2AuthUrl = sprintf("%scommon%s", OAuth2BaseUrl, OAuth2AuthUriPathSuffix) |
| OAuth2 auth URL.
|
|
const | OAuth2BaseUrl = "https://login.microsoftonline.com/" |
| OAuth2 auth URL.
|
|
const | OAuth2TokenUriPathSuffix = "/oauth2/v2.0/token" |
| OAuth2 token URI path suffix.
|
|
const | OAuth2TokenUrl = sprintf("%scommon%s", OAuth2BaseUrl, OAuth2TokenUriPathSuffix) |
| OAuth2 token URL.
|
|
const | RequestUriPathPrefix = "/api/data/v" |
| Request URI path prefix.
|
|
this class provides the REST client API for communication with Microsoft Dynamics 365 Common Data Service servers
This class requires the following options for Microsoft Dynamics 365 Common Data Service authentication and authorization to the target server:
oauth2_client_id:
the OAuth2 client ID
oauth2_client_secret:
the OAuth2 client secret
Errors returned from Dynamics will have the following format:
err:
will be the hex error code from Dynamics (ex: 0x8006088a
)
desc:
the exception message (ex: Resource not found for the segment 'WhoAmi'.
)
arg:
the error hash from the server plus a decoded_body
argument with any decoded message body