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

OAuth, Callback Url and Windows8

$
0
0
HI,

I am trying to create a windows 8 application that connect to smugmug but i am having some issues with the OAuth stuff.

I am able to request the token then i am redirected to the smugmug login page . i am able to successfully login into smugmug but then nothing happens. i am not able to go back to my application.

I would like to know what should be the value of Callback URL ( In Account Settings / Discovery / API Keys / Callback URL). I actually try with a link like this one ms-app//xxxxx and it was working fine but i am wondering if xxxx is specific to an application on every computer

Thanks for the info

smugmug.subcategories.rename documentation

$
0
0
The documentation for smugmug.subcategories.rename seems to be off. It states that it returns an empty response, but that it also can take the a parameter of Extras. I assume it is incorrect, just not sure in which direction.

Code 18: Invalid API key

$
0
0
I'm able to smugmug.login.withHash using UserID, PasswordHash, and APIkey successfully.
Then I try to smugmug.albums.get with the same APIkey and the new SessionID - but get code 18 - Invalid API key
Even the smugmug.logout that runs after that gets code 18 - Invalid API key - even though the API key is not a required argument.

Anyone have any idea how it's possible that I can login but get complaints about the same API key I used to login?

Bill

Search Option?

$
0
0
Is there a search option for a particular file name in smugmug websites? Unfortunately, my daughter was moving some files around and lost some on me in my vast collection of galleries.
Thank You!
Michelle

API request for iOS

$
0
0
Hi,

I want to replicate SmugWallet for iOS. How can I go about doing this?

I only want to do this because some change in the API has apparently rendered SmugWallet incapable of downloading images after a certain date. This behavior persists after the app is deleted and replaced on my phone, so there must be some kind of internal change preventing an update. The functionality on the app is fairly simple-- download everything in a user's site, store it 'reasonably', and then display in a grid view.

I have some other ideas as well, but this seems like a reasonable place to start. How can I begin?

Getting Extra Image information in Response from Upload

$
0
0
I have noticed that for a few images when I upload images using the API that apparently SmugMug does some modification to the files, thus changing the MD5Sum of the image. This causes a problem for my library, as I try to prevent uploading duplicate images.

The current solution is to to call smugmug.images.getInfo after the upload is complete and compare teh MD5Sum there with the one I calculated before hand. If they are different I can at least tell the caller, or maybe even download it from SmugMug overwriting the original.

What I would like, is if the response from the upload included the MD5Sum of the image on SmugMug along with the URL to download the file. This would allow me to not have to do a second api call (which adds up when you are doing this for tons of images).

For more a previous discussion of this issue see this thread.

Adsense on smugmug

$
0
0
I am looking to get the most of my Google Adsesne ads on Smugmug. I am currently running 2 banner ads. One in my header, and one in my footer. The problem is that the header and footer do not refresh with each photo click. Therefore, the ads are not rotating with each photo click. Is there a way to get the entire page to refresh with each photo click?

Automate keywords

$
0
0
I need to automate the keywording of video files after they are uploaded to smugmug. Unfortunately I have no experience with the smugmug API and have no idea where to start. My coding skills are also a little rusty! Any direction would be greatly appreciate.

Here is the just of what we need to do - We use smugmug to store video files.
It is important for us to add keywords to each file in order to indicate who
is in each clip. Each clip is uploaded with a file name and Smugmug puts this
file name into the keywords. However we need to add additional keywords after
that. The keywords are located in an excel file (but this could be in a txt
file or database). We would also like to update the caption in the same process
with data from the same spreadsheet/database. So in summary we need to find a file (either based on a file name or a keyword)
and add the correlated keywords. We create between 200 and 400 files a day
during an event and end up with between 600 and 1500 clips per event. Currently
we all sit around and cut and past which seems inefficient!

~Melissa

Bulk change position

$
0
0
Is there a bulk version of smugmug.images.changePosition, where I can feed it a list of image IDs and new positions?

Here's the API doc for it:
http://wiki.smugmug.net/display/API/...changePosition

Currently, I call changePosition for each image but after the 25th or so call, it takes longer and longer, sometimes up to 15 seconds to respond.

SmugMug Galleries on WP8 LockScreen

$
0
0
I have just released a Windows Phone 8 app that allows you to have your SmugMug galleries as the source for your Lock Screen images.

