Requirement – The business ask is to verify the address of the event. Use the SmartyStreets API to verify the address & update “Location Verified” field on Event.
Must Have – Use of Error Handling and code re-usability
Outputs & Remote Site Setting:
Note 1: Required to create 3 Custom Labels for URL, AuthId and AuthToken. AuthId and AuthToken are generated from SmartyStreet website.
URL For Custom Label: https://us-street.api.smartystreets.com/street-address
SmartyStreetAPI Link https://www.smarty.com/products/apis/us-street-api
Note 2:
- SmartyStreetApi - Code Coverage is 75%
- SmartyStreetsJSON - Code Coverage is 100%
- SmartyStreetsApiCallOut - Code Coverage is 100%