public static void setStory(String username, String filename) throws FileNotFoundException { boolean video = false; // TODO(liamcottle) upload video snaps from command line. // Get file File file = new File(filename); // Send and print System.out.println("Setting..."); boolean postStory = false; // set as true to make this your story as well... // TODO(samstern): User-specified time, not automatically 10 seconds boolean result = snapchat.sendStory(file, video, 10, "My Story"); if (result) { System.out.println("Set."); } else { System.out.println("Could not set."); } }