You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The response will contain the [corrected address](https://www.usps.com/business/web-tools-apis/address-information-api.pdf), or an error if not enough information was given or the address does not exists.
90
90
91
+
## Response Formatting
92
+
93
+
You can specify the format of the response by passing an optional, case-insensitive parameter to the validate method. The default format is an associative array.
94
+
95
+
```php
96
+
$address = new Address([/* address data */ ]);
97
+
98
+
$json = $address->validate('json');
99
+
$object = $address->validate('object');
100
+
$string = $address->validate('string');
101
+
```
102
+
91
103
## Contributing
92
104
93
105
Contributions are always welcomed and will receive full credit.
0 commit comments