Example 1: Display your events:
Here is an example: Check out the Ten Pound Fiddle's home page.
This calendar is fully automatic - the web master no longer has to maintain it - the booking manager simply logs in to Publicdrum and enters or revises the event data. The rest is magic (almost)! Show me how...
Lets say you have entered a few events into Publicdrum and want to display them. You do this by telling the data base what data you want - how to display it.
Easiest way is a link
A link can be used almost anywhere - a blog, social network site, email or my own website.
For example, lets say I was user #1. The link to display the events I have entered would be:
http://suapi2.org/api/1/o/tcc/
The key is the user ID ( the /1/ part) and how to display the data ( /tcc/ puts the data into our basic tabular calendar).
A link is nice...
but you can also display the calendar right on a page by enclosing it in an 'i frame'.
Here is the actual code that builds the Ten Pound Fiddle calendar - it gets the data, builds the calendar even sets a background color:
<iframe src="http://suapi2.org/api/1/o/tcc/options:p=c&detail=4&bg=D1A938" width="650px" height="605px"> </iframe>
Try it - copy this code and paste it onto a web page. It will give you our basic calendar displaying the events of user #1 (The Ten Pound Fiddle).
Obviously you will want to display YOUR events, just change the /1/ (in the 'src' line) to your (or any other) user ID. Likewise, If you don't like the way the data is displayed, there are several other calendar available that may fit your needs better.
Another cool thing about an automatic calendars: they refresh each time it is viewed - any change you make to your event data instantly appears everywhere that data is displayed!.
Hide example1
Example 2: Combine and display events from multiple users:
The example 1 displays the events entered by one user - but you can also combine (aggregate) the event data from any number of users.
Have a look at Michigan Folk Live's concert calendar. Again fully automatic - any time anyone changes an event at Publicdrum - it instantly updates here. Show me how...
Steve (the owner of Michign Folk Live) simply put this link on his site:
http://suapi2.org/w1.php?wid=2&s=s4&p=m
That's it - even simpler than the previous example!
Steve controls who's events will apear on his calendar by logging into Publicdrum and putting a check by the ones he wants. Beyond that, everything goes on with out any intervention on his part.
Hide example2
Example 3: Getting the data and building your own calendar:
We can also provide just the data - so if you are handy, you can build exactly the calendar you want. Check out AACTMAD's event calendar, combining the events from dozens of groups in Michigan. Show me how...
Their web page requests their aggregated data as JSON data - and Robert uses Java Script to display it. (Hint: simply look at the page's source code to see how he did it).
He also does something cool - he uses a filter on his data. His calendar does not display all events his users have entered - only those classed as 'dance'. The database permits all sorts of options - you can get pretty much anything you want.
Hide example 3
Example 4: Use your event information in Word, Dreamweaver - any application:
You can copy the event you've entered for use in any other application - no need to ever type it again! Show me how...
Lets say you wanted to make a word document listing your events. Simple, use this link to extract them as html - then cut and paste into any application.
http://suapi2.org/api/1/o/html/
You can get them as text, html, xml, rss, json or ical.
Hide example 4
Hide all examples |