General api caller

Make the library be more flexible when there is new API is not implemented yet.