Dropped in the rest of the original code via a SendWithUs::ApiRequest class. Pretty unlikely this works as its all completely untested, but at least the compiler isn't complaining