openbazaar.js
function createListing(config, listingData) {
  const options = {
    method: "POST",
    uri: `${config.obServer}:${config.obPort}/ob/listing/`,
    body: listingData,
    json: true, // Automatically stringifies the body to JSON
    headers: {
      Authorization: config.apiCredentials,
    },
  };

  return rp(options);
}
function createListing(config, listingData) {
  const options = {
    method: "POST",
    uri: `${config.obServer}:${config.obPort}/ob/listing/`,
    body: listingData,
    json: true, // Automatically stringifies the body to JSON
    headers: {
      Authorization: config.apiCredentials,
    },
  };

  return rp(options);
}
function createListing ( config , listingData ) { const options = { method : "POST" , uri : ` ${ config . obServer } ${ config . obPort } ` , body : listingData , json : true , // Automatically stringifies the body to JSON headers : { Authorization : config . apiCredentials , } , } ; return rp ( options ) ; }
Create a listing in the OB store.
Create a listing in the OB store .