Tell me more ×
SmugMug Stack Exchange is a question and answer site for SmugMug developers and end users. It's 100% free, no registration required.

I'm trying to get a link to a user's profile, and they have already authenticated my application via OAuth, but the API endpoint 'smugmug.users.getInfo' requires a NickName argument, which it seems to respect instead of the oauth token with which the request was signed.

So the effect is that if I make a request with a NickName that does not match the OAuth credentials, the response refers to the given NickName.

Is there a way to get a user's NickName from an oauth token or another endpoint to request information about the currently-authenticated user?

(At the very worst, I'd just like a link to their profile on SmugMug.)

Thanks!

share|improve this question

2 Answers

I don't think what you ask is possible with current API, but I may be corrected. It also seem somewhat shady, like you are attempting to force users of your application to accept you making an inventory of them. In my (humble) opinion, there are very few justifiable cases where covert or forced registration or "call home" functions may be used. Even "just to build a page of links to show off your work in action". Although you will not be the first or last to do so, I'd like to discourage you from it on ethical grounds.

Why not just ask them kindly to leave a link to their site as they download your app? If you ask for an e-mail address too, you can push info about new versions and the like as well, solely to interested parties.

share|improve this answer

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.