index.js
function searchGlobalMetadata(query, opts, callback) {
    if (typeof opts === 'function' && !callback) {
        callback = opts;
        opts = {};
    }

    var searchEndpointUrl = this.getResourceUrl({
        path: '/images',
        user: null,
        query: buildQuery(opts, true).toString()
    });

    request({
        method: 'SEARCH',
        uri: searchEndpointUrl.toString(),
        json: query,
        header: {
            'User-Agent': 'imboclient-js'
        },
        onComplete: function(err, res, body) {
            callback(
                err,
                body ? body.images : [],
                body ? body.search : {},
                res
            );
        }
    });

    return true;
}
function searchGlobalMetadata(query, opts, callback) {
    if (typeof opts === 'function' && !callback) {
        callback = opts;
        opts = {};
    }

    var searchEndpointUrl = this.getResourceUrl({
        path: '/images',
        user: null,
        query: buildQuery(opts, true).toString()
    });

    request({
        method: 'SEARCH',
        uri: searchEndpointUrl.toString(),
        json: query,
        header: {
            'User-Agent': 'imboclient-js'
        },
        onComplete: function(err, res, body) {
            callback(
                err,
                body ? body.images : [],
                body ? body.search : {},
                res
            );
        }
    });

    return true;
}
function searchGlobalMetadata ( query , opts , callback ) { if ( typeof opts === 'function' && ! callback ) { callback = opts ; opts = { } ; } var searchEndpointUrl = this . getResourceUrl ( { path : '/images' , user : null , query : buildQuery ( opts , true ) . toString ( ) } ) ; request ( { method : 'SEARCH' , uri : searchEndpointUrl . toString ( ) , json : query , header : { 'User-Agent' : 'imboclient-js' } , onComplete : function ( err , res , body ) { callback ( err , body ? body . images : [ ] , body ? body . search : { } , res ) ; } } ) ; return true ; }
Search globally for images using metadata

@param {Object} query - Metadata search query
@param {Object} opts - Metadata query options
@param {Function} callback - Function to call with the search result
@return {boolean}
@this ImboClient
Search globally for images using metadata