Forum Discussion
OlivierS when I do the SELECT * query the author object doesn't have the email. It looks like this:
"author" : {
"type" : "user",
"id" : "3",
"href" : "/users/3",
"view_href" : "/t5/user/viewprofilepage/user-id/3",
"login" : "blah"
},
I did author.email hoping it would work because I wanted to avoid doing another query to get each authors email. Seems like I will have to...
Just a thought here ... smogger914
It might be a permission issue ... When you're using the API browser, you're logged as an administrator.
When running your JAVA code, is your user authenticated as an Admin, or has he just the API privileges?
- smogger9149 years agoGuide
That it, I wasn't authenticated in the java side. Doing the recomended oauth approach for a server to server app isn't something I wanted to do. Similar to the concerns expressed in this post. I ended up having to switch to api v1. Thanks for the help OlivierS
- smogger9149 years agoGuide
@OlivierS just found this post. According to the docs the email is accessible to annonymous users. Is this just an error in the docs or I am doing something wrong?
- OlivierS9 years agoLithium Alumni (Retired)
smogger914 the post you're mentioning is for the User resource. Your query is for the Message resource. What's weird, is that the author.email isn't documented ...
Related Content
- 12 years ago