While the app isn't designed specifically for SmugMug, it takes RSS image feeds and periodically changes the Lock Screen image to a randomly chosen image from the feed. As a former SmugMug user, I made sure it worked with these galleries and hope some of you find it useful

LockShots for Windows Phone 8

Cocoa OAuth Library for Smugmug

$
0
0
Hi there,

I'm experimenting around with SmugMug's API and Cocoa. I understand that SmugMug's API uses OAuth 1.0.

Just curious, what cocoa library is every one using/recommending for Cocoa apps? Or are people writing the authentication part from scratch?

Thanks

API Defect with my Albums

$
0
0
Hello-

I am using this API

http://wiki.smugmug.net/display/API/...mug.images.get via the PHP version. I can able to get images for all my albums but two.

These two do not work:

http://photos.tableman.com/Sports/In...7167&k=ZLtsXX3

http://photos.tableman.com/Sports/Re...6164&k=q5989KK

Every other album of mine works. Most of my albums are public, so feel free to take a look and give me any ideas. I am passing in the sessionid, albumid and key. As I said, it works for all (over 15) but these two.

Any ideas?

Where is my API key?

$
0
0
Have looked everywhere within my Account settings

'and even clicked on the link provided in the email that was sent to me acknowledging that my request was approved.

But still nothing.

Map an individual image?

$
0
0
I know I can click Map It to display the location of one photo, but it opens in another tab or window, which makes a lot of extra back and forth for a viewer.

is there any method out there to display the map in someting like a javascript floating window? Is JS blocked in the Caption field?

"Download All" button hack request

$
0
0
I'm willing to pay cold hard cash to get a hack that adds a "Download All" link to each gallery in categories and sub-categories. Something like this:


This link would just do the same thing that the Download All menu item does under Tools, when browsing a gallery, for owner's only of course.

I've tried a few times to lift the right javascript out but keep getting lost in the weeds. Please PM me if you're up for making this hack!

Much appreciated-
Nimai

Smugmug mobile

$
0
0
I have this app on my Samsung Galaxy III, when I use the app, and go to a gallery on my site, Iget this.



When I click an "X" to mabye view a pic, I just get the "X".
This app used to work about 2 or 3 months ago.

Anybody else having this problem?

need help with oath upload

$
0
0
I have been trying to get image upload working (use OAuth and 1.3.0), but I can't seem to get the OAuth signature right. I'm using the same routine I use for all my other API call to generate the signature, but it's not working.

I'm not real clear on with OAth "consumer parameter"s to feed into the signature routine. For example "AlbumId" is a obvious parameter, but it's included in the header as "X-Smug-AlbumId". Is it part of the base string used to compute the OAuth signature? I've tried various combinations, but so far have not been able to get it to work.

It would be great if the error message for a failed signature reported the base string computed on the server. I've seen this on other API's and it's very useful for debugging. Don't think this compromises security at all as long as the consumer secret is not revealed.

PUT http://upload.smugmug.com/photo.jpg
Authorization: OAuth oauth_version="1.0", oauth_signature_method="HMAC-SHA1", oauth_signature="+yjUppW+BxiL7Bn8Ov433cvDeWA=", oauth_nonce="-3045406133841064550-1358093430779-6137578772474644112", oauth_signature_method="HMAC-SHA1", oauth_consumer_key="zaak261ZFPf1IHr6XbvSlCzbMwYHFv Sx", oauth_token="90960e997420cc15c09dcb8680aaa3a4", oauth_timestamp="1358093430"
X-Smug-AlbumID: 27513686
User-Agent: RockinShare 1.1
X-Smug-Version: 1.3.0
Content-Type: image/jpg
<< image/jpg (40190 bytes) >>


responseCode:200
Edge-Control: no-store
Date: Sun, 13 Jan 2013 16:11:04 GMT
Vary: Accept-Encoding
X-SmugMug-Hiring: How to love what you do: http://www.smugmug.com/jobs/
transfer-encoding: chunked
X-SmugMug-Values: 2/4 - Love your employees
Expires: Sun, 13 Jan 2013 16:11:05 GMT
Content-Type: text/xml; charset=utf-8
Connection: keep-alive
Server: Apache
X-Powered-By: SmugMug/0.9
Cache-Control: private, no-store, no-cache, max-age=1, must-revalidate
Body (parsing 1 ms)
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<rsp stat="fail">
<method>smugmug.images.upload</method>
<err code="35" msg="invalid signature"/>
</rsp>

