Welcome to the Sample Program in Java for the Shutterfly Open API. You can run it in one of two modes:
- From a Java command line.
- From the form below.
The two modes use the same Java source code. To view the source, download this .zip file; open it and look in the 'src' directory.
The two modes do the same things, except for one difference:
- The command-line mode uses the User Authentication API, as a pure server-to-server program would need to.
- The browser mode uses the Interactive Sign-in API, which is what a JSP (like this page) would do for user authentication. (Or else it would use the Seamless Sign-in API.)
The rest of this page is for exercising the Sample Program in its browser mode. It will be run from this JSP, hosted at Shutterfly. You may be asked to enter certain parameters; fields marked with * are required. When you press 'Go', the JSP will call Interactive Sign-in, which will redirect your browser to Shutterfly signup/signin. After you sign in (or, if you were already signed in), you will automatically see the next part of the Sample Program.