public array MemberUSStates()
To help you select the correct codes for the US States, we offer you the possibility to take a look at the states allowed by our system. We've put all the states allowed by our system in an XML feed:
<?php
/* URL to Sedo's API */
$baseUrl = 'https://api.sedo.com/api/v1/MemberUSStates?';
/* API function parameters */
$params = [
'output_method' => 'xml',
];
/* build request URL */
$request = $baseUrl . http_build_query($params);
/* fire API request */
$fp = @fopen($request, 'r');
/* read response line by line */
while (!@feof($fp)) {
echo fread($fp, 4096);
}
/* close the connection */
fclose($fp);
For a successful request, you will receive an XML document as response in the following format:
<?xml version="1.0" encoding="UTF-8"?>
<SEDOUSERSTATE ver="1.0">
<state iso="AL">Alabama</state>
<state iso="AK">Alaska</state>
⋮
<state iso="WI">Wisconsin</state>
<state iso="WY">Wyoming</state>
</SEDOUSERSTATE>