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

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

  return rp(options);
}
function createProfile ( config , profileData ) { const options = { method : "POST" , uri : ` ${ config . obServer } ${ config . obPort } ` , body : profileData , json : true , // Automatically stringifies the body to JSON headers : { Authorization : config . apiCredentials , } , // resolveWithFullResponse: true } ; return rp ( options ) ; }
Create a profile for a new store
Create a profile for a new store