Example Java code for working with Stories using API Client