Quantcast
Channel: Digital Grin Photography Forum - SmugMug APIs, Hacks & Tricks
Viewing all 147 articles
Browse latest View live

Flashback feature

$
0
0
Is there a "Flashback"-like service or feature, like the one that was offered by Everpix before it was shut down?

This was a neat feature that would email you every week or every day a random picture that you took that day 1 year ago. Its obviously more targetted to personal photo libraries - letting people have moments like "wow - I can't believe I was doing that / looking like that/ hanging out with so & so 1 year ago"...etc.

This was a feature that was part of the offering of Everpix, which was a new photo storage startup that is now going out of business. thought it would be a great feature to have for a smugmug user/account.

If it doesn't exist, I might build it myself (I'm a developer) - but wanted to check first.

Also - in which other forum category would it be appropriate to post this question? (or if I were to build it, which other forum would it be appropriate to tell everyone about it?)

accessing unlisted galleries via the API

$
0
0
Hi folks! I am looking into supporting SmugMug as one of the image server options for an application I'm building, and am wondering if there is any way to access unlisted or private albums via the API. I'm using phpSmug at present, using the oauth methodology. My users won't necessarily want their photos and videos to be findable via SmugMug itself, just via my site. Possible?

api v folders?

$
0
0
Hi,

I'm new to smugmug, and I'm trying to write some code to upload images and organise them in a way that makes sense to me.

It turns out the smugmug website has concepts of "galleries" and a hierarchy of folders, but the api has concepts of "collection" and "album". How do other people manage this dichotomy?

Do you just pretend that an "album" is the same as a "gallery" and just ignore this "folder" thing? Or do you just have one level of folder and call it a "collection"?

(Are there any photo management websites out there that actually have an api that is a first-class citizen? Is smugmug as good as it gets?)

Wesley.

Filtering and sorting in the API

$
0
0
Is there a way to filter and sort the results of the SmugMug APIs? Specifically, I'd like to be able to call smugmug.albums.get but just get the six most recently updated albums.

Right now all I see is a "LastUpdated" field that limits the number of albums by date range rather than raw number, and I can't see any way for the web service to sort the results. This is forcing me to download more data than I want to the client and then sort the results there.

Thanks for any help / ideas.

URL to custom domain, not smugmug.com?

$
0
0
I just upgraded my site to the new SmugMug and now the URL returned for a gallery is the xxxx.smugmug.com one, not the custom domain that I've configured.

Was this an intentional change? Is there any (preferably documented) way to get the custom domain URL instead?

Pulling feeds or photos using tags?

$
0
0
Hello community!

Web developer for a media company here and we're wondering if its possible -- through the SmugMug API -- to pull in feeds or photos into other sites using keyword tags?

Over the next few months, I'll be trying to become familiar with the Smug API (first API I'll have the pleasure of working with) and trying to incorporate our Smug content back on our primary media sites.

Thanks!

Album creation completely broken - please help

$
0
0
I've somehow managed to completely break creating albums with the API on my account.

