Updated getApiProxy to pass invocation method and args to decide which API proxy to return