{"id":2497,"date":"2022-11-09T07:20:00","date_gmt":"2022-11-09T07:20:00","guid":{"rendered":"https:\/\/serviceobjects.wpaladdin.com\/?post_type=serviceobjects&#038;p=2497"},"modified":"2024-03-29T08:54:05","modified_gmt":"2024-03-29T15:54:05","slug":"aius-rest","status":"publish","type":"page","link":"https:\/\/test.serviceobjects.com\/docs\/dots-address-insight-us\/aius-code-snippets-and-sample-code\/aius-rest\/","title":{"rendered":"AIUS &#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><\/ul><div class=\"tab-content\">\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\" tabindex=\"0\">\n<p><strong>Address Insight 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=\"\">protected void btn_Validate_Click(object sender, EventArgs e)\n{\n    string businessName, address1, address2, city, state, zip, testType, licenseKey;\n    businessName = BusinessName.Text; address1 = Address1.Text; address2 = Address2.Text;\n    city = City.Text; state = State.Text; zip = Zip.Text;\n    testType = TestType.Text; licenseKey = inputLicenseKey.Text;\n    try\n    {\n        if (String.IsNullOrWhiteSpace(licenseKey))\n            licenseKey = \"yourDevKey\";\n        AINResponse response = MakeRequest(businessName, address1, address2, city, state, zip, testType, licenseKey);\n        ProcessResponse(response);\n    }\n    catch (Exception ex)\n    {\n        ErrorLabel.Text = ex.Message;\n        ErrorLabel.Visible = true;\n    }\n}\npublic static AINResponse MakeRequest(string businessName, string address1, string address2, string city, string state, string zip, string testType, string licenseKey)\n{\n    string mainURL = WEB_SERVICE_PRIMARY_URL + \"?BusinessName=\" + businessName + \"&amp;Address1=\" + address1 + \"&amp;Address2=\" + address2 + \"&amp;City=\" + city + \"&amp;State=\" + state + \"&amp;Zip=\" + zip + \"&amp;TestType=\"+ testType + \"&amp;LicenseKey=\" + licenseKey;\n    string backupURL = WEB_SERVICE_BACKUP_URL + \"?BusinessName=\" + businessName + \"&amp;Address1=\" + address1 + \"&amp;Address2=\" + address2 + \"&amp;City=\" + city + \"&amp;State=\" + state + \"&amp;Zip=\" + zip + \"&amp;TestType=\" + testType + \"&amp;LicenseKey=\" + licenseKey;\n    AINResponse result = null;\n  \n    try\n    {\n        result = HttpGet(mainURL);\n        \/\/NULL ERROR || FATAL ERROR RETURNED -- TRY BACKUP\n        if (result == null || (result.error != null &amp;&amp; result.error.TypeCode == \"3\"))\n        {\n            return HttpGet(backupURL);\n        }\n        else\n        {\n            return result;\n        }\n    }\n    catch (Exception)\n    {   \/\/ERROR IN MAIN URL - USING BACKUP\n        return HttpGet(backupURL);\n    }\n}\npublic static AINResponse HttpGet(string requestUrl)\n{\n    try\n    {\n        \/\/NOTE: URL encoding occurs automatically when creating the web request\n        HttpWebRequest request = WebRequest.Create(requestUrl) as HttpWebRequest;\n        request.Timeout = WEB_SERVICE_REQUEST_TIMEOUT;\/\/timeout for get operation\n        using (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(AINResponse));\n            object objResponse = jsonSerializer.ReadObject(response.GetResponseStream());\n            AINResponse jsonResponse = objResponse as AINResponse;\n            return jsonResponse;\n        }\n    }\n    catch (Exception e)\n    {\n        throw e;\n    }\n}\nprivate void ProcessResponse(AINResponse response)\n{\n    try\n    {\n        \/\/processing result\n        if (response.error == null)\n        {\n            ProcessResult(response);\n        }\n        \/\/processing error\n        else\n        {\n            ProcessError(response.error);\n        }\n    }\n    catch (Exception e)\n    {\n        throw e;\n    }\n}\nprivate void ProcessResult(AINResponse response)\n{\n    DataTable dtProvider = new DataTable();\n    dtProvider.Columns.Add(new DataColumn(\"Output\", typeof(string)));\n    dtProvider.Columns.Add(new DataColumn(\"Values\", typeof(string)));\n    try\n    {\n        dtProvider.Rows.Add(\"Status\", response.Status);\n        dtProvider.Rows.Add(\"StatusScore\", response.StatusScore);\n        dtProvider.Rows.Add(\"AddressStatus\", response.AddressStatus);\n        dtProvider.Rows.Add(\"DPV\", response.DPV);\n        dtProvider.Rows.Add(\"DPVDesc\", response.DPVDesc);\n        ...\n        dtProvider.Rows.Add(\"GeocodeStatus\", response.GeocodeStatus);\n        dtProvider.Rows.Add(\"LocationLatitude\", response.LocationLatitude);\n        dtProvider.Rows.Add(\"LocationLongitude\", response.LocationLongitude);\n        ...\n        dtProvider.Rows.Add(\"CityType\", response.CityType);\n        dtProvider.Rows.Add(\"CityAliasName\", response.CityAliasName);\n        dtProvider.Rows.Add(\"AreaCode\", response.AreaCode);\n        dtProvider.Rows.Add(\"TimeZone\", response.TimeZone);\n        dtProvider.Rows.Add(\"DaylightSaving\", response.DaylightSaving);\n        ...\n        dtProvider.Rows.Add(\"StateHouseholdIncome\", response.StateHouseholdIncome);\n        dtProvider.Rows.Add(\"ZipNotes\", response.ZipNotes);\n        dtProvider.Rows.Add(\"ZipNotesCodes\", response.ZipNotesCodes);\n        ResultGrid.Visible = true;\n        ErrorGrid.Visible = false;\n        ResultGrid.DataSource = new DataView(dtProvider);\n        ResultGrid.DataBind();\n    }\n    catch (Exception e)\n    {\n        throw e;\n    }\n}\nprivate void ProcessError(Error error)\n{\n    try\n    {\n        DataTable dtError = new DataTable();\n          \n        dtError.Columns.Add(new DataColumn(\"Output\", typeof(string)));\n        dtError.Columns.Add(new DataColumn(\"Values\", typeof(string)));\n        dtError.Rows.Add(\"Type\", string.IsNullOrEmpty(error.Type) ? \"\" : error.Type);\n        dtError.Rows.Add(\"TypeCode\", string.IsNullOrEmpty(error.TypeCode) ? \"\" : error.TypeCode);\n        dtError.Rows.Add(\"Desc\", string.IsNullOrEmpty(error.Desc) ? \"\" : error.Desc);\n        dtError.Rows.Add(\"DescCode\", string.IsNullOrEmpty(error.DescCode) ? \"\" : error.DescCode);\n  \n        ErrorGrid.Visible = true;\n        ResultGrid.Visible = false;\n        ErrorGrid.DataSource = new DataView(dtError);\n        ErrorGrid.DataBind();\n    }\n    catch (Exception e)\n    {\n        throw e;\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>Address Insight 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=\"\">String businessName = request.getParameter(\"businessName\");\nString address1 = request.getParameter(\"address1\");\nString address2 = request.getParameter(\"address2\");\nString city = request.getParameter(\"city\");\nString state = request.getParameter(\"state\");\nString zip = request.getParameter(\"zip\");\nString testType = request.getParameter(\"testType\");\nString licenseKey = request.getParameter(\"licensekey\");\nbusinessName = URLEncoder.encode(businessName,\"UTF-8\").replaceAll(\"+\", \"%20\");\naddress1 = URLEncoder.encode(address1,\"UTF-8\").replaceAll(\"+\", \"%20\");\naddress2 = URLEncoder.encode(address2,\"UTF-8\").replaceAll(\"+\", \"%20\");\ncity = URLEncoder.encode(city,\"UTF-8\").replaceAll(\"+\", \"%20\");\nstate = URLEncoder.encode(state,\"UTF-8\").replaceAll(\"+\", \"%20\");\nzip = URLEncoder.encode(zip,\"UTF-8\").replaceAll(\"+\", \"%20\");\ntestType = URLEncoder.encode(testType,\"UTF-8\").replaceAll(\"+\", \"%20\");\nlicenseKey = URLEncoder.encode(licenseKey,\"UTF-8\").replaceAll(\"+\", \"%20\");\n \nString mainURL = \"https:\/\/trial.serviceobjects.com\/AIN\/api.svc\/json\/GetAddressInsight?BusinessName=\" + businessName + \"&amp;Address1=\" + address1 + \"&amp;Address2=\" + address2 + \"&amp;City=\" + city + \"&amp;State=\" + state + \"&amp;Zip=\" + zip + \"&amp;TestType=\" + testType + \"&amp;LicenseKey=\" + licenseKey;\nString backupURL = \"https:\/\/trial.serviceobjects.com\/AIN\/api.svc\/json\/GetAddressInsight?BusinessName=\" + businessName + \"&amp;Address1=\" + address1 + \"&amp;Address2=\" + address2 + \"&amp;City=\" + city + \"&amp;State=\" + state + \"&amp;Zip=\" + zip + \"&amp;TestType=\" + testType + \"&amp;LicenseKey=\" + licenseKey;\nURL url = null;\nHttpsURLConnection conn = null;\nGson gson = new GsonBuilder().setPrettyPrinting().disableHtmlEscaping().create();\nString responseString = \"\";\nString prettyjson = \"\";\ntry{\nurl = new URL(mainURL);\nconn = (HttpsURLConnection) url.openConnection();\nconn.setConnectTimeout(10000);\nconn.setRequestMethod(\"GET\");\nconn.setRequestProperty(\"Accept\", \"application\/json\");\nif (conn.getResponseCode() != 200) {\nthrow new RuntimeException(\"Failed : HTTP error code : \" + conn.getResponseCode());\n}\nBufferedReader br = new BufferedReader(new InputStreamReader(\n(conn.getInputStream())));\nString output;\nwhile ((output = br.readLine()) != null) {\nresponseString += output;\n}\n \nJsonParser parser = new JsonParser();\nJsonObject json = parser.parse(responseString).getAsJsonObject();\n \nprettyjson = gson.toJson(json);\n} catch (Exception ex) {\n\/\/call the backup client\nurl = new URL(backupURL);\nconn = (HttpsURLConnection) url.openConnection();\nconn.setConnectTimeout(10000);\nconn.setRequestMethod(\"GET\");\nconn.setRequestProperty(\"Accept\", \"application\/json\");\nif (conn.getResponseCode() != 200) {\nthrow new RuntimeException(\"Failed : HTTP error code : \" + conn.getResponseCode());\n}\nBufferedReader br = new BufferedReader(new InputStreamReader(\n(conn.getInputStream())));\nString output;\nwhile ((output = br.readLine()) != null) {\nresponseString += output;\n}\n \nJsonParser parser = new JsonParser();\nJsonObject json = parser.parse(responseString).getAsJsonObject();\n \nprettyjson = gson.toJson(json);\n}<\/pre>\n<\/div>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":2492,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2497","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>AIUS - REST<\/title>\n<meta name=\"description\" content=\"C#Java Address Insight C# Rest Code Snippet protected void btn_Validate_Click(object sender, EventArgs e) { string businessName, address1, address2, city,\" \/>\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=\"AIUS - REST\" \/>\n<meta property=\"og:description\" content=\"C#Java Address Insight C# Rest Code Snippet protected void btn_Validate_Click(object sender, EventArgs e) { string businessName, address1, address2, city,\" \/>\n<meta property=\"og:url\" content=\"https:\/\/test.serviceobjects.com\/docs\/dots-address-insight-us\/aius-code-snippets-and-sample-code\/aius-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:54: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-address-insight-us\/aius-code-snippets-and-sample-code\/aius-rest\/\",\"url\":\"https:\/\/test.serviceobjects.com\/docs\/dots-address-insight-us\/aius-code-snippets-and-sample-code\/aius-rest\/\",\"name\":\"AIUS - REST\",\"isPartOf\":{\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/#website\"},\"datePublished\":\"2022-11-09T07:20:00+00:00\",\"dateModified\":\"2024-03-29T15:54:05+00:00\",\"description\":\"C#Java Address Insight C# Rest Code Snippet protected void btn_Validate_Click(object sender, EventArgs e) { string businessName, address1, address2, city,\",\"breadcrumb\":{\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/dots-address-insight-us\/aius-code-snippets-and-sample-code\/aius-rest\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/test.serviceobjects.com\/docs\/dots-address-insight-us\/aius-code-snippets-and-sample-code\/aius-rest\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/dots-address-insight-us\/aius-code-snippets-and-sample-code\/aius-rest\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/test.serviceobjects.com\/docs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"DOTS Address Insight &#8211; US\",\"item\":\"https:\/\/test.serviceobjects.com\/docs\/dots-address-insight-us\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"AIUS &#8211; Code Snippets and Sample Code\",\"item\":\"https:\/\/test.serviceobjects.com\/docs\/dots-address-insight-us\/aius-code-snippets-and-sample-code\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"AIUS &#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":"AIUS - REST","description":"C#Java Address Insight C# Rest Code Snippet protected void btn_Validate_Click(object sender, EventArgs e) { string businessName, address1, address2, city,","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":"AIUS - REST","og_description":"C#Java Address Insight C# Rest Code Snippet protected void btn_Validate_Click(object sender, EventArgs e) { string businessName, address1, address2, city,","og_url":"https:\/\/test.serviceobjects.com\/docs\/dots-address-insight-us\/aius-code-snippets-and-sample-code\/aius-rest\/","og_site_name":"Service Objects | Contact, Phone, Email Verification | Data Quality Services","article_modified_time":"2024-03-29T15:54: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-address-insight-us\/aius-code-snippets-and-sample-code\/aius-rest\/","url":"https:\/\/test.serviceobjects.com\/docs\/dots-address-insight-us\/aius-code-snippets-and-sample-code\/aius-rest\/","name":"AIUS - REST","isPartOf":{"@id":"https:\/\/test.serviceobjects.com\/docs\/#website"},"datePublished":"2022-11-09T07:20:00+00:00","dateModified":"2024-03-29T15:54:05+00:00","description":"C#Java Address Insight C# Rest Code Snippet protected void btn_Validate_Click(object sender, EventArgs e) { string businessName, address1, address2, city,","breadcrumb":{"@id":"https:\/\/test.serviceobjects.com\/docs\/dots-address-insight-us\/aius-code-snippets-and-sample-code\/aius-rest\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/test.serviceobjects.com\/docs\/dots-address-insight-us\/aius-code-snippets-and-sample-code\/aius-rest\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/test.serviceobjects.com\/docs\/dots-address-insight-us\/aius-code-snippets-and-sample-code\/aius-rest\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/test.serviceobjects.com\/docs\/"},{"@type":"ListItem","position":2,"name":"DOTS Address Insight &#8211; US","item":"https:\/\/test.serviceobjects.com\/docs\/dots-address-insight-us\/"},{"@type":"ListItem","position":3,"name":"AIUS &#8211; Code Snippets and Sample Code","item":"https:\/\/test.serviceobjects.com\/docs\/dots-address-insight-us\/aius-code-snippets-and-sample-code\/"},{"@type":"ListItem","position":4,"name":"AIUS &#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\/2497","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=2497"}],"version-history":[{"count":7,"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/2497\/revisions"}],"predecessor-version":[{"id":10022,"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/2497\/revisions\/10022"}],"up":[{"embeddable":true,"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/2492"}],"wp:attachment":[{"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/media?parent=2497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}