{"id":2476,"date":"2022-11-09T07:10:33","date_gmt":"2022-11-09T07:10:33","guid":{"rendered":"https:\/\/serviceobjects.wpaladdin.com\/?post_type=serviceobjects&#038;p=2476"},"modified":"2022-12-14T22:08:22","modified_gmt":"2022-12-14T22:08:22","slug":"agus-rest","status":"publish","type":"page","link":"https:\/\/test.serviceobjects.com\/docs\/dots-address-geocode-us\/agus-code-snippets-and-sample-code\/agus-rest\/","title":{"rendered":"AGUS &#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\">C#<\/li><li class=\"tab-label\" role=\"tab\">Java<\/li><li class=\"tab-label\" role=\"tab\">PHP<\/li><li class=\"tab-label\" role=\"tab\">RoR<\/li><li class=\"tab-label\" role=\"tab\">Python<\/li><li class=\"tab-label\" role=\"tab\">ColdFusion<\/li><li class=\"tab-label\" role=\"tab\">VB<\/li><li class=\"tab-label\" role=\"tab\">TSQL<\/li><li class=\"tab-label\" role=\"tab\">NodeJS<\/li><\/ul><div class=\"tab-content\">\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\">\n<p><strong>Address Geocode &#8211; US C# 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 primaryURL = \"https:\/\/trial.serviceobjects.com\/GCR\/api.svc\/xml\/GetBestMatch_V4?Address=\" + address + \"&amp;City=\" + city + \"&amp;State=\" + state + \"&amp;PostalCode=\" + postalcode + \"&amp;LicenseKey=\" + licensekey;\nstring backupURL = \"https:\/\/trial.serviceobjects.com\/GCR\/api.svc\/xml\/GetBestMatch_V4?Address=\" + address + \"&amp;City=\" + city + \"&amp;State=\" + state + \"&amp;PostalCode=\" + postalcode + \"&amp;LicenseKey=\" + licensekey;\nLocation_V4 response = httpGet(primaryURL);\nif (response == null || (response.Error != null &amp;&amp; response.Error.Number == \"4\"))\n{\n    response = httpGet(backupURL);\n}\nif (response.Error == null)\n{\n    ProcessValidResponse(response);\n}\nelse\n{\n    ProcessErrorResponse(response.Error);\n}<\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\">\n<p><strong>Address Geocode &#8211; <strong>US Java Code Snippet<\/strong><\/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=\"\">JSONObject results = RestClient(mainURL);  \ntry {\n    if (ErrorMessages != null || (results.getJSONObject(\"Location_V4\").has(\"Error\") &amp;&amp; results.getJSONObject(\"Location_V4\").getJSONObject(\"Error\").get(\"Number\") == \"3\")) {\n        \/\/ BACKUP\n        results = RestClient(backupURL);\n    }\n} catch (JSONException e) {\n    \/\/ TODO Auto-generated catch block\n    e.printStackTrace();\n}\n  \nreturn results;<\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\">\n<p><strong>Address Geocode\u00a0&#8211; US PHP Code Snippet<\/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\/GCR\/api.svc\/xml\/GetBestMatch_V4?Address=\".urlencode($Address).\"&amp;City=\".urlencode($City).\"&amp;State=\".urldecode($State).\"&amp;PostalCode=\".urldecode($PostalCode).\"&amp;LicenseKey=\".urlencode($LicenseKey);\n\/\/use backup url once given purchased license key\n$backupURL = \"https:\/\/trial.serviceobjects.com\/GCR\/api.svc\/xml\/GetBestMatch_V4?Address=\".urlencode($Address).\"&amp;City=\".urlencode($City).\"&amp;State=\".urldecode($State).\"&amp;PostalCode=\".urldecode($PostalCode).\"&amp;LicenseKey=\".urlencode($LicenseKey);\ntry{\n    \/\/ Get cURL resource\n    $curl = curl_init();\n    curl_setopt_array($curl, array(CURLOPT_RETURNTRANSFER =&gt; 1, CURLOPT_URL =&gt; $URL, CURLOPT_USERAGENT =&gt; 'Service Objects Geocode US'));\n    curl_setopt($curl, CURLOPT_TIMEOUT, 50); \/\/timeout in seconds\n    \/\/ Send the request &amp; save response to $resp\n    $resp = curl_exec($curl);\n                curl_close($curl);\n    $outputs = new SimpleXMLElement($resp);\n    \/\/ Close request to clear up some resources\n    if($outputs == null || ($outputs-&gt;Error != null || $outputs-&gt;Error-&gt;Number == \"4\"))\n    {\n                        $curl = curl_init();\n        echo \"IN back up block\";\n        curl_setopt_array($curl, array(CURLOPT_RETURNTRANSFER =&gt; 1, CURLOPT_URL =&gt; $backupURL, CURLOPT_USERAGENT =&gt; 'Service Objects Geocode US'));\n        curl_setopt($curl, CURLOPT_TIMEOUT, 50); \/\/timeout in seconds\n        \/\/ Send the request &amp; save response to $resp\n        $resp = curl_exec($curl);\n        if($resp == false)\n        {\n            curl_close($curl);\n            return;\n        }\n                        curl_close($curl);\n                        $outputs = new SimpleXMLElement($resp);\n                          \n    }<\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\">\n<p><strong>Address Geocode &#8211; US RoR Code Snippet<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"r\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">#Set Primary and Backup URLs as needed. This method encodes and standardizes the URI to pass to the REST service.\nprimaryURL = URI.encode(\"https:\/\/trial.serviceobjects.com\/GCR\/api.svc\/xml\/GetBestMatch_V4?Address=\" + address + \"&amp;City=\" + city + \"&amp;State=\" + state + \"&amp;PostalCode=\" + postalcode + \"&amp;LicenseKey=\" + licensekey)\nbackupURL = URI.encode(\"https:\/\/trial.serviceobjects.com\/GCR\/api.svc\/xml\/GetBestMatch_V4?Address=\" + address + \"&amp;City=\" + city + \"&amp;State=\" + state + \"&amp;PostalCode=\" + postalcode + \"&amp;LicenseKey=\" + licensekey)\n#These are set to access the hash that is returned\n@gcrresult =\"Location_V4\"\n@gcrerror = \"Error\"\n  #Begins the call the RESTful web service\nbegin\n  response = HTTParty.get(primaryURL, timeout: default_timeout)\n  #processes the response to display to the screen\n    \n  #Passes the response returned from HTTParty and processes them depending on the results\n  processresults(response)\n    \n rescue StandardError =&gt; 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 =&gt; error\n            @status = error.message\n            @displaydata = {\"Error\" =&gt; \"A Big Error Occured\"}\n        end\nend<\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\">\n<p><strong>Address Geocode &#8211; US 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=\"\">#Set the primary and backup URLs as necessary\nprimaryURL = 'https:\/\/trial.serviceobjects.com\/GCR\/api.svc\/xml\/GetBestMatch_V4?'\nbackupURL = 'https:\/\/trial.serviceobjects.com\/GCR\/api.svc\/xml\/GetBestMatch_V4?'\n#The\n Requests package allows the user to format the path parameters like so\ninstead of having to manually insert them into the URL\ninputs = {'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    #checks the output for Errors and displays the info accordingly\n    if 'Error' in outputs['Location_V4']:\n        #loops through the response from the service and prints the values to the screen.\n        for key, value in outputs['Location_V4']['Error'].iteritems():\n            Label(swin.window, text=str(key) + \" : \" + str(value)).pack()\n    else:\n        #Removes unnecessary entries that were parsed into the python dictionary from XML response of service\n        outputs['Location_V4'].pop(\"@xmlns:i\", None)\n        outputs['Location_V4'].pop(\"@xmlns:xsd\", None)\n        outputs['Location_V4'].pop(\"@xmlns\", None)\n        for key, value in outputs['Location_V4'].iteritems():\n            if key!= 'InformationComponents':\n                Label(swin.window, text=str(key) + \" : \" + str(value)).pack()\n        if 'InformationComponents' in outputs['Location_V4']:\n            infoComponent = outputs['Location_V4']['InformationComponents']['InformationComponent']\n            for i in range(0, len(infoComponent)):\n                Label(swin.window, text=str(infoComponent[i][\"Name\"]) + \": \" + str(infoComponent[i][\"Value\"])).pack()<\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\">\n<p><strong>Address Geocode\u00a0&#8211; US ColdFusion Code 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 ---&gt;\n&lt;cfIf isDefined(\"form.Action\") AND Action neq \"\" &gt;\n    &lt;cftry&gt;\n        &lt;cfset primaryURL = \"https:\/\/trial.serviceobjects.com\/GCR\/api.svc\/xml\/GetBestMatch_V4?Address=#Address#&amp;City=#City#&amp;State=#State#&amp;PostalCode=#PostalCode#&amp;LicenseKey=#LicenseKey#\"&gt;\n        &lt;cfhttp url=\"#primaryURL#\"\n        method=\"get\"\n        result=\"response\"&gt;\n        &lt;cfset outputs = XmlParse(response.FileContent)&gt;\n        &lt;cfcatch&gt;\n            &lt;cftry&gt;\n                &lt;cfset backupURL = \"https:\/\/trial.serviceobjects.com\/GCR\/api.svc\/xml\/GetBestMatch_V4?Address=#Address#&amp;City=#City#&amp;State=#State#&amp;PostalCode=#PostalCode#&amp;LicenseKey=#LicenseKey#\"&gt;\n                &lt;cfhttp url=\"#backupURL#\"\n                method=\"get\"\n                result=\"response\"&gt;\n                &lt;cfset outputs = XmlParse(response.FileContent)&gt;             \n                &lt;cfcatch &gt;\n                    &lt;cfoutput &gt;\n                        The Following Error Occured: #response.StatusCode#\n                    &lt;\/cfoutput&gt;\n                &lt;\/cfcatch&gt;\n            &lt;\/cftry&gt;\n        &lt;\/cfcatch&gt;\n    &lt;\/cftry&gt;\n&lt;\/cfif&gt;<\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\">\n<p><strong>Address Geocode\u00a0&#8211; US VB 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\/GCR\/api.svc\/xml\/GetBestMatch_V4?Address=\" + address + \"&amp;City=\" + city + \"&amp;State=\" + state + \"&amp;PostalCode=\" + postalcode + \"&amp;LicenseKey=\" + licensekey\nDim backupurl As String = \"https:\/\/trial.serviceobjects.com\/GCR\/api.svc\/xml\/GetBestMatch_V4?Address=\" + address + \"&amp;City=\" + city + \"&amp;State=\" + state + \"&amp;PostalCode=\" + postalcode + \"&amp;LicenseKey=\" + licensekey\nDim wsresponse As GCRResponse.Location_V4 = httpGet(primaryurl)\n  \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].Number = \"4\") Then\n    wsresponse = httpGet(backupurl)\nEnd If\nIf wsresponse.[Error] IsNot Nothing Then\n    ProcessErrorResponse(wsresponse.[Error])\nElse\n    ProcessSuccessfulResponse(wsresponse)<\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\">\n<p><strong>Address Geocode\u00a0&#8211; US TSQL 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=\"\">--If a production key is purchased, this will execute the failover\nIF @isLiveKey = 1\nBEGIN\n    SET @sUrl = 'https:\/\/trial.serviceobjects.com\/GCR\/api.svc\/xml\/GetBestMatch_V4?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:\/\/trial.serviceobjects.com\/GCR\/api.svc\/xml\/GetBestMatch_V4?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\n\n\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\">\n<p><strong>Address GeoCoder NodeJS Code Snippet<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"c\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">var primaryUrl = 'https:\/\/trial.serviceobjects.com\/gcr\/api.svc\/XML\/GetBestMatch_V4?Address='+Address+ '&amp;City=' + City +'&amp;State=' + State +'&amp;PostalCode=' + PostalCode +'&amp;LicenseKey=' + LicenseKey;\nvar backupUrl = 'https:\/\/trial.serviceobjects.com\/gcr\/api.svc\/XML\/GetBestMatch_V4?Address='+Address+ '&amp;City=' + City +'&amp;State=' + State +'&amp;PostalCode=' + PostalCode +'&amp;LicenseKey=' + LicenseKey;\n  \nvar req = http.get(primaryUrl, function(res) {\nres.setEncoding('utf8');\nres.on('data', function (results) {\n    var parser = require('xml2js').Parser({explicitArray: false,ignoreAttrs: true});\n    parser.parseString(results, function (err, outputs) {\n        if (outputs.Location_V4.Error !=  null)\n        {\n            \/\/Indicates a Fatal error has occured. If this happens, the logic will then failover to the backup url\n            if (outputs.Location_V4.Error.Number == \"4\")\n            {\n                var backupReq = http.get(backupUrl, function(backupRes) {\n                    backupRes.setEncoding('utf8');\n                    backupRes.on('data', function (results) {\n                            var parser = require('xml2js').Parser({explicitArray: false,ignoreAttrs: true});\n                            parser.parseString(results, function (err, outputs) {\n                                console.log(\"Backup Call Was Used.\");\n                                response.end(JSON.stringify(outputs , null, 3));\n                            });\n                        });\n                    });\n            }\n            else\n            {\n                \/\/Will Display the JSON Formatted Error Response here\n                response.end(JSON.stringify(outputs, null, 3));\n                return;\n            }\n        }\n        else\n        {\n            \/\/Will Display the JSON Formatted Valid Response here\n            response.end(JSON.stringify(outputs, null, 3));\n            return;\n        }\n    });<\/pre>\n<\/div>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"parent":2461,"menu_order":1,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2476","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>AGUS - REST<\/title>\n<meta name=\"description\" content=\"C#JavaPHPRoRPythonColdFusionVBTSQLNodeJS Address Geocode - US C# Code Snippet string primaryURL =\" \/>\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=\"AGUS - REST\" \/>\n<meta property=\"og:description\" content=\"C#JavaPHPRoRPythonColdFusionVBTSQLNodeJS Address Geocode - US C# Code Snippet string primaryURL =\" \/>\n<meta property=\"og:url\" content=\"https:\/\/test.serviceobjects.com\/docs\/dots-address-geocode-us\/agus-code-snippets-and-sample-code\/agus-rest\/\" \/>\n<meta property=\"og:site_name\" content=\"Service Objects | Contact, Phone, Email Verification | Data Quality Services\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-14T22:08:22+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=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/dots-address-geocode-us\/agus-code-snippets-and-sample-code\/agus-rest\/\",\"url\":\"https:\/\/test.serviceobjects.com\/docs\/dots-address-geocode-us\/agus-code-snippets-and-sample-code\/agus-rest\/\",\"name\":\"AGUS - REST\",\"isPartOf\":{\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/#website\"},\"datePublished\":\"2022-11-09T07:10:33+00:00\",\"dateModified\":\"2022-12-14T22:08:22+00:00\",\"description\":\"C#JavaPHPRoRPythonColdFusionVBTSQLNodeJS Address Geocode - US C# Code Snippet string primaryURL =\",\"breadcrumb\":{\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/dots-address-geocode-us\/agus-code-snippets-and-sample-code\/agus-rest\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/test.serviceobjects.com\/docs\/dots-address-geocode-us\/agus-code-snippets-and-sample-code\/agus-rest\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/dots-address-geocode-us\/agus-code-snippets-and-sample-code\/agus-rest\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/test.serviceobjects.com\/docs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"DOTS Address Geocode \u2013 US\",\"item\":\"https:\/\/test.serviceobjects.com\/docs\/dots-address-geocode-us\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"AGUS &#8211; Code Snippets and Sample Code\",\"item\":\"https:\/\/test.serviceobjects.com\/docs\/dots-address-geocode-us\/agus-code-snippets-and-sample-code\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"AGUS &#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":"AGUS - REST","description":"C#JavaPHPRoRPythonColdFusionVBTSQLNodeJS Address Geocode - US C# Code Snippet string primaryURL =","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":"AGUS - REST","og_description":"C#JavaPHPRoRPythonColdFusionVBTSQLNodeJS Address Geocode - US C# Code Snippet string primaryURL =","og_url":"https:\/\/test.serviceobjects.com\/docs\/dots-address-geocode-us\/agus-code-snippets-and-sample-code\/agus-rest\/","og_site_name":"Service Objects | Contact, Phone, Email Verification | Data Quality Services","article_modified_time":"2022-12-14T22:08:22+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/test.serviceobjects.com\/docs\/dots-address-geocode-us\/agus-code-snippets-and-sample-code\/agus-rest\/","url":"https:\/\/test.serviceobjects.com\/docs\/dots-address-geocode-us\/agus-code-snippets-and-sample-code\/agus-rest\/","name":"AGUS - REST","isPartOf":{"@id":"https:\/\/test.serviceobjects.com\/docs\/#website"},"datePublished":"2022-11-09T07:10:33+00:00","dateModified":"2022-12-14T22:08:22+00:00","description":"C#JavaPHPRoRPythonColdFusionVBTSQLNodeJS Address Geocode - US C# Code Snippet string primaryURL =","breadcrumb":{"@id":"https:\/\/test.serviceobjects.com\/docs\/dots-address-geocode-us\/agus-code-snippets-and-sample-code\/agus-rest\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/test.serviceobjects.com\/docs\/dots-address-geocode-us\/agus-code-snippets-and-sample-code\/agus-rest\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/test.serviceobjects.com\/docs\/dots-address-geocode-us\/agus-code-snippets-and-sample-code\/agus-rest\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/test.serviceobjects.com\/docs\/"},{"@type":"ListItem","position":2,"name":"DOTS Address Geocode \u2013 US","item":"https:\/\/test.serviceobjects.com\/docs\/dots-address-geocode-us\/"},{"@type":"ListItem","position":3,"name":"AGUS &#8211; Code Snippets and Sample Code","item":"https:\/\/test.serviceobjects.com\/docs\/dots-address-geocode-us\/agus-code-snippets-and-sample-code\/"},{"@type":"ListItem","position":4,"name":"AGUS &#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\/2476","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\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/comments?post=2476"}],"version-history":[{"count":8,"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/2476\/revisions"}],"predecessor-version":[{"id":7379,"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/2476\/revisions\/7379"}],"up":[{"embeddable":true,"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/2461"}],"wp:attachment":[{"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/media?parent=2476"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}