smugmug.images.get API response
prima
Registered Users Posts: 1 Beginner grinner
The images.get API returns a list of photos when I try the URL in the browser. But in my code the response generated is an empty HTML page with just a body element. This issue is seen only with an album that uses a siteURL personalized for a user.
http://www.rosemariemichaels.com/Events/Grease/12138660_moqXC#865214066_dTvHJ
The rest URL for the list of images looks like this
http://api.smugmug.com/hack/rest/1.2.0/?method=smugmug.images.get&SessionID=977030cb083c18da12ac56c0bbaec859&AlbumID=12138660&AlbumKey=moqXC&APIKey=4C2A8nHjcTx5YpgFFO3Cf50hWkYII9oy&Password=thePassword
The code is
http://www.rosemariemichaels.com/Events/Grease/12138660_moqXC#865214066_dTvHJ
The rest URL for the list of images looks like this
http://api.smugmug.com/hack/rest/1.2.0/?method=smugmug.images.get&SessionID=977030cb083c18da12ac56c0bbaec859&AlbumID=12138660&AlbumKey=moqXC&APIKey=4C2A8nHjcTx5YpgFFO3Cf50hWkYII9oy&Password=thePassword
The code is
get = new GetMethod("http://api.smugmug.com/hack/rest/1.2.0/?method=smugmug.images.get&SessionID=" + getAnonymousSession() + "&AlbumID=" + albumId + "&AlbumKey=moqXC&APIKey=4C2A8nHjcTx5YpgFFO3Cf50hWkYII9oy&Password=" + auth.getSecretWord());
try {
HttpClient client = new HttpClient();
client.executeMethod(get);
InputStream in = get.getResponseBodyAsStream();try {
HttpClient client = new HttpClient();
client.executeMethod(get);
0