Here is the link to the SharePoint Developers Guide for SharePoint Online.

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=4387e030-73dc-48e7-ac95-abc043b9335a