virgil_sdk.client.base_card_client module

class virgil_sdk.client.base_card_client.BaseCardClient[source]

Bases: object

The BaseCardClient defines a list of operations with Virgil Cards service.

get_card(card_id, token)[source]

Gets a card from Virgil Services by specified card ID.

Parameters
  • card_id – The card ID.

  • token – The string representation of Jwt token.

Returns

An instance of RawSignedModel class and flag, which determines whether or not this raw card is superseded.

publish_card(request, token)[source]

Publishes card in Virgil Cards service.

Parameters
  • request – An instance of RawSignedModel class.

  • token – The string representation of Jwt token.

Returns

Published raw card.

search_card(identity, token)[source]

Searches a cards on Virgil Services by specified identity.

Parameters
  • identity – The identity.

  • token – The string representation of Jwt token.

Returns

A list of found cards in raw form.