connect
connect(
zapp
,element
,clientUrl
):Promise
<ParcnetAPI
>
Connects to PARCNET and returns a ParcnetAPI object.
Parameters
• zapp
The Zapp iniating the connection.
• zapp.name: string
= ...
• zapp.permissions = PermissionRequestSchema
• zapp.permissions.DELETE_POD? = ...
• zapp.permissions.DELETE_POD.collections: string
[] = ...
• zapp.permissions.INSERT_POD? = ...
• zapp.permissions.INSERT_POD.collections: string
[] = ...
• zapp.permissions.READ_POD? = ...
• zapp.permissions.READ_POD.collections: string
[] = ...
• zapp.permissions.READ_PUBLIC_IDENTIFIERS? = ...
• zapp.permissions.REQUEST_PROOF? = ...
• zapp.permissions.REQUEST_PROOF.collections: string
[] = ...
• zapp.permissions.SIGN_POD? = ...
• zapp.permissions.SUGGEST_PODS? = ...
• zapp.permissions.SUGGEST_PODS.collections: string
[] = ...
• element: HTMLElement
The element to attach the client iframe to.
• clientUrl: string
= "https://zupass.org"
The URL of the Parcnet client to connect to.
Returns
Promise
<ParcnetAPI
>
A promise that resolves to a ParcnetAPI object.