I want to know how to do this purely in code, not through command line calls/json or markdown. Thanks