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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> | |
<title>Email validation demo</title> | |
<!-- Bootstrap --> |
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 2015 | |
This demo shows how to perform an address lookup in Node JS. | |
*/ | |
var https = require('https'); | |
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
var https = require('https'); | |
// This is a test API Key which works for the postcode NR14 7PZ | |
// Get your API Key from www.alliescomputing.com/postcoder/sign-up | |
var api_key = 'PCW45-12345-12345-1234X'; | |
var postcode = 'NR147PZ'; | |
var headers = { | |
'Content-Type': 'application/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
<?php | |
// Token from slack slash command set up | |
$token = "YOUR TOKEN"; | |
// API key for PostCoder Web | |
// Sign up for your API Key at www.alliescomputing.com/postcoder/sign-up | |
// or use PCW45-12345-12345-1234X, which works with the postcode NR14 7PZ only | |
$key = "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 |
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 | |
// 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
# 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
# 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' |
NewerOlder