{"id":2878,"date":"2022-11-09T22:33:15","date_gmt":"2022-11-09T22:33:15","guid":{"rendered":"https:\/\/serviceobjects.wpaladdin.com\/?page_id=2878"},"modified":"2022-12-14T22:08:22","modified_gmt":"2022-12-14T22:08:22","slug":"bv-rest","status":"publish","type":"page","link":"https:\/\/www.serviceobjects.com\/docs\/dots-bin-validation\/bv-code-snippets-and-sample-code\/bv-rest\/","title":{"rendered":"BV &#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><\/ul><div class=\"tab-content\">\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\">\n<p><strong>BIN Validation 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=\"\">\/\/encodes the URLs for the get Call. Set the primary and back urls as necessary\nstring primaryurl = \"https:\/\/trial.serviceobjects.com\/BV\/web.svc\/json\/ValidateBIN_V2?BinNumber=\" + bin + \"&amp;LicenseKey=\" + licensekey;\nstring backupurl = \"https:\/\/trial.serviceobjects.com\/BV\/web.svc\/json\/ValidateBIN_V2?BinNumber=\" + bin + \"&amp;LicenseKey=\" + licensekey;\nBVResponse_Rest.BinValidationResult wsresponse = 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 == null || (wsresponse.Error != null &amp;&amp; wsresponse.Error.TypeCode == \"3\"));\n{\n    wsresponse = httpGet(backupurl);\n}\nif (wsresponse.Error != null)\n{\n    ProcessErrorResponse(wsresponse.Error);\n}\nelse\n{\n    ProcessSuccessfulResponse(wsresponse.BinValidationInfo);\n}<\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\">\n<p><strong>BIN Validation 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=\"\">JSONObject results = RestClient(mainURL);  \ntry {\n    if (ErrorMessages != null || (results.getJSONObject(\"BinValidationResult\").has(\"Error\") &amp;&amp; results.getJSONObject(\"BinValidationResult\").getJSONObject(\"Error\").get(\"DescCode\") == \"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>BIN Validation 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\/BV\/web.svc\/json\/ValidateBIN_V2?BinNumber=\".urlencode($BIN).\"&amp;LicenseKey=\".urlencode($LicenseKey);\n\/\/use backup url once given purchased license key\n$backupURL = \"https:\/\/trial.serviceobjects.com\/BV\/web.svc\/json\/ValidateBIN_V2?BinNumber=\".urlencode($BIN).\"&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 BIN Validation'));\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     \n    \/\/ Close request to clear up some resources\n    if($resp == false)\n    {\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 BIN Validation'));\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            echo \"&lt;b&gt; Both rest calls failed &lt;\/b&gt;\";\n            curl_close($curl);\n            return;\n        }\n    }<\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\">\n<p><strong>BIN Validation RoR Code Snippets<\/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=\"\">@request = Request.find(params[:id])\n#This sets the default timeout for HTTParty get operation. This must be set in order to use the gem\ndefault_timeout = 10\nbinnumber = @request.binnumber\nlicensekey = @request.licensekey\n#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\/BV\/web.svc\/json\/ValidateBIN_V2?BinNumber=\" + binnumber + \"&amp;LicenseKey=\" + licensekey)\nbackupURL = URI.encode(\"https:\/\/trial.serviceobjects.com\/BV\/web.svc\/json\/ValidateBIN_V2?BinNumber=\" + binnumber + \"&amp;LicenseKey=\" + licensekey)\n \n#These are set to access the hash that is returned\n@bvresult =\"BinValidationResult\"\n@bvinfo = \"BinValidationInfo\"\n@bverror = \"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 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>BIN Validation 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\/BV\/web.svc\/xml\/ValidateBIN_V2?'\nbackupURL = 'https:\/\/trial.serviceobjects.com\/BV\/web.svc\/xml\/ValidateBIN_V2?'\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 = {'BinNumber': mBinNumber, '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['BinValidationResult']:\n        #loops through the response from the service and prints the values to the screen.\n        for key, value in outputs['BinValidationResult']['Error'].iteritems():\n            Label(swin.window, text=str(key) + \" : \" + str(value)).pack()\n    #Prints a valid response if one was received from the service\n    else:\n        for key, value in outputs['BinValidationResult']['BinValidationInfo'].iteritems():\n            Label(swin.window, text=str(key) + \" : \" + str(value)).pack()\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        #checks the output for Errors and displays the info accordingly\n        if 'Error' in outputs['BinValidationResult']:\n            #loops through the response from the service and prints the values to the screen.\n            for key, value in outputs['BinValidationResult']['Error'].iteritems():\n                Label(swin.window, text=str(key) + \" : \" + str(value)).pack()\n        #Prints a valid response if one was received from the service\n        else:\n            for key, value in outputs['BinValidationResult']['BinValidationInfo'].iteritems():\n                Label(swin.window, text=str(key) + \" : \" + str(value)).pack()<\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\">\n<p><strong>BIN Validation 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 ---&gt;\n&lt;cfIf isDefined(\"form.Action\") AND Action neq \"\" &gt;\n    &lt;cftry&gt;\n        &lt;cfset primaryURL = \"https:\/\/trial.serviceobjects.com\/BV\/web.svc\/xml\/ValidateBIN_V2?BinNumber=#BinNumber#&amp;LicenseKey=#LicenseKey#\"&gt;\n        &lt;cfhttp url=\"#primaryURL#\" method=\"get\" 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\/BV\/web.svc\/xml\/ValidateBIN_V2?BinNumber=#BinNumber#&amp;LicenseKey=#LicenseKey#\"&gt;\n                &lt;cfhttp url=\"#backupURL#\" method=\"get\" 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>BIN Validation 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=\"\">Try\n    'encodes the URLs for the get Call. Set the primary and back urls as necessary\n    Dim primaryurl As String = \"https:\/\/trial.serviceobjects.com\/BV\/web.svc\/json\/ValidateBIN_V2?BinNumber=\" &amp; bin + \"&amp;LicenseKey=\" &amp; licensekey\n    Dim backupurl As String = \"https:\/\/trial.serviceobjects.com\/BV\/web.svc\/json\/ValidateBIN_V2?BinNumber=\" &amp; bin + \"&amp;LicenseKey=\" &amp; licensekey\n    Dim wsresponse As BVResponse.BinValidationResult = 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.\n    If wsresponse Is Nothing OrElse (wsresponse.[Error] IsNot Nothing AndAlso wsresponse.[Error].TypeCode = \"3\") Then\n        wsresponse = httpGet(backupurl)\n    End If\n    If wsresponse.[Error] IsNot Nothing Then\n        ProcessErrorResponse(wsresponse.[Error])\n    Else\n        ProcessSuccessfulResponse(wsresponse.BinValidationInfo)\n \n    End If\nCatch ex As Exception\n    'Displays the relevant error mesasge if both backup and primary urls failed.\n    StatusLabel.Text = ex.Message\n    StatusLabel.Visible = True\nEnd Try<\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\">\n<p><strong>BIN Validation TSQL Code Snippet<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">IF @isLiveKey = 1\nBEGIN\n    SET @sUrl = 'https:\/\/trial.serviceobjects.com\/BV\/web.svc\/xml\/ValidateBIN_V2?BinNumber=' + @bin + '&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\/BV\/web.svc\/xml\/ValidateBIN_V2?BinNumber=' + @bin + '&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":2849,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2878","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>BV - REST<\/title>\n<meta name=\"description\" content=\"C#JavaPHPRoRPythonColdFusionVBTSQL BIN Validation C# Rest Code Snippet \/\/encodes the URLs for the get Call. Set the primary and back urls as necessary\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.serviceobjects.com\/docs\/dots-bin-validation\/bv-code-snippets-and-sample-code\/bv-rest\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"BV - REST\" \/>\n<meta property=\"og:description\" content=\"C#JavaPHPRoRPythonColdFusionVBTSQL BIN Validation C# Rest Code Snippet \/\/encodes the URLs for the get Call. Set the primary and back urls as necessary\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.serviceobjects.com\/docs\/dots-bin-validation\/bv-code-snippets-and-sample-code\/bv-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=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.serviceobjects.com\/docs\/dots-bin-validation\/bv-code-snippets-and-sample-code\/bv-rest\/\",\"url\":\"https:\/\/www.serviceobjects.com\/docs\/dots-bin-validation\/bv-code-snippets-and-sample-code\/bv-rest\/\",\"name\":\"BV - REST\",\"isPartOf\":{\"@id\":\"https:\/\/www.serviceobjects.com\/docs\/#website\"},\"datePublished\":\"2022-11-09T22:33:15+00:00\",\"dateModified\":\"2022-12-14T22:08:22+00:00\",\"description\":\"C#JavaPHPRoRPythonColdFusionVBTSQL BIN Validation C# Rest Code Snippet \/\/encodes the URLs for the get Call. Set the primary and back urls as necessary\",\"breadcrumb\":{\"@id\":\"https:\/\/www.serviceobjects.com\/docs\/dots-bin-validation\/bv-code-snippets-and-sample-code\/bv-rest\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.serviceobjects.com\/docs\/dots-bin-validation\/bv-code-snippets-and-sample-code\/bv-rest\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.serviceobjects.com\/docs\/dots-bin-validation\/bv-code-snippets-and-sample-code\/bv-rest\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.serviceobjects.com\/docs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"DOTS BIN Validation\",\"item\":\"https:\/\/www.serviceobjects.com\/docs\/dots-bin-validation\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"BV &#8211; Code Snippets and Sample Code\",\"item\":\"https:\/\/www.serviceobjects.com\/docs\/dots-bin-validation\/bv-code-snippets-and-sample-code\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"BV &#8211; REST\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.serviceobjects.com\/docs\/#website\",\"url\":\"https:\/\/www.serviceobjects.com\/docs\/\",\"name\":\"Service Objects | Contact, Phone, Email Verification | Data Quality Services\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.serviceobjects.com\/docs\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.serviceobjects.com\/docs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.serviceobjects.com\/docs\/#organization\",\"name\":\"Service Objects | Contact, Phone, Email Verification | Data Quality Services\",\"url\":\"https:\/\/www.serviceobjects.com\/docs\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.serviceobjects.com\/docs\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.serviceobjects.com\/docs\/wp-content\/uploads\/2022\/08\/SO-logo-2560px-transparent.png\",\"contentUrl\":\"https:\/\/www.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:\/\/www.serviceobjects.com\/docs\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"BV - REST","description":"C#JavaPHPRoRPythonColdFusionVBTSQL BIN Validation C# Rest Code Snippet \/\/encodes the URLs for the get Call. Set the primary and back urls as necessary","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.serviceobjects.com\/docs\/dots-bin-validation\/bv-code-snippets-and-sample-code\/bv-rest\/","og_locale":"en_US","og_type":"article","og_title":"BV - REST","og_description":"C#JavaPHPRoRPythonColdFusionVBTSQL BIN Validation C# Rest Code Snippet \/\/encodes the URLs for the get Call. Set the primary and back urls as necessary","og_url":"https:\/\/www.serviceobjects.com\/docs\/dots-bin-validation\/bv-code-snippets-and-sample-code\/bv-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":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.serviceobjects.com\/docs\/dots-bin-validation\/bv-code-snippets-and-sample-code\/bv-rest\/","url":"https:\/\/www.serviceobjects.com\/docs\/dots-bin-validation\/bv-code-snippets-and-sample-code\/bv-rest\/","name":"BV - REST","isPartOf":{"@id":"https:\/\/www.serviceobjects.com\/docs\/#website"},"datePublished":"2022-11-09T22:33:15+00:00","dateModified":"2022-12-14T22:08:22+00:00","description":"C#JavaPHPRoRPythonColdFusionVBTSQL BIN Validation C# Rest Code Snippet \/\/encodes the URLs for the get Call. Set the primary and back urls as necessary","breadcrumb":{"@id":"https:\/\/www.serviceobjects.com\/docs\/dots-bin-validation\/bv-code-snippets-and-sample-code\/bv-rest\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.serviceobjects.com\/docs\/dots-bin-validation\/bv-code-snippets-and-sample-code\/bv-rest\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.serviceobjects.com\/docs\/dots-bin-validation\/bv-code-snippets-and-sample-code\/bv-rest\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.serviceobjects.com\/docs\/"},{"@type":"ListItem","position":2,"name":"DOTS BIN Validation","item":"https:\/\/www.serviceobjects.com\/docs\/dots-bin-validation\/"},{"@type":"ListItem","position":3,"name":"BV &#8211; Code Snippets and Sample Code","item":"https:\/\/www.serviceobjects.com\/docs\/dots-bin-validation\/bv-code-snippets-and-sample-code\/"},{"@type":"ListItem","position":4,"name":"BV &#8211; REST"}]},{"@type":"WebSite","@id":"https:\/\/www.serviceobjects.com\/docs\/#website","url":"https:\/\/www.serviceobjects.com\/docs\/","name":"Service Objects | Contact, Phone, Email Verification | Data Quality Services","description":"","publisher":{"@id":"https:\/\/www.serviceobjects.com\/docs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.serviceobjects.com\/docs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.serviceobjects.com\/docs\/#organization","name":"Service Objects | Contact, Phone, Email Verification | Data Quality Services","url":"https:\/\/www.serviceobjects.com\/docs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.serviceobjects.com\/docs\/#\/schema\/logo\/image\/","url":"https:\/\/www.serviceobjects.com\/docs\/wp-content\/uploads\/2022\/08\/SO-logo-2560px-transparent.png","contentUrl":"https:\/\/www.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:\/\/www.serviceobjects.com\/docs\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/2878","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.serviceobjects.com\/docs\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.serviceobjects.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.serviceobjects.com\/docs\/wp-json\/wp\/v2\/comments?post=2878"}],"version-history":[{"count":8,"href":"https:\/\/www.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/2878\/revisions"}],"predecessor-version":[{"id":7368,"href":"https:\/\/www.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/2878\/revisions\/7368"}],"up":[{"embeddable":true,"href":"https:\/\/www.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/2849"}],"wp:attachment":[{"href":"https:\/\/www.serviceobjects.com\/docs\/wp-json\/wp\/v2\/media?parent=2878"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}