Updates API to allow for method(config) or method(url, [data]) calls