function convert (request, options, callback) {

  if (!validateIsFunction(callback)) {
    throw new Error('Php-Guzzle~convert: Callback is not a function');
  }
  let snippet = '',
    snippetbody,
    requestBuilderSnippet,
    includeParamsAsOption,
    hasBody;
  options = sanitizeOptions(options, getOptions());
  addContentTypeHeader(request);

  const method = getRequestMethod(request),
    indentation = getIndentation(options),
    includeBoilerplate = getIncludeBoilerplate(options),
    url = getRequestURL(request),
    snippetHeaders = getSnippetHeaders(getRequestHeaders(request), indentation),
    snippetHeader = getSnippetBoilerplate(includeBoilerplate),
    snippetClient = getSnippetClient(options);
  snippetbody = parseBody(request.body, indentation, getBodyTrim(options), request.headers.get('Content-Type'));
  hasBody = includeBody(request, snippetbody);
  includeParamsAsOption = includeRequestOptions(snippetbody);
  requestBuilderSnippet = getSnippetRequestObject(method, url, hasBody, snippetHeaders);

  snippet += snippetHeader;
  snippet += snippetClient;
  snippet += snippetHeaders;
  snippet += snippetbody;
  snippet += requestBuilderSnippet;
  snippet += getSnippetFooter(options, includeParamsAsOption);

  return callback(null, snippet);
}
/**
  * Used to convert the postman sdk-request object in PHP-Guzzle request snippet
  *
  * @module convert
  *
  * @param  {Object} request - postman SDK-request object
 * @param  {object} options - process options
  * @param  {Function} callback - function with parameters (error, snippet)
  * @returns {String} - returns generated PHP-Guzzle snippet via callback
  */
Used to convert the postman sdk-request object in PHP-Guzzle request snippet
@module convert


Used to convert the postman sdk - request object in PHP - Guzzle request snippet @module convert
function convert (request, options, callback) {
  if (!validateIsFunction(callback)) {
    throw new Error('Php-Guzzle~convert: Callback is not a function');
  }
  let snippet = '',
    snippetbody,
    requestBuilderSnippet,
    includeParamsAsOption,
    hasBody;
  options = sanitizeOptions(options, getOptions());
  addContentTypeHeader(request);
  const method = getRequestMethod(request),
    indentation = getIndentation(options),
    includeBoilerplate = getIncludeBoilerplate(options),
    url = getRequestURL(request),
    snippetHeaders = getSnippetHeaders(getRequestHeaders(request), indentation),
    snippetHeader = getSnippetBoilerplate(includeBoilerplate),
    snippetClient = getSnippetClient(options);
  snippetbody = parseBody(request.body, indentation, getBodyTrim(options), request.headers.get('Content-Type'));
  hasBody = includeBody(request, snippetbody);
  includeParamsAsOption = includeRequestOptions(snippetbody);
  requestBuilderSnippet = getSnippetRequestObject(method, url, hasBody, snippetHeaders);
  snippet += snippetHeader;
  snippet += snippetClient;
  snippet += snippetHeaders;
  snippet += snippetbody;
  snippet += requestBuilderSnippet;
  snippet += getSnippetFooter(options, includeParamsAsOption);
  return callback(null, snippet);
}
function convert ( request , options , callback ) { if ( ! validateIsFunction ( callback ) ) { throw new Error ( 'Php-Guzzle~convert: Callback is not a function' ) ; } let snippet = '' , snippetbody , requestBuilderSnippet , includeParamsAsOption , hasBody ; options = sanitizeOptions ( options , getOptions ( ) ) ; addContentTypeHeader ( request ) ; const method = getRequestMethod ( request ) , indentation = getIndentation ( options ) , includeBoilerplate = getIncludeBoilerplate ( options ) , url = getRequestURL ( request ) , snippetHeaders = getSnippetHeaders ( getRequestHeaders ( request ) , indentation ) , snippetHeader = getSnippetBoilerplate ( includeBoilerplate ) , snippetClient = getSnippetClient ( options ) ; snippetbody = parseBody ( request . body , indentation , getBodyTrim ( options ) , request . headers . get ( 'Content-Type' ) ) ; hasBody = includeBody ( request , snippetbody ) ; includeParamsAsOption = includeRequestOptions ( snippetbody ) ; requestBuilderSnippet = getSnippetRequestObject ( method , url , hasBody , snippetHeaders ) ; snippet += snippetHeader ; snippet += snippetClient ; snippet += snippetHeaders ; snippet += snippetbody ; snippet += requestBuilderSnippet ; snippet += getSnippetFooter ( options , includeParamsAsOption ) ; return callback ( null , snippet ) ; }
Used to convert the postman sdk-request object in PHP-Guzzle request snippet
 @module convert
Used to convert the postman sdk - request object in PHP - Guzzle request snippet @module convert