nvm_backendBackendApiOptionsRepresents 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_socketconnect_socket()
connect_socket_subscriberconnect_socket_subscriber(
callback,
join_account_room,
join_agent_rooms,
subscribe_event_types,
get_pending_events_on_subscribe
)
deletedelete(url: str, data: Any, headers: Optional[Dict[str, str]] = None)
disconnectdisconnect()
disconnect_socketdisconnect_socket()
getget(url: str, headers: Optional[Dict[str, str]] = None)
get_service_tokenget_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_roomjoin_room(join_account_room: bool, room_ids: Optional[str, List[str]] = None)
parse_headersparse_headers(additional_headers: dict[str, str]) → dict[str, str]
parse_url_to_backendparse_url_to_backend(uri: str) → str
parse_url_to_proxyparse_url_to_proxy(uri: str) → str
postpost(url: str, data: Any, headers: Optional[Dict[str, str]] = None)
putput(url: str, data: Any, headers: Optional[Dict[str, str]] = None)
This file was automatically generated via lazydocs.