Finished the actual api-wrapper, need to write some tests.