code: public static base_response add(nitro_service client, dnstxtrec resource) throws Exception {
  		dnstxtrec addresource = new dnstxtrec();
  		addresource.domain = resource.domain;
  		addresource.String = resource.String;
  		addresource.ttl = resource.ttl;
  		return addresource.add_resource(client);
  	}
docs: Use this API to add dnstxtrec.