docs: function processVpid(host,path,api_key,vpid) {
  	var query = nitro.newQuery();
  	query.add(api.fVersionsPid,vpid,true);
  	if (partner_pid != '') {
  		query.add(api.fVersionsPartnerPid,partner_pid);
  	}
  	else {
  		if (pending) {
  			query.add(api.fVersionsAvailability,'P30D');
  		}
  		else {
  			query.add(api.fVersionsAvailabilityAvailable);
  		}
  	}
  	if (embargoed) {
  		query.add(api.xProgrammesEmbargoed,embargoed);
  	}
  	nitro.make_request(host,api.nitroVersions,api_key,query,{},function(obj){
  		for (var i in obj.nitro.results.items) {
  			var item = obj.nitro.results.items[i];
  			var pid = item.version_of.pid;
  			processPid(host,path,api_key,pid)
  		}
  	});
  }