Hot answers tagged api
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 ...
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
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
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 ...
1
The link you posted doesn't require anything but the link to the page you wish to clear the cache for. So you'd just paste in your SmugMug link. There's no app ID or anything like that needed.
Note that before doing that you should check out what you have set up as your site description in the SmugMug account settings > discovery > search > homepage meta ...
1
I don't see this as being possible since the SmugMug login via the web site (or via API 1.2.2 prior to oAuth from the current API version) requires either the email address or SmugMug nickname.
And if you don't log in to an account, to retrieve information on an account via smugmug.users.getInfo requires the nickname.
1
I've been exactly there.
What I've learned is that there is a specific set of actions that invoke "LastUpdated" pretty much what I've tried to explain here
Coupled with the basic caching feature of phpSmug, I'd say you have your work cut out for you. The author of phpSmug is considering expanding it somewhat (like, pull a fresh copy to the cache in the ...
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
Same issue for me. I noticed on a smugmug gallery page the value updates to show proper position in the nav "x of 10". So either there is a way to update this or they are using some other way. I guess I'm going to add a new position value when I run through my foreach I'm currently using to build my gallery markup.
1
It sounds like you're missing the su or su (not sure which spelling is the correct one) cookie that's referenced in this thread
The su_ cookie is recent addition to assist in the prevention of
sidejacking attacks. It is returned from smugmug.login.withPassword or
smugmug.login.withHash requests.
After logging in, if you want subsequent calls ...
1
With a valid access token, smugmug.auth.checkAccessToken will return the NickName and the URL for the user. With that, you should not have to use the smugmug.users.getInfo method at all.
API Reference for smugmug.auth.checkAccessToken method
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
I took a different approach when I wanted to do the search in my site. I created a Wordpress widget that contains the following code
<form method="get" class="searchform" action="http://photos.bradfordbenn.com/search/index.mg">
<input type="text" value="Search Photos" name="searchWords" class="searchfield" onfocus="if (this.value == 'Search ...
Only top voted, non community-wiki answers of a minimum length are eligible