-
Notifications
You must be signed in to change notification settings - Fork 83
/
Genderize.xml
31 lines (28 loc) · 1.26 KB
/
Genderize.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?xml version="1.0" encoding="utf-8" ?>
<Suite Title="Genderize" Identifier="Genderize" RequireVersion="8.2" Category="Demographics" SourceUrl="https://github.com/nielsbosma/SeoTools-for-Excel-Connectors/blob/master/Genderize.xml" HelpUrl="http://seotoolsforexcel.com/genderize/" HelpText="Documentation">
<Author Name="Victor" Url="http://community.seotoolsforexcel.com/users/diskborste/activity"/>
<RestConnector Title="Genderize" Id="Genderize">
<Parameters>
<Text Id="Name" Title="Name" Required="true" Debug.DefaultValue="michelle"/>
<Select Id="Country" Title="Country" DefaultValue="all">
<DataSource>
<Item Id="all" Title="All"/>
<ISOCountryCodes/>
</DataSource>
</Select>
</Parameters>
<Fetch>
<Fetch.Url>
<![CDATA[
https://api.genderize.io/?name=@Utils.UrlEncode(Model.Name)
@(Model.Country != "all" ? "&country_id=" + Model.Country : "")
]]>
</Fetch.Url>
</Fetch>
<Parse>
<JsonPath Expr="gender" Id="Gender" DefaultValue=""/>
<JsonPath Expr="probability" Id="Probability" Converter="Double" DefaultValue="" Checked="false"/>
<JsonPath Expr="count" Id="Count" Converter="Auto" DefaultValue="" Checked="false"/>
</Parse>
</RestConnector>
</Suite>