Implementing docs API for simple text document.