Hot answers tagged api
12
The 9 sizes of SmugMug:
Pixels Wide Pixels High
Tiny thumbnails (-Ti) Up to 100 Up to 100
Thumbnails (-Th) Up to 150 Up to 150
Small (-S) Up to 400 Up to 300
Medium (-M) Up to 600 Up to 450
Large (-L) Up to 800 Up to 600
XLarge (-XL) Up to 1024 ...
11
The 'Extras' argument is what you should use to get specific information back from an API request, its a comma delimited list of values you're interested in. For a smugmug.albums.get request where you want to know the 'Keywords' and 'Public' value you would add the Extras argument as:
...&Extras=Keywords,Public
You can pass in any values you find in ...
11
The short answer is you shouldn't be programmatically constructing URLs. I know, I hate that answer too as it can lead to either heavy requests or lots of subsequent requests.
However (Muhahah) you can provide 'CustomSize' as an argument to smugmug.images.get and it'll return the correct URL to fetch that custom size, the argument works as ...
8
In our next version of the API, we plan on returning an ImageURL object that includes dimensions rather than just a URL string.
In the meantime, you can use the Height and Width of the original image to calculate what the dimensions of a given display copy will be based on the number of pixels on the longest size.
eg...
If I have an original portrait ...
6
I was writing up an answer that of course our API ( http://wiki.smugmug.net/display/API/Home ) provides this data on things like smugmug.images.get (Heavy - http://wiki.smugmug.net/display/API/show+1.3.0?method=smugmug.images.get ) or smugmug.images.getInfo ( http://wiki.smugmug.net/display/API/show+1.3.0?method=smugmug.images.getInfo )...
But we don't.
...
5
There isn't a dedicated API or standard URL for this currently. But there is an undocumented hack using Extras parameter on any response that returns a User object (including Friend or Family).
Adding &Extras=BioImage,SmallURL to your request will return the info you are looking for...
{
"stat": "ok",
"method": "smugmug.users.getInfo",
"User": {
...
5
With our OAuth implementation, we give our users a level of control over what apps have access to.
The control is split into two parts Access and Permissions.
Access can be either Public or Full. Public access (which is the default) forces the same access as anonymous API access. Full access give full API access including accessing unlisted galleries or ...
4
Stay tuned! Our dynamo integration is being written as we speak (by me). Once complete, there will be a big, technical blog post!
In the meantime, you can learn a lot about dynamo itself from this great blog post:
Notes About Amazon DynamoDB
4
From the DynamoDB Testimonials page on SmugMug:
"DynamoDB is a truly revolutionary product which allows SmugMug to finally realize its goal of being 100% cloud-based,” said Don MacAskill, CEO of SmugMug. “I love how DynamoDB enables us to provision our desired throughput, and achieve low latency and seamless scale, even with our constantly growing ...
4
To my knowledge, there hasn't been any work done specifically integrating the two. There's no good reason why they can't have a rich integration, and there are thousands of developers using SmugMug's API, so it's possible someone is working on unpublished work.
If there's something missing in our API that would help with Drupal integration, of course, ...
4
API version 1.3.0 now returns the Status parameter for image objects. Valid values are Preprocess or Open.
http://wiki.smugmug.net/display/API/show+1.3.0?method=smugmug.images.getInfo
3
[UPDATE]
What is a good way to search on keywords using the SmugMug API?
I just stumbled across the question above and it got me to poking around with the /hack/feed.mg URL. It looks like you'll be able to search within your site and get the results back. The question above uses Type=userKeyword, which appears to only search through keywords. I was able ...
3
There currently is no way to get keyword information via the api, the only way to get keyword data is via feeds, for instance:
Today's 'awesomized' keywords:
http://www.smugmug.com/hack/feed.mg?Type=keyword&Data=awesomized&format=rss200
Or the keyword 'leica' for my account (sams)
...
3
The API for getting the albums also tells when they were last updated (See this page). So, you could get the list of albums, see if any of them have been updated at a different time than you updated them, and if so, get the information from that album. Store all of the data you need, and you can pull it up if you need to.
3
Every image has an ID and a key. ID's are somewhat predictable and numeric only (monotomically increasing as more images are uploaded). Keys are pretty random (alpha and numeric). You generally need both ID and key to access an image. A long time ago, there were only IDs, but Smugmug added keys in response to some security/privacy issues to keep people ...
2
Looking at the api documentation for smugmug.albums.comments.add and comparing it to smugmug.albums.comments.get there does not seem to be a way to post anonymous comments. It requires you to be logged in to leave a comment (which is probably a good thing).
2
One of the arguments you can pass to smugmug.images.get is the 'Password' argument which is the plaintext of the password for the album of images you're trying to access.
You can also rely on the sessionID if the user is/was logged into SmugMug via the browser, the sessionID is located in the SMSESS cookie. If you want to be slick, you can try making the ...
2
You may not have to do this via the API. Check out the share button > get a link on any photo. In the photo links tab you can find the buy link like this:
http://cmac.smugmug.com/buy/2504559_TrBCmb/131481399_ZnZmK/
and in the gallery links tab there's the batch buy link:
http://cmac.smugmug.com/buy/2504559_TrBCmb/
2504559_TrBCmb is the gallery ID and ...
2
An album is "updated" with respect to its contents, several of the album properties can be changed without invoking this. What is considered an update is not adjustable. If I remember correctly, you can even replace an image within an album without modifying "LastUpdated"
The approach actually makes a lot of sense: Say for example a user decides to rename ...
2
Yes, you can move images to a different gallery using the smugmug.images.changeSettings API method. To do it, you just specify the AlbumID of the gallery that you want to "move" the image to.
smugmug.images.changeSettings
1
According to a comment on an older API revision, the timezone used in LastUpdated is PDT (Pacific Time), which is the timezone SmugMug is located in. That seems to match with the results you received.
1
Your PHP syntax looks fine! Although it can be condensed a lot.
I'm assuming you are referring to smugmug.images.uploadFromURL (images_uploadFromURL in phpSmug)
You will have to log into SmugMug (through phpSmug) to:
Upload images
Create/rename/move/delete stuff
Add comments
And much more...
Which of the requests that can be used anonymously is not ...
1
These kinds of things can easily be done via the API. What you do is use the images.getInfo to get the URLs, and simply download the image from there.
Sharegroup is where multiple galleries are grouped together in a customized method. I have one for my Arizonan Desert photos. No albums have to have a sharegroup, but there can be multiple albums in a single ...
1
In regards to the API, that's the most recent information I could find on the subject:
Unfortunately re-arranging Albums within Categories and Sub-categories
is not possible through the API at the moment.
(link to Dgrin thread)
So unless there has been a recent addition to the API that I missed, it's not possible via the API at this point.
That ...
1
What you describe sounds indeed like the result of the automatic rotation being applied. If your camera comes with a orientation sensor, it'll still save portrait photos in the same landscape orientation and just attach the EXIF orientation tag to include what orientation the photo was taken in. Upon uploading, SmugMug automatically rotates photos lossless ...
1
You can take a look at the Java API docs which go into more details. The method seems to allow you to rearrange the photos currently in the gallery by filename, date etc.
Note that this seems to be for an older version of the SmugMug API. I'm not an API expert and haven't verified that the information in the docs linked to is actually correct.
1
You need to save the keys that smugpy receives after the first time you get redirected to the browser.
In other words, the first time, you need to:
create smugpy.SmugMug object with api_key and oauth_secret
getRequestToken()
authorize using the browser
getAccessToken()
save oauth_token et oauth_token_secret from the smugpy.SmugMug object somewhere (like ...
1
I'm not an API expert, but are you sure that you're logged in or are using the OAuth feature to get owner access to the account?
You can check the getting started section of the API for more details on what OAuth is and how to use it.
If you still have an issue, I suggest you edit your post to include a specific code exampl so that the API experts might be ...
1
SmugMug supports JPG, PNG and GIF photos. In addition, with the Power and Pro account you can also upload videos, which are converted to MP4. So these should be the file extensions you that you may encounter.
There's also the additional SmugVault service which allows you to upload any kind of file type that's usually not supported on SmugMug. I'm no expert ...
1
The API does not include buy-links as of now, so your sole option would be to fake them. This approach is somewhat discouraged however, as it might break without warning if the good chaps decide to change something... That said, the formula to create them programmatically would be something like:
For single images,
...
Only top voted, non community-wiki answers of a minimum length are eligible