{"id":5114,"date":"2022-11-13T20:16:53","date_gmt":"2022-11-13T20:16:53","guid":{"rendered":"https:\/\/serviceobjects.wpaladdin.com\/?page_id=5114"},"modified":"2024-03-29T08:59:05","modified_gmt":"2024-03-29T15:59:05","slug":"pa2-rest","status":"publish","type":"page","link":"https:\/\/test.serviceobjects.com\/docs\/dots-phone-append-2\/pa2-code-snippets-and-sample-code\/pa2-rest\/","title":{"rendered":"PA2 &#8211; REST"},"content":{"rendered":"\n<div class=\"wp-block-create-block-tabs\"><ul class=\"tab-labels\" role=\"tablist\" aria-label=\"tabbed content\"><li class=\"tab-label active\" role=\"tab\" aria-selected=\"true\" aria-controls=\"C#\" tabindex=\"0\">C#<\/li><li class=\"tab-label\" role=\"tab\" aria-selected=\"false\" aria-controls=\"Java\" tabindex=\"0\">Java<\/li><li class=\"tab-label\" role=\"tab\" aria-selected=\"false\" aria-controls=\"PHP\" tabindex=\"0\">PHP<\/li><li class=\"tab-label\" role=\"tab\" aria-selected=\"false\" aria-controls=\"RoR\" tabindex=\"0\">RoR<\/li><li class=\"tab-label\" role=\"tab\" aria-selected=\"false\" aria-controls=\"Python\" tabindex=\"0\">Python<\/li><li class=\"tab-label\" role=\"tab\" aria-selected=\"false\" aria-controls=\"ColdFusion\" tabindex=\"0\">ColdFusion<\/li><li class=\"tab-label\" role=\"tab\" aria-selected=\"false\" aria-controls=\"VB\" tabindex=\"0\">VB<\/li><li class=\"tab-label\" role=\"tab\" aria-selected=\"false\" aria-controls=\"TSQL\" tabindex=\"0\">TSQL<\/li><\/ul><div class=\"tab-content\">\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\" tabindex=\"0\">\n<p><strong>Phone Append 2 C# Rest Code Snippet<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">string mainURL = WEB_SERVICE_PRIMARY_URL + state + \"\/\" + city + \"\/\" + postalcode + \"\/\" + address + \"\/\" + name + \"\/\" + isbusiness + \"\/\" + licensekey + \"?format=json\";\nPA2Response result = null;\n  \nHttpWebRequest request = WebRequest.Create(mainURL ) as HttpWebRequest;\nrequest.Timeout = 5000;\/\/timeout for get operation\nusing (HttpWebResponse response = request.GetResponse() as HttpWebResponse)\n{\n    if (response.StatusCode != HttpStatusCode.OK)\n        throw new Exception(String.Format(\n        \"Server error (HTTP {0}: {1}).\",\n        response.StatusCode,\n        response.StatusDescription));\n    \/\/parse response\n    DataContractJsonSerializer jsonSerializer = new DataContractJsonSerializer(typeof(PA2Response));\n    object objResponse = jsonSerializer.ReadObject(response.GetResponseStream());\n    result = objResponse as PA2Response;\n\/\/processing result\nif (result.error == null)\n{\n    \/\/process result\n}\nelse\n{\n    \/\/process error\n}<\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\" tabindex=\"0\">\n<p><strong>Phone Append 2 Java Rest Code Snippet<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"java\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">PA2Response.PhoneInfo result = null;\nPA2Response.Error error = null;\n  \nPA2RestClient PA2Client = new PA2RestClient();\nPA2Response result = PA2Client.CompositePhoneAppend(name, addr, city, state, postalCode, isBusiness, licenseKey);\n  \nif (result != null) {\n    error = result.Error;\n    info = result.Phoneinfo;\n}\n  \n\/\/Process Results\nif (error == null) {\n    \/\/DOTS Address Phone Append Results\n         \n}\n  \n\/\/Process Errors\nelse{\n}\n    \/\/DOTS Phone Append Error\n     \n}<\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\" tabindex=\"0\">\n<p><strong>Phone Append 2 PHP Rest Code Snippets<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"php\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$URL = \"https:\/\/trial.serviceobjects.com\/PA2\/api.svc\/CompositePhoneInfo\/\".rawurlencode($State).\"\/\".rawurlencode($City).\"\/\".rawurlencode($PostalCode).\"\/\".rawurlencode($Address).\"\/\".rawurlencode($Name).\"\/\".rawurlencode($isBusiness).\"\/\".rawurlencode($LicenseKey).\"?format=json\";\n\/\/ Get cURL resource\n$curl = curl_init();\ncurl_setopt_array($curl, array(CURLOPT_RETURNTRANSFER => 1, CURLOPT_URL => $URL, CURLOPT_USERAGENT => 'Service Objects Phone Append 2'));\ncurl_setopt($curl, CURLOPT_TIMEOUT, 5); \/\/timeout in seconds\n\/\/ Send the request &amp; save response to $resp\n$resp = curl_exec($curl);\n$jsonIterator = new RecursiveIteratorIterator(new RecursiveArrayIterator(json_decode($resp, TRUE)), RecursiveIteratorIterator::SELF_FIRST);\nforeach ($jsonIterator as $key => $val)\n{\n    if(is_array($val))\n    {\n        echo \"Phone Append 2 Results\";\n    }\n    else\n    {\n        echo \"$key\";\n        echo \"$val\";\n    }\n}<\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\" tabindex=\"0\">\n<p><strong>Phone Append 2 RoR Rest Code Snippets<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"ruby\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"> #This sets the default timeout for HTTParty get operation. This must be set in order to use the gem\n    default_timeout = 10\n \n    name = @request.name\n    address = @request.address\n    city = @request.city\n    state = @request.state\n    postalcode = @request.postalcode\n    isbusiness = @request.isbusiness\n    licensekey = @request.licensekey\n \n   #Set Primary and Backup URLs as needed\n    primaryURL = URI.encode(\"https:\/\/trial.serviceobjects.com\/PA2\/api.svc\/CompositePhoneAppend?Name=\"+name+\"&amp;Address=\"+address+\"&amp;City=\"+city+\"&amp;State=\"+state+\"&amp;PostalCode=\"+postalcode+\"&amp;isBusiness=\"+isbusiness+\"&amp;LicenseKey=\"+licensekey)\n    backupURL =  URI.encode(\"https:\/\/trial.serviceobjects.com\/PA2\/api.svc\/CompositePhoneAppend?State=\"+ state+\"&amp;City=\"+city+\"&amp;PostalCode=\"+postalcode+\"&amp;Address=\"+address+\"&amp;Name=\"+name+\"&amp;isBusiness=\"+isbusiness+\"&amp;LicenseKey=\"+licensekey)\n    \n   #These are set to access the hash that is returned\n    @phoneresponse = \"PhoneInfoResponse\"\n    @phoneinfo = \"PhoneInfo\"\n    @error = \"Error\"\n    #Begins the call the RESTful web service\n    begin\n      response = HTTParty.get(primaryURL, timeout: default_timeout)\n      #processes the response to display to the screen\n       \n      #Passes the response from HTTParty and the hash key values to this method\n      processresults(response)\n     rescue StandardError => e\n          begin\n          #uses the backupURl in the event that the service encountered an error\n          response = HTTParty.get(backupURL, timeout: default_timeout)\n         \n        #processes the response returned from using the backupURL\n         processresults(response)\n        #If the backup url railed this will raise an error and display the\n        #error message returned from the HTTParty gem.\n          rescue StandardError => error\n          end\n    end\nend\n  private\n  def processresults(response) \n    #Processes Error Response from rest Client   \n    #Processes Valid response from rest client \n   end<\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\" tabindex=\"0\">\n<p><strong>Phone Append 2 Python Code Snippet<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">   mFullName =  FullName.get()\nif mFullName is None or  mFullName == \"\":\n    mFullName = \" \"\nmFirstName =  FirstName.get()\nif mFirstName is None or  mFirstName == \"\":\n    mFirstName = \" \"\nmLastName =  LastName.get()\nif mLastName is None or  mLastName == \"\":\n    mLastName = \" \"\nmAddress =  Address.get()\nif mAddress is None or  mAddress == \"\":\n    mAddress = \" \"\nmCity = City.get()\nif mCity is None or mCity == \"\":\n    mCity = \" \"\nmState = State.get()\nif mState is None or mState == \"\":\n    mState = \" \"\nmPostalCode = PostalCode.get()\nif mPostalCode is None or mPostalCode == \"\":\n    mPostalCode = \" \"\nmLicenseKey = LicenseKey.get()\nif mLicenseKey is None or mLicenseKey == \"\":\n    mLicenseKey = \" \"\n \nprimaryURL = 'https:\/\/trial.serviceobjects.com\/P2\/api.svc\/PhoneAppend?'\nbackupURL = 'https:\/\/trial.serviceobjects.com\/PA2\/api.svc\/PhoneAppend?'\n \n#The Requests package allows the user to format the path parameters like so instead of having to manually insert them into the URL\ninputs = {'FullName': mFullName, 'FirstName': mFirstName, 'LastName':mLastName, 'Address': mAddress, 'City': mCity, 'State': mState, 'PostalCode': mPostalCode, 'LicenseKey': mLicenseKey}\ntry:\n    result = requests.get(primaryURL, params=inputs)\n    #Parses the XML response from the service into a python dictionary type\n    outputs = xmltodict.parse(result.content)\n    #Handel response and check for errors\n#Attempts to use the backupURL if the call to the primary URL failed\nexcept:\n    try:\n        result = requests.get(backupURL, params=inputs)\n        #Parses the XML response from the service into a python dictionary type\n        outputs = xmltodict.parse(result.content)\n        #Handel response and check for errors\n    #Displays an error message if the backup url failed.\n    except:\n        Label(swin.window, text='Error').pack()\n        print (result)<\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\" tabindex=\"0\">\n<p><strong>Phone Append 2 ColdFusion Rest Snippet<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"xml\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;!--Makes Request to web service --->\n&lt;cfscript>\n    try\n    {\n        if (isDefined(\"form.Action\") AND Action neq \"\")\n        {\n            wsresponse = CreateObject(\"webservice\", \"https:\/\/trial.serviceobjects.com\/pa2\/api.svc?WSDL\");                             \n            outputs = wsresponse.phoneAppend(\"#FullName#\", \"#FirstName#\", \"#LastName#\", \"#Address#\", \"#City#\", \"#State#\", \"#PostalCode#\" ,\"#LicenseKey#\");\n            writedump(outputs.getPhoneInfo());\n        }\n    }\n    catch(any Exception)\n    {\n        try\n            {\n                if (isDefined(\"form.Action\") AND Action neq \"\")\n                {\n                    wsresponse = CreateObject(\"webservice\", \"https:\/\/trial.serviceobjects.com\/pa2\/api.svc?WSDL\");                             \n                    outputs = wsresponse.phoneAppend(\"#FullName#\", \"#FirstName#\", \"#LastName#\", \"#Address#\", \"#City#\", \"#State#\", \"#PostalCode#\" ,\"#LicenseKey#\");\n                }\n            }\n            catch(any Exception)   \n                {\n                 writeoutput(\"An Error Has Occured. Please Reload and try again #Exception.message#\");              \n                }\n     }\n&lt;\/cfscript><\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\" tabindex=\"0\">\n<p><strong>Phone Append 2 VB Rest Code Snippet<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"visualbasic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">'encodes the URLs for the get Call. Set the primary and back urls as necessary\nDim primaryurl As String = \"https:\/\/trial.serviceobjects.com\/PA2\/api.svc\/PhoneAppend?State=\" &amp; state + \"&amp;City=\" + city + \"&amp;PostalCode=\" + postalcode + \"&amp;Address=\" + address + \"&amp;FullName=\" + fullname + \"&amp;LastName=\" + lastname + \"&amp;FirstName=\" + firstname + \"&amp;LicenseKey=\" &amp; licensekey\nDim backupurl As String = \"https:\/\/trial.serviceobjects.com\/PA2\/api.svc\/PhoneAppend?State=\" &amp; state + \"&amp;City=\" + city + \"&amp;PostalCode=\" + postalcode + \"&amp;Address=\" + address + \"&amp;FullName=\" + fullname + \"&amp;LastName=\" + lastname + \"&amp;FirstName=\" + firstname + \"&amp;LicenseKey=\" &amp; licensekey\nDim wsresponse As PA2Response.PhoneInfoResponse = httpGet(primaryurl)\n'checks if a response was returned from the service, uses the backup url if response is null or a fatal error occured.\nIf wsresponse Is Nothing OrElse (wsresponse.[Error] IsNot Nothing AndAlso wsresponse.[Error].TypeCode = \"3\") Then\n    wsresponse = httpGet(backupurl)\nEnd If\nIf wsresponse.[Error].Type IsNot Nothing Then\n    ProcessErrorResponse(wsresponse.[Error])\nElse\n    ProcessSuccessfulResponse(wsresponse)\n \nEnd If<\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\" tabindex=\"0\">\n<p><strong>Phone Append 2 TSQL Rest Code Snippet<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">BEGIN\n    SET @sUrl = 'https:\/\/sws.serviceobjects.com\/pa2\/api.svc\/PhoneAppend?FullName=' + @fullname + '&amp;FirstName=' + @firstname + '&amp;LastName=' + @lastname + '&amp;Address=' + @address + '&amp;City=' + @city + '&amp;State=' + @state + '&amp;PostalCode=' + @postalcode + '&amp;LicenseKey=' + @key\n    EXEC sp_OACreate 'MSXML2.ServerXMLHttp', @obj OUT\n    EXEC sp_OAMethod @obj, 'Open', NULL, 'Get', @sUrl, false\n    EXEC sp_OAMethod @obj, 'send'\n    EXEC sp_OAGetProperty @obj, 'responseText', @response OUT\n             \n    --Checks the Response for a fatal error or if null.\n    IF @response IS NULL\n    BEGIN\n        SET @sBackupUrl = 'https:\/\/swsbackup.serviceobjects.com\/pa2\/api.svc\/PhoneAppend?FullName=' + @fullname + '&amp;FirstName=' + @firstname + '&amp;LastName=' + @lastname + '&amp;Address=' + @address + '&amp;City=' + @city + '&amp;State=' + @state + '&amp;PostalCode=' + @postalcode + '&amp;LicenseKey=' + @key\n        EXEC sp_OACreate 'MSXML2.ServerXMLHttp', @obj OUT\n        EXEC sp_OAMethod @obj, 'Open', NULL, 'Get', @sBackupUrl, false\n        EXEC sp_OAMethod @obj, 'send'\n        EXEC sp_OAGetProperty @obj, 'responseText', @response OUT\n    END\nEND<\/pre>\n<\/div>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":5100,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-5114","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>PA2 - REST<\/title>\n<meta name=\"description\" content=\"C#JavaPHPRoRPythonColdFusionVBTSQL Phone Append 2 C# Rest Code Snippet string mainURL = WEB_SERVICE_PRIMARY_URL + state + &quot;\/&quot; + city + &quot;\/&quot; + postalcode +\" \/>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PA2 - REST\" \/>\n<meta property=\"og:description\" content=\"C#JavaPHPRoRPythonColdFusionVBTSQL Phone Append 2 C# Rest Code Snippet string mainURL = WEB_SERVICE_PRIMARY_URL + state + &quot;\/&quot; + city + &quot;\/&quot; + postalcode +\" \/>\n<meta property=\"og:url\" content=\"https:\/\/test.serviceobjects.com\/docs\/dots-phone-append-2\/pa2-code-snippets-and-sample-code\/pa2-rest\/\" \/>\n<meta property=\"og:site_name\" content=\"Service Objects | Contact, Phone, Email Verification | Data Quality Services\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-29T15:59:05+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/dots-phone-append-2\/pa2-code-snippets-and-sample-code\/pa2-rest\/\",\"url\":\"https:\/\/test.serviceobjects.com\/docs\/dots-phone-append-2\/pa2-code-snippets-and-sample-code\/pa2-rest\/\",\"name\":\"PA2 - REST\",\"isPartOf\":{\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/#website\"},\"datePublished\":\"2022-11-13T20:16:53+00:00\",\"dateModified\":\"2024-03-29T15:59:05+00:00\",\"description\":\"C#JavaPHPRoRPythonColdFusionVBTSQL Phone Append 2 C# Rest Code Snippet string mainURL = WEB_SERVICE_PRIMARY_URL + state + \\\"\/\\\" + city + \\\"\/\\\" + postalcode +\",\"breadcrumb\":{\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/dots-phone-append-2\/pa2-code-snippets-and-sample-code\/pa2-rest\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/test.serviceobjects.com\/docs\/dots-phone-append-2\/pa2-code-snippets-and-sample-code\/pa2-rest\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/dots-phone-append-2\/pa2-code-snippets-and-sample-code\/pa2-rest\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/test.serviceobjects.com\/docs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"DOTS Phone Append 2\",\"item\":\"https:\/\/test.serviceobjects.com\/docs\/dots-phone-append-2\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"PA2 &#8211; Code Snippets and Sample Code\",\"item\":\"https:\/\/test.serviceobjects.com\/docs\/dots-phone-append-2\/pa2-code-snippets-and-sample-code\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"PA2 &#8211; REST\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/#website\",\"url\":\"https:\/\/test.serviceobjects.com\/docs\/\",\"name\":\"Service Objects | Contact, Phone, Email Verification | Data Quality Services\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/test.serviceobjects.com\/docs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/#organization\",\"name\":\"Service Objects | Contact, Phone, Email Verification | Data Quality Services\",\"url\":\"https:\/\/test.serviceobjects.com\/docs\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/test.serviceobjects.com\/docs\/wp-content\/uploads\/2022\/08\/SO-logo-2560px-transparent.png\",\"contentUrl\":\"https:\/\/test.serviceobjects.com\/docs\/wp-content\/uploads\/2022\/08\/SO-logo-2560px-transparent.png\",\"width\":2560,\"height\":1440,\"caption\":\"Service Objects | Contact, Phone, Email Verification | Data Quality Services\"},\"image\":{\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PA2 - REST","description":"C#JavaPHPRoRPythonColdFusionVBTSQL Phone Append 2 C# Rest Code Snippet string mainURL = WEB_SERVICE_PRIMARY_URL + state + \"\/\" + city + \"\/\" + postalcode +","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"PA2 - REST","og_description":"C#JavaPHPRoRPythonColdFusionVBTSQL Phone Append 2 C# Rest Code Snippet string mainURL = WEB_SERVICE_PRIMARY_URL + state + \"\/\" + city + \"\/\" + postalcode +","og_url":"https:\/\/test.serviceobjects.com\/docs\/dots-phone-append-2\/pa2-code-snippets-and-sample-code\/pa2-rest\/","og_site_name":"Service Objects | Contact, Phone, Email Verification | Data Quality Services","article_modified_time":"2024-03-29T15:59:05+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/test.serviceobjects.com\/docs\/dots-phone-append-2\/pa2-code-snippets-and-sample-code\/pa2-rest\/","url":"https:\/\/test.serviceobjects.com\/docs\/dots-phone-append-2\/pa2-code-snippets-and-sample-code\/pa2-rest\/","name":"PA2 - REST","isPartOf":{"@id":"https:\/\/test.serviceobjects.com\/docs\/#website"},"datePublished":"2022-11-13T20:16:53+00:00","dateModified":"2024-03-29T15:59:05+00:00","description":"C#JavaPHPRoRPythonColdFusionVBTSQL Phone Append 2 C# Rest Code Snippet string mainURL = WEB_SERVICE_PRIMARY_URL + state + \"\/\" + city + \"\/\" + postalcode +","breadcrumb":{"@id":"https:\/\/test.serviceobjects.com\/docs\/dots-phone-append-2\/pa2-code-snippets-and-sample-code\/pa2-rest\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/test.serviceobjects.com\/docs\/dots-phone-append-2\/pa2-code-snippets-and-sample-code\/pa2-rest\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/test.serviceobjects.com\/docs\/dots-phone-append-2\/pa2-code-snippets-and-sample-code\/pa2-rest\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/test.serviceobjects.com\/docs\/"},{"@type":"ListItem","position":2,"name":"DOTS Phone Append 2","item":"https:\/\/test.serviceobjects.com\/docs\/dots-phone-append-2\/"},{"@type":"ListItem","position":3,"name":"PA2 &#8211; Code Snippets and Sample Code","item":"https:\/\/test.serviceobjects.com\/docs\/dots-phone-append-2\/pa2-code-snippets-and-sample-code\/"},{"@type":"ListItem","position":4,"name":"PA2 &#8211; REST"}]},{"@type":"WebSite","@id":"https:\/\/test.serviceobjects.com\/docs\/#website","url":"https:\/\/test.serviceobjects.com\/docs\/","name":"Service Objects | Contact, Phone, Email Verification | Data Quality Services","description":"","publisher":{"@id":"https:\/\/test.serviceobjects.com\/docs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/test.serviceobjects.com\/docs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/test.serviceobjects.com\/docs\/#organization","name":"Service Objects | Contact, Phone, Email Verification | Data Quality Services","url":"https:\/\/test.serviceobjects.com\/docs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/test.serviceobjects.com\/docs\/#\/schema\/logo\/image\/","url":"https:\/\/test.serviceobjects.com\/docs\/wp-content\/uploads\/2022\/08\/SO-logo-2560px-transparent.png","contentUrl":"https:\/\/test.serviceobjects.com\/docs\/wp-content\/uploads\/2022\/08\/SO-logo-2560px-transparent.png","width":2560,"height":1440,"caption":"Service Objects | Contact, Phone, Email Verification | Data Quality Services"},"image":{"@id":"https:\/\/test.serviceobjects.com\/docs\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/5114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/comments?post=5114"}],"version-history":[{"count":7,"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/5114\/revisions"}],"predecessor-version":[{"id":10027,"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/5114\/revisions\/10027"}],"up":[{"embeddable":true,"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/5100"}],"wp:attachment":[{"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/media?parent=5114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}