nvm_backend
BackendApiOptions
Represents the backend API options.
Args:
environment
(Environment): The environment.api_key
(Optional[str]): The Nevermined API Key. This key identify your user and is required to interact with the Nevermined API. You can get your API key by logging in to the Nevermined App. See https://docs.nevermined.app/docs/tutorials/integration/nvm-api-keysheaders
(Optional[Dict[str, str]]): Additional headers to send with the requests__init__
__init__(
environment: Environment,
api_key: Optional[str] = None,
headers: Optional[Dict[str, str]] = None
)
NVMBackendApi
__init__
__init__(opts: BackendApiOptions)
connect_handler
connect_handler(data)
connect_socket
connect_socket()
delete
delete(url: str, data: Any, headers: Optional[Dict[str, str]] = None)
disconnect
disconnect()
disconnect_socket
disconnect_socket()
get
get(url: str, headers: Optional[Dict[str, str]] = None)
get_service_token
get_service_token(service_did: str) → ServiceTokenResultDto
Gets the service token.
Args:
service_did
(str): The DID of the service.Returns:
ServiceTokenResultDto
: The result of the creation operation.Raises:
HTTPError
: If the API call fails.Example: response = your_instance.get_service_token(service_did=”did:nv:xyz789”) print(response)
join_room
join_room(join_account_room: bool, room_ids: Optional[str, List[str]] = None)
parse_headers
parse_headers(additional_headers: dict[str, str]) → dict[str, str]
parse_url_to_backend
parse_url_to_backend(uri: str) → str
parse_url_to_proxy
parse_url_to_proxy(uri: str) → str
post
post(url: str, data: Any, headers: Optional[Dict[str, str]] = None)
put
put(url: str, data: Any, headers: Optional[Dict[str, str]] = None)
set_subscriber
set_subscriber(
callback,
join_account_room,
join_agent_rooms,
subscribe_event_types,
get_pending_events_on_subscribe
)
This file was automatically generated via lazydocs.