11.4.4.5 Create Permissions


Function name createPermission(CreatePermission createPermission)
Description The permissions of accessing to Hub are created by the user for third parties. Permissions WRITE means store credentials, UPDATE means update credentials, READ means read credentials. An authorization can only be accessed once, and an authorization with the same uid and the same permission cannot be created again without access.
Method call parameters
No. Parameter Type Required Description
1 CreatePermission Y
CreatePermission
1 did String Y DID
2 url String Y Resource Url
3 grant Operation Y Operation permissions, WRITE/UPDATE/READ
4 grantDid String Y Authorize Did
5 grantPublicKey String Y Authorize public key
6 privateKey String Y Private key
Method return parameters
No. Parameter Type Required Description
1 CreatePermissionResp Y Creation result
CreatePermissionResp
No. Parameter Type Required Description
1 url String Y Resource Url
2 key String Y Encryption key
© 2019-2021 Red Date (Hong Kong) Technology Limited. all right reserved,powered by GitbookFile Modify: 2021-10-31 22:21:22

results matching ""

    No results matching ""

    results matching ""

      No results matching ""