OAuth Invalid Signature problem when parameters values contain commas

$
0
0
Hi,

I've had a tortuous time getting Image uploads working using OAuth but that's all working a treat now and I'm now back-porting the new code to the rest of my Application where I was previously using a PLAINTEXT and SSL approach.

I'm using the REST API and OAUTH signature generation and validation is working perfectly apart from when Querystring parameters (such as Extra) have comma delimited values, e.g.: Extras=Highlight,Description,MediumURL,LargeURL,Sm allURL,ThumbURL.

When I make a request with parameters like this I get an invalid signature error back. After reviewing the OAUTH escaping spec I can see that comma is a reserved character and therefore requires escaping which my code was already doing:

For example this parameter fragment:

"Extras=Highlight,Description,MediumURL,LargeURL,S mallURL,ThumbURL&method=smugmug.albums.get"

Is escaped as below - all commas changed to %2C

"Extras%3DHighlight%2CDescription%2CMediumURL%2CLa rgeURL%2CSmallURL%2CThumbURL%26method%3Dsmugmug.al bums.get"

Any ideas on what is going wrong here? If I use parameter values with no commas everything works fine so it's definitely related to the comma processing behaviour.

I was wondering if SmugMug is doing something slightly different when re-generating the hash server-side hence the signature is being reported as invalid?

Thanks in advance for any pointers :-)

Darren

Preselect entry in Buy This Photo form

Separateing Gallery Pages not working!!!

$
0
0
Hi,

My site is : www.sudarshanimage.com

I have customized it based on Fastline's HiseRise theme.

But, I like to introduce a FIND page where I like to keep Keyworks, Popular images and Recent images. Initially it worked but now after Fastline slideshow, it has gone. May be some code is interfering. I can not resolve it myself. I need your help.

When I am having www.sudarshanimage.com/find , it is going to homepage. Please help.


Here is the code I have for separating popular/recent images from category page.


/************ Separate Gallery Page ************/

.homepage #galleriesBox ,
.homepage #categoriesBox ,
.homepage #subcategoriesBox ,
.homepage #featuredBox,
.homepage #keywordsBox,
.homepage #mapBox,
.homepage #popularPhotos,
.homepage #recentPhotosBox {display: none;}

.galleries #bioBox,
.galleries #keywordsBox,
.galleries #mapBox,
.galleries #popularPhotos,
.galleries #recentPhotosBox {display: none;}

.galleries #galleriesBox ,
.galleries #categoriesBox,
.galleries #subcategoriesBox,
.galleries #featuredBox {display: block;}

.loggedIn .homepage #galleriesBox,
.loggedIn .homepage #categoriesBox,
.loggedIn .homepage #subcategoriesBox,
.loggedIn .homepage #keywordsBox,
.loggedIn .homepage #mapBox,
.loggedIn .homepage #popularPhotos,
.loggedIn .homepage #recentPhotosBox {display: block;}

/************ Find Page ************/

.keywordPage #myKeywordHeader {display: block;}

.keyword {
position: relative; width: auto; margin: 0px auto;
font-weight: normal;
font-family: "Helvetica Neue", Helvetica Neue, Helvetica, Arial, sans-serif;
color: #757575 !Important;
text-decoration: none;
}

#userKeywords {
position: relative; width: auto; margin: 0px auto;
margin-top: 10px;
padding-bottom: 10px;
text-align:justify;
}

.find #slideshowBox {display: none;}
.find #bioBox {display: none;}
.find #categoriesBox{display: none;}
.find #subcategoriesBox{display: none;}
.find #galleriesBox{display: none;}
.find #keywordsBox {display: block !important;}
.find #mapBox {display: block !important;}
.find #popularPhotos {display: block !important;}
.find #recentPhotosBox {display: block !important;}

#popularPhotosList .photo {margin-right: 1px !important; _margin-right: -1px !important;}
#mapBox #map {height:370px !important; border: 1px solid #fff !important;}


Regards,
Sud
www.sudarshanimage.com
Viewing all 147 articles
Browse latest View live