Get the HTML for an Artist Select Tag
Venue Driver provides an API method that will return HTML code for an artist select box, to be inserted directly into a web page. For example, to get a drop-down select box for all artist in Venue Driver, you might call a URL like this:
http://www.venuedriver.com/api/artists/select_tag.html?username=yourusername&password=yourpassword
You can test from the command line using the cURL utility:
curl 'http://www.venuedriver.com/api/artists/select_tag.html?username=yourusername&password=yourpassword'
It will return something like this:
<select id="artists" name="artists"><option value="1">Above & Beyond</option> <option value="2">Adventure Club</option> <option value="3">Afrojack</option> <option value="4">Alvaro</option> <option value="5">Arty</option> ... <option value="119">Oliver Heldens</option> <option value="121">OB-One</option> <option value="122">Irie</option></select>
Using that resource URL is pretty simple. In Ruby for example it looks like this:
url = "http://www.venuedriver.com/api/artists/select_tag.html?username=yourusername&password=yourpassword" artists_html = Net::HTTP.get_response(URI.parse(url))
Then you can just drop that HTML snippet into your form with <%= artists_html %>
or the equivalent in PHP or whatever. That gives you a simple way to build a form that can request a list of artists.