I submitted an addon that uses the "protected" functions - and works.
You have to do something like:
CallSecureProtected("PickupInventoryItem", fromBag, fromSlot, quantity)
Here's a git repo
https://github.com/bradgearon/eso-stuff
Stuff.lua line 11 and 14 are the important chunks...