public static Application create ( final BandwidthClient client , final Map < String , Object > params ) throws Exception { assert ( client != null ) ; String uri = client . getUserResourceUri ( BandwidthConstants . APPLICATIONS_URI_PATH ) ; RestResponse response = client . post ( uri , params ) ; RestResponse getResponse = client . get ( response . getLocation ( ) , null ) ; return new Application ( client , toJSONObject ( getResponse ) ) ; }
Convenience factory method to create an Application object from a set of params with a given client