This project is not covered by Drupal’s security advisory policy.
Provides integration with the SmartyStreets.com LiveAddress API. This module includes the following features:
- Registers the "liveaddress" Javascript library with drupal using
hook_library() - Provides an admin form to enter SmartyStreets.com secret auth token
- Optionally logs requests and responses from SmartyStreets.com server in the watchdog log
- Provides a function
smartystreets_liveaddress_api_call($location)to invoke the address verification API on a location string - Provides a function
smartystreets_generate_hash($result_obj)to generate an MD5 hash based on a verified address
Usage examples:
// Verify my address
$result = smartystreets_liveaddress_api_call('123 Main Street, Sacramento, CA');
// Generate a hash
$hash = smartystreets_generate_hash($result[0]);
Why is there a method for generating a hash?
If you are validating addresses and storing them, this hash serves as a unique lookup key for every validated address. This will help you as a developer to prevent duplicate addresses from being stored in your database.
Project information
- Project categories: Site structure, Integrations
5 sites report using this module
- Created by noahlively on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
