Take the 2-minute tour ×
Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. It's 100% free, no registration required.

So if a user has a StackExchange account but not an account for the specific Site, /me will return an empty items list.

Ideally in this case, my application would send them off to 'the' URL where they can create an account on that site. I don't really see a nice way of doing this, short of providing a link to ${site_url}/users/login which doesn't really feel like the best solution. Is there something better I can do?

(It's not impossible that I re-jig my app such that the user doesn't need an account, but that's not my ideal solution)

share|improve this question
    
Why don't you like sending them to site/users/login what other option are you looking for? –  Jonathan. May 22 '12 at 15:21
    
I definitely don't like the fact that I'm constructing that URL manually rather than pulling it from the API / documentation somewhere. Also I'm not really happy with the UX, as that site doesn't seem to be aware of a user's SE authentication status. Meanwhile, I don't really know what I'm looking for, other than "something better" (I realise this perhaps makes this question a bit non-constructive... :s) –  Kristian Glass May 22 '12 at 15:38
    
Well write access with accounts isn't supported with the API, and creating accounts kind of falls under that, so you are stuck with constructing the URL manually, the URL won't really change unless theres a massive overhaul of the network, which is very rare. Once the user has logged in to their OpenID the site should become aware of the SE profile. –  Jonathan. May 22 '12 at 17:39
add comment

You must log in to answer this question.

Browse other questions tagged .