This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
PostCoder Web Service V3 example | |
Allies Computing Ltd 2014 | |
Demonstrates UK Address lookup rest web service | |
Product URL: https://www.alliescomputing.com/postcoder/address-lookup | |
Technical Specs: https://developers.alliescomputing.com/postcoder-web-api/address-lookup/premise | |
Example output: http://ws.postcoder.com/pcw/PCW45-12345-12345-1234X/address/UK/NR147PZ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// PostCoder Web Service V3 example | |
// Allies Computing Ltd 2013 | |
// | |
// Demonstrates UK Address lookup rest web service | |
// | |
// Product URL: https://www.alliescomputing.com/postcoder/address-lookup | |
// Technical Specs: https://developers.alliescomputing.com/postcoder-web-api/address-lookup/premise | |
// Example output: http://ws.postcoder.com/pcw/PCW45-12345-12345-1234X/address/UK/NR147PZ | |
// | |
// This demo shows how to perform an address lookup and parse the results into C# objects. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' PostCoder Web Service V3 example | |
' Allies Computing Ltd 2013 | |
' | |
' Demonstrates UK Address lookup rest web service | |
' | |
' Product URL: https://www.alliescomputing.com/postcoder/address-lookup | |
' Technical Specs: https://developers.alliescomputing.com/postcoder-web-api/address-lookup/premise | |
' Example output: http://ws.postcoder.com/pcw/PCW45-12345-12345-1234X/address/UK/NR147PZ | |
' | |
' This demo shows how to perform an address lookup and parse the results into VB.Net objects. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// PostCoder Web Service V3 example | |
// Allies Computing Ltd 2013 | |
// | |
// Demonstrates UK Address lookup rest web service | |
// | |
// Product URL: https://www.alliescomputing.com/postcoder/address-lookup | |
// Technical Specs: https://developers.alliescomputing.com/postcoder-web-api/address-lookup/premise | |
// Example output: http://ws.postcoder.com/pcw/PCW45-12345-12345-1234X/address/UK/NR147PZ | |
// | |
// This demo shows how to perform an address lookup and parse the results into Java objects. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# PostCoder Web Service V3 example | |
# Allies Computing Ltd 2014 | |
# | |
# This demo shows how to perform an address lookup in ruby. | |
# | |
# Note: This script has been developed for ruby >= 1.9.3 | |
# | |
require 'cgi' | |
require 'json' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# PostCoder Web Service V3 example | |
# Allies Computing Ltd 2014 | |
# | |
# This demo shows how to perform an address lookup in Python. | |
# | |
import json | |
import urllib | |
searchkey = 'PCW45-12345-12345-1234X'; # Test search key, replace with your |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Check if POST request has been made | |
if($_SERVER['REQUEST_METHOD'] === 'POST') { | |
// Basic validation on the postcode field | |
if(array_key_exists('postcode', $_POST) and !empty($_POST['postcode'])) { | |
// Insert your PostCoder Web API Key here | |
// Sign up for free at www.alliescomputing.com/postcoder/sign-up | |
$pcw_api_key = "YOUR-API-KEY-HERE"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Check if POST request has been made | |
if($_SERVER['REQUEST_METHOD'] === 'POST') { | |
// Basic validation on the postcode field | |
if(array_key_exists('postcode', $_POST) and !empty($_POST['postcode'])) { | |
// Insert your PostCoder Web API Key here | |
// Sign up for free at www.alliescomputing.com/postcoder/sign-up | |
$pcw_api_key = "YOUR-API-KEY-HERE"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Check if POST request has been made | |
if($_SERVER['REQUEST_METHOD'] === 'POST') { | |
// Basic validation on the email field | |
if(array_key_exists('email', $_POST) and !empty($_POST['email'])) { | |
// Insert your PostCoder Web API Key here | |
// Sign up for free at www.alliescomputing.com/postcoder/sign-up | |
$pcw_api_key = "YOUR-API-KEY-HERE"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Insert your PostCoder Web API Key here | |
// Sign up for free at www.alliescomputing.com/postcoder/sign-up | |
$pcw_api_key = "YOUR-API-KEY-HERE"; | |
// URL we are calling with API key and url encoded postcode | |
$pcw_country_url = "http://ws.postcoder.com/pcw/". $pcw_api_key ."/country"; | |
// Get and JSON decode the response from the service |
OlderNewer