For starters, get the WSS (and SPS if you're using that) SDKs from the MSDN
site. There's lots of code examples. The Web services interface is much more
limited, but allows client apps to run on non-SharePoint servers. In most
cases, other than returning list data, I find the object model more useful.