Namecheap.NoOpParser (Namecheap v0.2.1) View Source

Parser that returns the raw XML data from the response as an unmodified string.

iex(1)> Namecheap.Client.command("namecheap.domains.check", %{"DomainList" => "tribes.host"}, parser: Namecheap.NoOpParser)
{:ok,
 "<?xml version="1.0" encoding="utf-8"?>
<ApiResponse Status="OK" xmlns="http://api.namecheap.com/xml.response">
  <Errors />
  <Warnings />
  <RequestedCommand>namecheap.domains.check</RequestedCommand>
  <CommandResponse Type="namecheap.domains.check">
    <DomainCheckResult Domain="tribes.host" Available="true" ErrorNo="0" Description="" IsPremiumName="false" PremiumRegistrationPrice="0" PremiumRenewalPrice="0" PremiumRestorePrice="0" PremiumTransferPrice="0" IcannFee="0" EapFee="0" />
  </CommandResponse>
  <Server>PHX01SBAPIEXT05</Server>
  <GMTTimeDifference>--5:00</GMTTimeDifference>
  <ExecutionTime>1.315</ExecutionTime>
</ApiResponse>"}