Свойство | Type | Description | |
---|---|---|---|
_accessTokenRenewer |
Méthode | Description | |
---|---|---|
Authenticate ( ) : |
Get an access token and setup a timer to refresh the token
|
|
CreateRequest ( object>.Dictionary |
Forms the HttpWebRequest
|
|
DeAuthenticate ( ) : |
Calls an endpoint on the PokitDok server to remove client access tokens.
|
|
DeleteRequest ( string requestPath ) : |
Perform a DELETE request for the given resource
|
|
GetRequest ( string requestPath, string>.Dictionary |
Perform a GET request given the http request path and a dictionary of query parameters.
|
|
OauthApplicationClient ( string clientId, string clientSecret, int requestTimeout = DEFAULT_TIMEOUT, |
Initializes a new instance of the pokitdokcsharp.OauthApplicationClient class.
|
|
PostRequest ( string requestPath, object>.Dictionary |
Perform a POST request given the http request path and a dictionary representing the JSON post body.
|
|
PostRequest ( string requestPath, string postFilePath, string postFileContentDispositionName, string postFileContentType, string>.Dictionary |
Perform a POST request given the http request path and a file to post with optional form field parameters.
|
|
PutRequest ( string requestPath, object>.Dictionary |
Perform a PUT request given the uri and put data form fields
|
Méthode | Description | |
---|---|---|
AuthenticateAuthorizationCode ( ) : |
||
AuthenticateClientCredentials ( ) : |
||
AuthenticateRefreshToken ( ) : |
||
AuthenticateRequest ( |
||
GetPostStream ( string filePath, string fileContentType, string fileContentDispositionName, |
Builds a Stream of multipart form data from file and form fields.
|
|
OnTokenExpiredCallback ( object stateInfo ) : void |
Raises the token expired callback event.
|
|
ProcessResponse ( |
Processes the http response into a pokitdokcsharp.ResponseData object.
|
|
isAccessTokenExpired ( ) : bool |
Check if the access token is expired
|
public CreateRequest ( object>.Dictionary |
||
data | object>.Dictionary | data to be converted to JSON. Need to know the length |
url | string | URL |
method | string | post, put, delete, get |
content_type | string | should always be application/json (default) |
Résultat |
public DeAuthenticate ( ) : |
||
Résultat |
public DeleteRequest ( string requestPath ) : |
||
requestPath | string | Request path/resource |
Résultat |
public GetRequest ( string requestPath, string>.Dictionary |
||
requestPath | string | Request path. |
parameters | string>.Dictionary | Dictionary of query parameters. |
Résultat |
public OauthApplicationClient ( string clientId, string clientSecret, int requestTimeout = DEFAULT_TIMEOUT, |
||
clientId | string | Client identifier. |
clientSecret | string | Client secret. |
requestTimeout | int | Request timeout. |
accessToken | Access token. | |
redirectUrl | The Platform App redirect url. | |
tokenRefresh | TokenRefreshDelegate | Invoked when access token is refreshed. |
scope | string | The requested scopes |
authCode | string | The authorization code recieved by the scope grant of the Platform App |
Résultat | System |
public PostRequest ( string requestPath, object>.Dictionary |
||
requestPath | string | Request path. |
postData | object>.Dictionary | Post data: dictionary representing JSON data |
Résultat |
public PostRequest ( string requestPath, string postFilePath, string postFileContentDispositionName, string postFileContentType, string>.Dictionary |
||
requestPath | string | Request path. |
postFilePath | string | File system path of file data to be posted. |
postFileContentDispositionName | string | Post file content disposition name. |
postFileContentType | string | Post file content type. |
parameters | string>.Dictionary | Dictionary of form data parameters. |
Résultat |
public PutRequest ( string requestPath, object>.Dictionary |
||
requestPath | string | Request path. |
putData | object>.Dictionary | Put data: dictionary representing JSON data. |
Résultat |