Update README.md

This commit is contained in:
tripathyr 2021-12-22 12:06:28 +05:30 committed by GitHub
parent f38f9fe28d
commit f75337c9b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,10 +73,11 @@ floCloudAPI.requestGeneralData("type1", { senderIDs: floGlobals.subAdmins })
* Usage of sendGeneralData from RIBC dApp
```
//take name and comments as function parameters, and sendGeneralData of InternRequests type
applyForIntern: function (name, comments = '') {
return floCloudAPI.sendGeneralData([name, comments], "InternRequests")
},
// take updates as function parameter, and return a promise that sends general data of type "InternUpdates"
postInternUpdate: function (updates) {
return new Promise((resolve, reject) => {
floCloudAPI.sendGeneralData(updates, "InternUpdates")
@ -95,6 +96,7 @@ floCloudAPI.requestGeneralData("type1", { senderIDs: floGlobals.subAdmins })
* floGlobals usage from RIBC dApp
```
floGlobals.generalVC["{\"application\":\"RIBC\",\"type\":\"InternUpdates\"}"]
= '1640106537305_FSdjJCJdU43a1dyWY6dRES1ekoupEjFPqQ'