Update TheoreticalFramework.Rmd

added codes for API