Updated source examples to latest API version