api account + get_quota method and tests