简体   繁体   中英

how to get the userID on a beforeSave function in parse.com cloud code?

I'm trying to make a beforeSave function in parse.com cloud code.

I need to get the userID of the user sending the request. it is not stored in the object I'm sending . In the cloud code console, I can see the line:

E2014-10-08T00:41:30.099Z] v71: before_save triggered for Bill for user 9obpDIgerJ

so the userID is somewhere there, but I can't figure out where to get it!

thank you

如在Cloud Codeing a Cloud Function文档中所述 ,request.user包含发出请求的Parse.User。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM