...
The steps are:
- Clear the sandbox (method)
- Send content to sandbox (method)
- Get word count and cost (method)
- Display counts & cost to user
- If the user confirms now or later, you would send the content again to the Beebox using the regular API methodsmethod.
- (If the user declines, you do not need to do anything else)
...
If your system needs the count & cost but does not ask a user for confirmation, you would proceed like this:
- Clear the sandbox (method)
- Send content to sandbox (method)
- Get word count and cost and save Have Beebox copy (method)
- Commit sandbox content (method): Beebox copies all files from sandbox to regular input (in a single call required).
Concurrent access to a project's sandbox
...