<?xml version="1.0" encoding="utf-8" ?>
<ignite version="1.0" source="maxmind">

  <func name="minfraud" endpoint="https://minfraud.maxmind.com/app/ccv2r?i={ip}" method="GET" format="TXT" fieldDelimiter=";" 

valueDelimiter="=">
    <description>
      This function returns a risk score for a transaction, using Maxmind minFraud service.
    </description>
    <example>
      =Ignite("maxmind","minfraud","riskScore","8.8.8.8","US","98052","outlook.com","411711")
    </example>
    <inputs>
      <input name="ip" type ="input1" process="replace" />
      <input name="country" type ="input2" />
      <input name="postal" type ="input3" />
      <input name="domain" type ="input4" />
      <input name="bin" type ="input5" />
      <input name="license_key" type="config" value="8lemqe61ITE1"/>
    </inputs>
    <outputs>
      <output name="riskScore" path="riskScore"/>
      <output name="proxyScore" path="proxyScore"/>
      <output name="ip_corporateProxy" path="ip_corporateProxy"/>
      <output name="anonymousProxy" path="anonymousProxy"/>
      <output name="freeMail" path="freeMail"/>
      <output name="highRiskCountry" path="highRiskCountry"/>
      <output name="ip_asnum" path="ip_asnum"/>
      <output name="ip_domain" path="ip_domain"/>
      <output name="ip_isp" path="ip_isp"/>
      <output name="ip_org" path="ip_org"/>
      <output name="ALL" />
    </outputs>
  </func>

  <func name="proxyScore" endpoint="https://minfraud.maxmind.com/app/ipauth_http?i={ip}" method="GET" format="TXT" fieldDelimiter=";" 

valueDelimiter="=">
    <description>
      This function returns a proxy score for an IP address, using Maxmind Proxy Detection service.
    </description>
    <example>
      =Ignite("maxmind","proxyScore","proxyScore","8.8.8.8")
    </example>
    <inputs>
      <input name="ip" type ="input1" process="replace" />
      <input name="license_key" type="config" value="8lemqe61ITE1"/>
    </inputs>
    <outputs>
      <output name="proxyScore" path="proxyScore"/>
   </outputs>
  </func>

  <examples>
    <![CDATA[

<table border='1' class='ExcelTable2007'>
<tr><th class='heading'>&nbsp;</th><th>A</th><th>B</th><th>C</th><th>D</th><th>E</th><th>F (Forumla)</th><th>G (Output) 

</th></tr>
<tr><td class='heading' >1</td>
<td>8.8.8.8</td>
<td>US</td>
<td>98052</td>
<td>outlook.com</td>
<td>411711</td>
<td>=Ignite("maxmind","minfraud","riskScore",A1,B1,C1,D1,E1)</td>
<td>74.60</td>
</tr>
<tr><td class='heading' >2</td>
<td>8.8.8.8</td>
<td>US</td>
<td>98052</td>
<td>outlook.com</td>
<td>411711</td>
<td>=Ignite("maxmind","minfraud","proxyScore",A2,B2,C2,D2,E2)</td>
<td>0.00</td>
</tr>
<tr><td class='heading' >3</td>
<td>8.8.8.8</td>
<td>US</td>
<td>98052</td>
<td>outlook.com</td>
<td>411711</td>
<td>=Ignite("maxmind","minfraud","ip_corporateProxy",A3,B3,C3,D3,E3)</td>
<td>No</td>
</tr>
<tr><td class='heading' >4</td>
<td>8.8.8.8</td>
<td>US</td>
<td>98052</td>
<td>outlook.com</td>
<td>411711</td>
<td>=Ignite("maxmind","minfraud","anonymousProxy",A4,B4,C4,D4,E4)</td>
<td>No</td>
</tr>
<tr><td class='heading' >5</td>
<td>8.8.8.8</td>
<td>US</td>
<td>98052</td>
<td>outlook.com</td>
<td>411711</td>
<td>=Ignite("maxmind","minfraud","freeMail",A5,B5,C5,D5,E5)</td>
<td>Yes</td>
</tr>
<tr><td class='heading' >6</td>
<td>8.8.8.8</td>
<td>US</td>
<td>98052</td>
<td>outlook.com</td>
<td>411711</td>
<td>=Ignite("maxmind","minfraud","highRiskCountry",A6,B6,C6,D6,E6)</td>
<td>No</td>
</tr>
<tr><td class='heading' >7</td>
<td>8.8.8.8</td>
<td>US</td>
<td>98052</td>
<td>outlook.com</td>
<td>411711</td>
<td>=Ignite("maxmind","minfraud","ip_asnum",A7,B7,C7,D7,E7)</td>
<td>AS15169 Google Inc.</td>
</tr>
<tr><td class='heading' >8</td>
<td>8.8.8.8</td>
<td>US</td>
<td>98052</td>
<td>outlook.com</td>
<td>411711</td>
<td>=Ignite("maxmind","minfraud","ip_domain",A8,B8,C8,D8,E8)</td>
<td></td>
</tr>
</tr>
<tr><td class='heading' >9</td>
<td>8.8.8.8</td>
<td>US</td>
<td>98052</td>
<td>outlook.com</td>
<td>411711</td>
<td>=Ignite("maxmind","minfraud","ip_isp",A9,B9,C9,D9,E9)</td>
<td>Google</td>
</tr>
<tr><td class='heading' >10</td>
<td>8.8.8.8</td>
<td>US</td>
<td>98052</td>
<td>outlook.com</td>
<td>411711</td>
<td>=Ignite("maxmind","minfraud","ip_org",A10,B10,C10,D10,E10)</td>
<td>Google</td>
</tr>
<tr><td class='heading' >11</td>
<td>8.8.8.8</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td>=Ignite("maxmind","proxyScore","proxyScore",A10)</td>
<td>0.00</td>
</tr>
</table>

      ]]>
  </examples>

</ignite>
