Simply put them together.

It is hard to tell more since none of us seen your API at all.