You can browse various code snippets for accessing the REST web service here. You can also download samples (Excel VBA) from here. Click an action from the left side to view the corresponding action.