public static Bridge create(final BandwidthClient client, final Map<String, Object>params)
    	    throws Exception {
    	
        assert (client!= null && params != null);
    	final String bridgesUri =  client.getUserResourceUri(BandwidthConstants.BRIDGES_URI_PATH);
    	final RestResponse response = client.post(bridgesUri, params);
    	final JSONObject callObj = toJSONObject(client.get(response.getLocation(), null));
    	final Bridge bridge = new Bridge(client, callObj);
    	return bridge;
	}
public static Bridge create ( final BandwidthClient client , final Map < String , Object > params ) throws Exception { assert ( client != null && params != null ) ; final String bridgesUri = client . getUserResourceUri ( BandwidthConstants . BRIDGES_URI_PATH ) ; final RestResponse response = client . post ( bridgesUri , params ) ; final JSONObject callObj = toJSONObject ( client . get ( response . getLocation ( ) , null ) ) ; final Bridge bridge = new Bridge ( client , callObj ) ; return bridge ; }
Convenience factory method to create a Bridge object from a params maps
@param client the client
@param params the params
@return the Bridge
@throws IOException unexpected error.