virgil_sdk.client.connections package¶
Submodules¶
virgil_sdk.client.connections.base_connection module¶
virgil_sdk.client.connections.base_request module¶
virgil_sdk.client.connections.request module¶
-
class
virgil_sdk.client.connections.request.
Request
(endpoint, body=None, method='GET', headers=None)[source]¶ Bases:
virgil_sdk.client.connections.base_request.BaseRequest
Http request wrapper.
Parameters: - endpoint – request endpoint
- body – request body
- headers – dict of request additional headers
- method – http request method
-
DELETE
= 'DELETE'¶
-
GET
= 'GET'¶
-
POST
= 'POST'¶
-
PUT
= 'PUT'¶
Add authorization token to request.
Parameters: access_token – Service access token.
-
body
¶ Gets the requests body.
-
endpoint
¶ Gets the endpoint. Does not include server base address
-
headers
¶ Gets the http headers.
-
method
¶ Gets the request method.
virgil_sdk.client.connections.service_connection module¶
-
class
virgil_sdk.client.connections.service_connection.
ServiceConnection
(base_url)[source]¶ Bases:
virgil_sdk.client.connections.base_connection.BaseConnection
-
base_url
¶ Gets api url.
-
virgil_sdk.client.connections.service_error module¶
virgil_sdk.client.connections.urllib module¶
Module containing urllib importing logic for version compatibility.