fetchVoila(imageURL){
		mixpanel.track(
		"Voila!",
			{"Searched URL": imageURL}
		);
		let formData = new FormData();
		formData.append('im_url', imageURL);
		formData.append('limit','12');
		formData.append('page', this.state.page);
		formData.append('fl', 'product_name');
		formData.append('fl', 'price');
		formData.append('fl', 'sm_im_url');
		formData.append('fl', 'product_url');
		jQuery.ajax({
			url: "http://visearch.visenze.com/uploadsearch",
			type: 'POST',
			beforeSend: function(req) {
				req.setRequestHeader('Authorization', 'Basic ' + btoa('c020d19b9872438002393de4d68b141b:4b7182bf60c3f6870361db3add002523'));
			},
			data: formData,
			processData: false,
			contentType: false ,
			success: function(data) {
				if (data.result.length > 0){
					this.setState({
						resultsReceived: true,
						searching: false,
						productList: data.result
					});
				} else {
					this.setState({
						searching: false
					});
				}
			}.bind(this),
			error: function(xhr, status, err) {
				console.err(this.props.url, status, err.toString());
			}.bind(this)
		});
		this.setState({
			searching: true,
			resultsReceived: false
		});
	}
/*
	* Get image by URL
	* PARAMS:
		imageURL - The url of the image to search for. 
	* MANIPULTES STATES:
		resultsRecieved
		productList
	*/
Get image by URL
PARAMS:
imageURL - The url of the image to search for.
MANIPULTES STATES:
resultsRecieved
productList
Get image by URL PARAMS : imageURL - The url of the image to search for . MANIPULTES STATES : resultsRecieved productList
fetchVoila(imageURL){
		mixpanel.track(
		"Voila!",
			{"Searched URL": imageURL}
		);
		let formData = new FormData();
		formData.append('im_url', imageURL);
		formData.append('limit','12');
		formData.append('page', this.state.page);
		formData.append('fl', 'product_name');
		formData.append('fl', 'price');
		formData.append('fl', 'sm_im_url');
		formData.append('fl', 'product_url');
		jQuery.ajax({
			url: "http://visearch.visenze.com/uploadsearch",
			type: 'POST',
			beforeSend: function(req) {
				req.setRequestHeader('Authorization', 'Basic ' + btoa('c020d19b9872438002393de4d68b141b:4b7182bf60c3f6870361db3add002523'));
			},
			data: formData,
			processData: false,
			contentType: false ,
			success: function(data) {
				if (data.result.length > 0){
					this.setState({
						resultsReceived: true,
						searching: false,
						productList: data.result
					});
				} else {
					this.setState({
						searching: false
					});
				}
			}.bind(this),
			error: function(xhr, status, err) {
				console.err(this.props.url, status, err.toString());
			}.bind(this)
		});
		this.setState({
			searching: true,
			resultsReceived: false
		});
	}
fetchVoila ( imageURL ) { mixpanel . track ( "Voila!" , { "Searched URL" : imageURL } ) ; let formData = new FormData ( ) ; formData . append ( 'im_url' , imageURL ) ; formData . append ( 'limit' , '12' ) ; formData . append ( 'page' , this . state . page ) ; formData . append ( 'fl' , 'product_name' ) ; formData . append ( 'fl' , 'price' ) ; formData . append ( 'fl' , 'sm_im_url' ) ; formData . append ( 'fl' , 'product_url' ) ; jQuery . ajax ( { url : "http://visearch.visenze.com/uploadsearch" , type : 'POST' , beforeSend : function ( req ) { req . setRequestHeader ( 'Authorization' , 'Basic ' + btoa ( 'c020d19b9872438002393de4d68b141b:4b7182bf60c3f6870361db3add002523' ) ) ; } , data : formData , processData : false , contentType : false , success : function ( data ) { if ( data . result . length > 0 ) { this . setState ( { resultsReceived : true , searching : false , productList : data . result } ) ; } else { this . setState ( { searching : false } ) ; } } . bind ( this ) , error : function ( xhr , status , err ) { console . err ( this . props . url , status , err . toString ( ) ) ; } . bind ( this ) } ) ; this . setState ( { searching : true , resultsReceived : false } ) ; }
Get image by URL
 PARAMS:
imageURL - The url of the image to search for.
Get image by URL PARAMS : imageURL - The url of the image to search for .