Global Name:Request: Difference between revisions
Jump to navigation
Jump to search
m Admin moved page Global Name Web Service:Request to Global Name:Request |
No edit summary |
||
Line 6: | Line 6: | ||
{{CustomTOC}} | {{CustomTOC}} | ||
==Request== | A request consists of a protocol to make a call detailing desired elements. The minimum required elements in a request are your Customer ID and at least a full name or company name. | ||
Global Name supports JSON, JSONP, REST, SOAP, and XML protocols. | |||
==Field Names== | |||
This is a list of the request field names and their protocol naming conventions. | |||
{| class="alternate01 sortable" | |||
!Field Name !! Level !! REST !! JSON/XML | |||
|- | |||
|Transmission Reference||rowspan="3" valign="center"|Request||t||TransmissionReference | |||
|- | |||
|Customer ID||id||CustomerID | |||
|- | |||
|Options||opt||Options | |||
|- | |||
|Record ID||rowspan="3" valign="center"|Record|| ||RecordID | |||
|- | |||
|Company||comp||Company | |||
|- | |||
|Full Name||full||FullName | |||
|} | |||
==Request Elements== | |||
The following elements set the basic options for each request. These apply to the entire request, not the individual records. | |||
<h3 style="background-color:rgb(240,240,240);">Transmission Reference</h3> | |||
:''Optional.'' | |||
:This is a string value that serves as a unique identifier for this set of records. It is returned as sent. | |||
:{| class="alternate01" | |||
!Protocol !! Syntax | |||
|- | |||
|JSON||<code>"TransmissionReference":"'''''string'''''"</code> | |||
|- | |||
|REST||<code>?t = '''''string'''''</code> | |||
|- | |||
|SOAP/XML||<code><TransmissionReference>'''''string'''''</TransmissionReference></code> | |||
|} | |||
<h3 style="background-color:rgb(240,240,240);">Customer ID</h3> | |||
:''Required.'' | |||
:This is a string value containing the identification number issued to the customer by Melissa Data for Global Name. | |||
:If this element is absent, the Cloud Service will return an error. To receive a customer ID, please contact your Melissa Data sales representative at 1-800-MELISSA. | |||
:{| class="alternate01" | |||
!Protocol !! Syntax | |||
|- | |||
|JSON||<code>"CustomerID":"'''''string'''''"</code> | |||
|- | |||
|REST||<code>&id = '''''string'''''</code> | |||
|- | |||
|SOAP/XML||<code><CustomerID>'''''string'''''</CustomerID></code> | |||
|} | |||
<h3 style="background-color:rgb(240,240,240);">Options</h3> | |||
:''Optional.'' | |||
:This is a string value containing the options set by the user. | |||
:{| class="alternate01" | |||
!Protocol !! Syntax | |||
|- | |||
|JSON||<code>"Options":"'''''string'''''"</code> | |||
|- | |||
|REST||<code>?opt = '''''string'''''</code> | |||
|- | |||
|SOAP/XML||<code><Options>'''''string'''''</Options></code> | |||
|} | |||
:List options in the following format, with multiple options delimited with a ",". | |||
:{| class="alternate01" | |||
!Syntax | |||
|- | |||
|<code>''OptionName'':''Parameter'',''OptionName'':''Parameter''</code> | |||
|} | |||
:<h4 style="border-bottom:1px solid black;">CorrectFirstName</h4> | |||
::This option enables or disables spelling correction of first names. | |||
::Global Name uses a database of commonly misspelled first names to correct the values of the First Name properties. | |||
::{| class="alternate01 sortable" | |||
!Option Name !! Parameter !! Description | |||
|- | |||
|rowspan="2"|'''CorrectFirstName'''||<code>OFF</code>||'''''Default.''''' Preserve first name spellings; no correction allowed. | |||
|- | |||
|<code>ON</code>||Allows first name misspelling corrections. | |||
|} | |||
:<h4 style="border-bottom:1px solid black;">NameHint</h4> | |||
::This option sets the most likely format of the FullName input string. | |||
::This helps the service in cases where the order and formatting of the FullName input string are unclear. | |||
::*Full or normal name order is: <Prefix> <First> <Middle> <Last> <Suffix>. | |||
::*Inverse name order is: <Last> <Suffix>, <Prefix> <First> <Middle>. | |||
::Either the '''''Code''''' or '''''Name''''' listed below can be used to set the action. | |||
::For example, <code>Options = NAMEHINT:4</code> and <code>Options = NAMEHINT:Varying</code> are equivalent settings. | |||
::{|class="alternate01" cellspacing="0" | |||
!Option Name!!Parameter Code!!Parameter Name!!Definition | |||
|- | |||
|rowspan="9"|'''NameHint'''||<code>1</code>||<code>DefinitelyFull</code>||Name will always be treated as normal name order regardless of formatting or punctuation. | |||
|- | |||
|<code>2</code>||<code>VeryLikelyFull</code>||Name will be treated as normal name order unless inverse order is clearly indicated by formatting or punctuation. | |||
|- | |||
|<code>3</code>||<code>ProbablyFull</code>||If necessary, statistical logic will be employed to determine name order, with a bias towards normal name order. | |||
|- | |||
|<code>4</code>||<code>Varying</code>||'''''Default.''''' If necessary, statistical logic will be employed to determine name order, with no bias toward either name order. | |||
|- | |||
|<code>5</code>||<code>ProbablyInverse</code>||If necessary, statistical logic will be employed to determine name order, with a bias toward inverse name order. | |||
|- | |||
|<code>6</code>||<code>VeryLikelyInverse</code>||Name will be treated as inverse name order unless normal order is clearly indicated by formatting or punctuation. | |||
|- | |||
|<code>7</code>||<code>DefinitelyInverse</code>||Name will always be treated as inverse name order, regardless of formatting or punctuation. | |||
|- | |||
|<code>8</code>||<code>MixedFirstName</code>||Name element is expected to only contain first names. | |||
|- | |||
|<code>9</code>||<code>MixedLastName</code>||Name element is expected to only contain last names. | |||
|} | |||
:<h4 style="border-bottom:1px solid black;">GenderPopulation</h4> | |||
::This option sets the gender balance of the source data, predominantly male, predominantly female, or neutral. | |||
::If you know that the majority of inputted names will be predominantly one gender, meaning that gender-neutral names will likely be of a particular gender, use this property to set the gender bias while genderizing names. | |||
::Either the ‘Code’ or ‘Name’ listed below can be used to set the action. | |||
::For example, <code>Options = GENDERPOPULATION:3</code> and <code>Options = GENDERPOPULATION:Female</code> are equivalent settings. | |||
::{|class="alternate01" cellspacing="0" | |||
!Option Name!!Parameter Code!!Parameter Name!!Definition | |||
|- | |||
|rowspan="3"|'''GenderPopulation'''||<code>1</code>||<code>Male</code>||Bias toward male. | |||
|- | |||
|<code>2</code>||<code>Mixed</code>||'''''Default.''''' No bias toward either gender. | |||
|- | |||
|<code>3</code>||<code>Female</code>||Bias toward female. | |||
|} | |||
:<h4 style="border-bottom:1px solid black;">GenderAggression</h4> | |||
::This option sets how aggressively the service will attempt to genderize neutral first names. | |||
::By default, Global Name will assign a value of “N” when attempting to genderize a first name that can easily be male or female, such as “Taylor,” “Chris,” or “Pat.” | |||
::Using this property in conjunction with the GenderPopulation option, you can instruct the service on how much preference to give one gender over the other when assigning a gender to a normally neutral name. | |||
::Either the ‘Code’ or ‘Name’ listed below can be used to set the action. | |||
::For example, <code>Options = GENDERAGGRESSION:2</code> and <code>Options = GENDERAGGRESSION:Neutral</code> are equivalent settings. | |||
::{|class="alternate01" cellspacing="0" | |||
!Option Name!!Parameter Code!!Parameter Name!!Definition | |||
|- | |||
|rowspan="3"|'''GenderAggression'''||<code>1</code>||<code>Aggressive</code>||Aggressive name genderizing. | |||
|- | |||
|<code>2</code>||<code>Neutral</code>||'''''Default.''''' Neutral name genderizing. | |||
|- | |||
|<code>3</code>||<code>Conservative</code>||Conservative name genderizing. | |||
|} | |||
::The table below shows how the settings for Gender Aggression and Gender Population affect genderizing: | |||
::{| cellspacing="0" class="genderTable" | |||
| | |||
|colspan="3" class="genderTableBlue"|Male | |||
| | |||
|colspan="3" class="genderTablePink"|Female | |||
|- | |||
!Aggression | |||
|class="genderTableBlue"|Always [7] | |||
|class="genderTableBlue"|Often [6] | |||
|class="genderTableBlue"|Normally [5] | |||
|Neutral [4] | |||
|class="genderTablePink"|Normally [3] | |||
|class="genderTablePink"|Often [2] | |||
|class="genderTablePink"|Always [1] | |||
|- | |||
!colspan="8" class="genderTableGreen"|Conservative | |||
|- | |||
!style="text-align:left;"|Even | |||
|class="genderTableBlue"|M | |||
|class="genderTableBlue"|N | |||
|class="genderTableBlue"|N | |||
|N | |||
|class="genderTablePink"|N | |||
|class="genderTablePink"|N | |||
|class="genderTablePink"|F | |||
|- | |||
!style="text-align:left;"|Male | |||
|class="genderTableBlue"|M | |||
|class="genderTableBlue"|M | |||
|class="genderTableBlue"|N | |||
|N | |||
|class="genderTablePink"|N | |||
|class="genderTablePink"|N | |||
|class="genderTablePink"|F | |||
|- | |||
!style="text-align:left;"|Females | |||
|class="genderTableBlue"|M | |||
|class="genderTableBlue"|N | |||
|class="genderTableBlue"|N | |||
|N | |||
|class="genderTablePink"|N | |||
|class="genderTablePink"|F | |||
|class="genderTablePink"|F | |||
|- | |||
!colspan="8" class="genderTableOrange"|Neutral | |||
|- | |||
!style="text-align:left;"|Even | |||
|class="genderTableBlue"|M | |||
|class="genderTableBlue"|M | |||
|class="genderTableBlue"|N | |||
|N | |||
|class="genderTablePink"|N | |||
|class="genderTablePink"|F | |||
|class="genderTablePink"|F | |||
|- | |||
!style="text-align:left;"|Male | |||
|class="genderTableBlue"|M | |||
|class="genderTableBlue"|M | |||
|class="genderTableBlue"|M | |||
|N | |||
|class="genderTablePink"|N | |||
|class="genderTablePink"|F | |||
|class="genderTablePink"|F | |||
|- | |||
!style="text-align:left;"|Females | |||
|class="genderTableBlue"|M | |||
|class="genderTableBlue"|M | |||
|class="genderTableBlue"|N | |||
|N | |||
|class="genderTablePink"|F | |||
|class="genderTablePink"|F | |||
|class="genderTablePink"|F | |||
|- | |||
!colspan="8" class="genderTableRed"|Aggressive | |||
|- | |||
!style="text-align:left;"|Even | |||
|class="genderTableBlue"|M | |||
|class="genderTableBlue"|M | |||
|class="genderTableBlue"|M | |||
|N | |||
|class="genderTablePink"|F | |||
|class="genderTablePink"|F | |||
|class="genderTablePink"|F | |||
|- | |||
!style="text-align:left;"|Male | |||
|class="genderTableBlue"|M | |||
|class="genderTableBlue"|M | |||
|class="genderTableBlue"|M | |||
|M | |||
|class="genderTablePink"|N | |||
|class="genderTablePink"|F | |||
|class="genderTablePink"|F | |||
|- | |||
!style="text-align:left;"|Females | |||
|class="genderTableBlue"|M | |||
|class="genderTableBlue"|M | |||
|class="genderTableBlue"|N | |||
|F | |||
|class="genderTablePink"|F | |||
|class="genderTablePink"|F | |||
|class="genderTablePink"|F | |||
|} | |||
:<h4 style="border-bottom:1px solid black;">MiddleNameLogic</h4> | |||
::This option controls how middle names are handled. | |||
::Some names can be ambiguous with regards to the middle word of a full name. It may be a middle name or it may be the first part of a hyphenated last name, but the hyphen has been omitted for some reason. | |||
::Normally, the service assumes that, in the absence of a hyphen, recognizable last names in the middle of a full name are treated as part of a hyphenated last name. “Mary O’Malley Kelly” is parsed into first name “Mary” and last name “O’Malley-Kelly.” | |||
::On the other hand, “Colleen Marie Sullivan” is parsed into first name “Colleen,” middle name “Marie,” and last name “Sullivan.” | |||
::Either the ‘Code’ or ‘Name’ listed below can be used to set the action. | |||
::For example, <code>Options = MIDDLENAMELOGIC:0</code> and <code>Options = MIDDLENAMELOGIC:ParseLogic</code> are equivalent settings. | |||
::{|class="alternate01" cellspacing="0" | |||
!Option Name!!Parameter Code!!Parameter Name!!Definition | |||
|- | |||
|rowspan="3"|'''MiddleNameLogic'''||<code>0</code>||<code>ParseLogic</code>||'''''Default.''''' The service behaves as described above. | |||
|- | |||
|<code>1</code>||<code>HyphenatedLast</code>||The middle word is assumed to be part of the last name. “Matthew Edward Jones” is treated as “Matthew Edward-Jones.” | |||
|- | |||
|<code>2</code>||<code>MiddleName</code>||The middle word is assumed to be a middle name. for the name “Mary O’Malley Kelly,” O’Malley is assumed to be the middle name. | |||
|} | |||
::When a hyphen is present, the hyphenated word is always treated as the last name, regardless of content. | |||
==Request Record Elements== | |||
JSON will only contain the Records element. | |||
{| class="alternate01" | |||
!Protocol !! Definition | |||
|- | |||
|JSON||Each email will be contained within [{}] under the Records element. | |||
|- | |||
|REST||The REST interface only allows a single record per request. | |||
|- | |||
|SOAP||This element is an array of object variables of the type RequestRecords. | |||
|- | |||
|XML||There will be one RequestRecord element per address being submitted to the Cloud Service. | |||
|} | |||
<h3 style="background-color:rgb(240,240,240);">RecordID</h3> | |||
:''Optional.'' | |||
:This is a string value containing a unique identifier for the current record. Use this to match the record submitted with the record returned. It will return the input. | |||
:{| class="alternate01" | |||
!Protocol !! Syntax | |||
|- | |||
|JSON||<code>"RecordID":"'''''string'''''"</code> | |||
|- | |||
|SOAP/XML||<code><RecordID>'''''string'''''</RecordID></code> | |||
|} | |||
<h3 style="background-color:rgb(240,240,240);">Company</h3> | |||
:''Optional.'' '''(Required if FullName is not inputted).''' | |||
:The company name to be standardized. | |||
:{| class="alternate01" | |||
!Protocol !! Syntax | |||
|- | |||
|JSON||<code>"Company":"'''''string'''''"</code> | |||
|- | |||
|REST||<code>&comp = '''''string'''''</code> | |||
|- | |||
|SOAP/XML||<code><Company>'''''string'''''</Company></code> | |||
|} | |||
<h3 style="background-color:rgb(240,240,240);">FullName</h3> | |||
:''Optional.'' '''(Required if Company is not inputted).''' | |||
:The full name to be genderized, standardized, and parsed. | |||
:{| class="alternate01" | |||
!Protocol !! Syntax | |||
|- | |||
|JSON||<code>"FullName":"'''''string'''''"</code> | |||
|- | |||
|REST||<code>&full = '''''string'''''</code> | |||
|- | |||
|SOAP/XML||<code><FullName>'''''string'''''</FullName></code> | |||
|} | |||
[[Category:Global Name]] | [[Category:Global Name]] | ||
[[Category:Reference]] | [[Category:Reference]] |
Revision as of 23:21, 12 October 2016
Global Name Navigation | |||||||
---|---|---|---|---|---|---|---|
| |||||||
| |||||||
| |||||||
| |||||||
Sample Code |
A request consists of a protocol to make a call detailing desired elements. The minimum required elements in a request are your Customer ID and at least a full name or company name.
Global Name supports JSON, JSONP, REST, SOAP, and XML protocols.
Field Names
This is a list of the request field names and their protocol naming conventions.
Field Name | Level | REST | JSON/XML |
---|---|---|---|
Transmission Reference | Request | t | TransmissionReference |
Customer ID | id | CustomerID | |
Options | opt | Options | |
Record ID | Record | RecordID | |
Company | comp | Company | |
Full Name | full | FullName |
Request Elements
The following elements set the basic options for each request. These apply to the entire request, not the individual records.
Transmission Reference
- Optional.
- This is a string value that serves as a unique identifier for this set of records. It is returned as sent.
Protocol Syntax JSON "TransmissionReference":"string"
REST ?t = string
SOAP/XML <TransmissionReference>string</TransmissionReference>
Customer ID
- Required.
- This is a string value containing the identification number issued to the customer by Melissa Data for Global Name.
- If this element is absent, the Cloud Service will return an error. To receive a customer ID, please contact your Melissa Data sales representative at 1-800-MELISSA.
Protocol Syntax JSON "CustomerID":"string"
REST &id = string
SOAP/XML <CustomerID>string</CustomerID>
Options
- Optional.
- This is a string value containing the options set by the user.
Protocol Syntax JSON "Options":"string"
REST ?opt = string
SOAP/XML <Options>string</Options>
- List options in the following format, with multiple options delimited with a ",".
Syntax OptionName:Parameter,OptionName:Parameter
CorrectFirstName
- This option enables or disables spelling correction of first names.
- Global Name uses a database of commonly misspelled first names to correct the values of the First Name properties.
Option Name Parameter Description CorrectFirstName OFF
Default. Preserve first name spellings; no correction allowed. ON
Allows first name misspelling corrections.
NameHint
- This option sets the most likely format of the FullName input string.
- This helps the service in cases where the order and formatting of the FullName input string are unclear.
- Full or normal name order is: <Prefix> <First> <Middle> <Last> <Suffix>.
- Inverse name order is: <Last> <Suffix>, <Prefix> <First> <Middle>.
- Either the Code or Name listed below can be used to set the action.
- For example,
Options = NAMEHINT:4
andOptions = NAMEHINT:Varying
are equivalent settings.
- For example,
Option Name Parameter Code Parameter Name Definition NameHint 1
DefinitelyFull
Name will always be treated as normal name order regardless of formatting or punctuation. 2
VeryLikelyFull
Name will be treated as normal name order unless inverse order is clearly indicated by formatting or punctuation. 3
ProbablyFull
If necessary, statistical logic will be employed to determine name order, with a bias towards normal name order. 4
Varying
Default. If necessary, statistical logic will be employed to determine name order, with no bias toward either name order. 5
ProbablyInverse
If necessary, statistical logic will be employed to determine name order, with a bias toward inverse name order. 6
VeryLikelyInverse
Name will be treated as inverse name order unless normal order is clearly indicated by formatting or punctuation. 7
DefinitelyInverse
Name will always be treated as inverse name order, regardless of formatting or punctuation. 8
MixedFirstName
Name element is expected to only contain first names. 9
MixedLastName
Name element is expected to only contain last names.
GenderPopulation
- This option sets the gender balance of the source data, predominantly male, predominantly female, or neutral.
- If you know that the majority of inputted names will be predominantly one gender, meaning that gender-neutral names will likely be of a particular gender, use this property to set the gender bias while genderizing names.
- Either the ‘Code’ or ‘Name’ listed below can be used to set the action.
- For example,
Options = GENDERPOPULATION:3
andOptions = GENDERPOPULATION:Female
are equivalent settings.
- For example,
Option Name Parameter Code Parameter Name Definition GenderPopulation 1
Male
Bias toward male. 2
Mixed
Default. No bias toward either gender. 3
Female
Bias toward female.
GenderAggression
- This option sets how aggressively the service will attempt to genderize neutral first names.
- By default, Global Name will assign a value of “N” when attempting to genderize a first name that can easily be male or female, such as “Taylor,” “Chris,” or “Pat.”
- Using this property in conjunction with the GenderPopulation option, you can instruct the service on how much preference to give one gender over the other when assigning a gender to a normally neutral name.
- Either the ‘Code’ or ‘Name’ listed below can be used to set the action.
- For example,
Options = GENDERAGGRESSION:2
andOptions = GENDERAGGRESSION:Neutral
are equivalent settings.
- For example,
Option Name Parameter Code Parameter Name Definition GenderAggression 1
Aggressive
Aggressive name genderizing. 2
Neutral
Default. Neutral name genderizing. 3
Conservative
Conservative name genderizing.
- The table below shows how the settings for Gender Aggression and Gender Population affect genderizing:
Male Female Aggression Always [7] Often [6] Normally [5] Neutral [4] Normally [3] Often [2] Always [1] Conservative Even M N N N N N F Male M M N N N N F Females M N N N N F F Neutral Even M M N N N F F Male M M M N N F F Females M M N N F F F Aggressive Even M M M N F F F Male M M M M N F F Females M M N F F F F
MiddleNameLogic
- This option controls how middle names are handled.
- Some names can be ambiguous with regards to the middle word of a full name. It may be a middle name or it may be the first part of a hyphenated last name, but the hyphen has been omitted for some reason.
- Normally, the service assumes that, in the absence of a hyphen, recognizable last names in the middle of a full name are treated as part of a hyphenated last name. “Mary O’Malley Kelly” is parsed into first name “Mary” and last name “O’Malley-Kelly.”
- On the other hand, “Colleen Marie Sullivan” is parsed into first name “Colleen,” middle name “Marie,” and last name “Sullivan.”
- Either the ‘Code’ or ‘Name’ listed below can be used to set the action.
- For example,
Options = MIDDLENAMELOGIC:0
andOptions = MIDDLENAMELOGIC:ParseLogic
are equivalent settings.
- For example,
Option Name Parameter Code Parameter Name Definition MiddleNameLogic 0
ParseLogic
Default. The service behaves as described above. 1
HyphenatedLast
The middle word is assumed to be part of the last name. “Matthew Edward Jones” is treated as “Matthew Edward-Jones.” 2
MiddleName
The middle word is assumed to be a middle name. for the name “Mary O’Malley Kelly,” O’Malley is assumed to be the middle name.
- When a hyphen is present, the hyphenated word is always treated as the last name, regardless of content.
Request Record Elements
JSON will only contain the Records element.
Protocol | Definition |
---|---|
JSON | Each email will be contained within [{}] under the Records element. |
REST | The REST interface only allows a single record per request. |
SOAP | This element is an array of object variables of the type RequestRecords. |
XML | There will be one RequestRecord element per address being submitted to the Cloud Service. |
RecordID
- Optional.
- This is a string value containing a unique identifier for the current record. Use this to match the record submitted with the record returned. It will return the input.
Protocol Syntax JSON "RecordID":"string"
SOAP/XML <RecordID>string</RecordID>
Company
- Optional. (Required if FullName is not inputted).
- The company name to be standardized.
Protocol Syntax JSON "Company":"string"
REST &comp = string
SOAP/XML <Company>string</Company>
FullName
- Optional. (Required if Company is not inputted).
- The full name to be genderized, standardized, and parsed.
Protocol Syntax JSON "FullName":"string"
REST &full = string
SOAP/XML <FullName>string</FullName>