The first thing I noticed was that when I created an album with the 1.2.2 API it ended up in the "Smug Preview" category, no matter what category I tried to put it in. (My SmugMug site has been unveiled; it's no longer in Preview so this category should not be used at all.)

Then I started trying to edit the Quick Settings. Doing so with the Web UI never really did what I wanted — I would set a setting, try to save it, it wouldn't save, so I did it with the API.

Now I can't create albums at *all*; I get a "system error" even with the most basic call to smugmug.albums.create, passing only a Title.

Please, help? I realize the API is unsupported, but this makes my SmugMug account unusable.

1.3.0 smugmug.albums.get - Highlight

$
0
0
From what I can tell, when doing a `smugmug.albums.get` and getting `Highlight` back, the `Type` property on it for albums that contain photos is always `Featured` even when you haven't manually set a photo to be featured for that album. I have a video-only album and that seems to come back as `Random`, but that's the only one and it could be luck of the draw.

The issue here is that sending `Featured` back on all of them causes me to do a call to `smugmug.images.getURLs` with a custom size for each album, even though the image it's giving me back is really just a random one from the album.

If I knew which highlights were truly featured, I could cut down on my requests and just generate a random photo url with `http://photos.smugmug.com/photos/random.mg?AlbumID={id}&AlbumKey={key}&Size={size}` instead.

Any tips?

Edit: Looks like I'm little too used to markdown for commenting on code. Sorry for the ticks!

SmugMug on Samsung Smart Tv

API for new SmugMug

$
0
0
Is there any info out there as to when the API for the new SmugMug will be available? When using the web site, I can see that it is using version 1.4.0 of the API, but all of us developers only get access to version 1.3.0.

Can we get access to 1.4.0? Is there a beta/pre-release program so that we can start developing against it?

Any info would be greatly appreciated.

LightboxURL isn't working

Manipulating SM RSS Feeds

$
0
0
Hello,

Does anyone know a way to limit the return on a keyword RSS feed to only pull in, say, 5 images per gallery instead of pulling in the 100 most relevant images which may, in fact, be from the same gallery?

Thanks!
-D.S.

API upload error codes?

$
0
0
Why is there no list of possible error codes for API uploads like for all the other API functions in SmugMug. Can you give me a list of possible error codes?

What I found by myself is

70: unknown video codec

If have reports from users having 64 and 61. It would be great to have some documentation on this.

OAuth Callback URL bug

$
0
0
i all,


I am building an app that I want to eventually be able to upload images to smugmug.
So I have registered my applications in my account MyPubCrawlMaps and MyWineInfo.

Thus authenticating users I use the callback URL

http://mywine-info.com/api/auth/callback?type=smugmug

So after authentication my users are re-directed back to my site. When you do the callback you make an assumption that there are no query parameters on the callback string and append

?oauth_token=c056b324f2c1b9fe850d90209b3625f1

Resulting in the following illegal URL

http://mywine-info.com/api/auth/call...0d90209b3625f1

This then breaks the code at my end.

I was hoping you could fix this small bug (if the callback contains query parameters the string you append should use '&' not '?' as the prefix).

Thanks Loki.

PS. my app is still in the very early stages of development so it it will be a while before I get to the point of photo upload. So no need to jump through hoops for me.

Access Unlisted Photos

$
0
0
I've had success using the API to get lists of public photos and albums. But there seems to be an issue when getting photos that are marked as unlisted. Using the API, is there a way to get info for unlisted images/galleries?

Thanks!

Vince

Criteria by which an Album's LastUpdated value is changed

$
0
0
Hi All,

Im using the LastUpdated value on albums to determine when an Album has been "updated" so I can requery for images, url paths, image order, etc..

Here is the issue: if a user changes the order of the images in the album, the album's updated field is not changed to reflect this... which means I am not really sure how to tell when an album's state has changed?

Does anyone know of a more reliable field to use? Reimporting every album, and every image is just not feasable for us as we update a few times per hour. Nor do I think I should be faking "album state" on my end by comparing at the individual image level.

The album should be the defacto entity to determine whether its state has changed yes? I must be missing something here...

Thanks in advance!

rodeoj

Good News Everyone! - Update on the progress of the new SmugMug API

$
0
0
Hey SmugMug API Geeks!

I bring news from the API team at SmugMug. As part of the team at SmugMug working on the new version of the API (2.0 we are calling it); I wanted to let you know that we are still very hard at work on bringing you a new and more useful way of using the SmugMug platform. I realize that it has been awhile since anyone has really chimed in with information on the new version of the API. I'd still like to give all of you some sort of status update.

We’ve been heads-down at work building you:
  • Entirely new features to make you more productive
  • A battle-tested, stable API
  • Better documentation with sample code
  • Transition documents for those of you already working with the existing API

I really cannot wait to be able to speak about the new version of the API and introduce all of its new features, but we want to make sure that the code and infrastructure have been tested as well as it could be to bring you a stable and useful platform to develop with.

I will update this thread with more details when the new API is closer to public release. Until then, we are working hard to bring you a brand-new, more productive, powerful API suitable for the future of developing with SmugMug.

We will add updates to this sticky thread so subscribe to it for the latest info on API 2.0.

How to create a subcategory?

$
0
0
I have an upload tool that uses the 1.2.2 API. It creates albums and uploads photos. For example, I've uploaded many albums in Category "unsorted", Subcategory "2013".

I used to create new Subcategories using the web interface. Now the web UI lets me create FOLDER "2014" in Category "unsorted". But .../1.2.2/?method=smugmug.subcategories.get
returns a list that does not include my new Folder/Subcategory.

I added a gallery and photo via the web interface, but the API still does not see this Folder as a Subcategory.

Is a folder at that level not a subcategory? How do I create a subcategory instead of a folder with the web interface, so the API usage will find it? I see that the 1.3.0 APIs are still "subcategory" not "folder".

Thanks,
-troy

Smugmug and ShootQ contact form integration

$
0
0
Hey fellow smugmuggers.

I am looking for some help in integrating my ShootQ contact form into my website. Does anyone know if this is possible. Right now I have the link going to the ShootQ contact form directly on the website, which is incredibly clumsy.

Please help.

Unique Folder Password for Uploading API

$
0
0
Hello!
I am trying to find a developer who can work with me and build a unique API. What I need is the ability to give a username and password to a person – that set of credentials will grant them access only to a specific folder. For example, a Pro Account would have a folder for Turtles, within that a folder for Sea Turtles, within that a folder for 2014 Sightings, and within that galleries for different locations. Ideally, these credentials would give the user access to only upload to Turtles >> Sea Turtles >> 2014 Sightings folder only. They would not be able to upload anywhere outside of that folder or edit any settings. I am aware of the unique URL for uploading to a specific gallery, but it isn’t up to the level of security I would like.

But there won’t be just one folder like this – there will be over 100.

Any suggestions, ideas?
Viewing all 147 articles
Browse latest View live