Ported WPClientREST to new API