SharePoint SPAPI HowTO

About SPAPI javascript library
SPAPI javascript library was written by Darren. It calls Sharepoint 2007's asmx webservices. You can literally do everything with this library.

Downloading SPAPI
The original author's site seems to be down, i have uploaded the code into my git repository, feel free to get it from here. If you do not have git, you can download it as compressed tarball from here

Deploying and linking SPAPI
Open share point designer and upload the downloaded javascript files in your website. Normally custom sharepoint pages are placed under "Pages" directory. Let us assume that you have upload the javascript libraries to a directory named "js" outside the "Pages" directory.

Use the below code to link the library from your aspx file at the start or end of  tag.

Additional Notes

 * 1) Avoid spaces/underscores in list and field names. If you include spaces and special characters it will result in strange XML attribute names
 * 2) Always use the following to display the retrieved XML and debug