Here are some samples for using the Remote API, make sure you also visit the API Reference since not all of the methods are in those samples.