Bryce
Posts: 0
Joined: Thu Oct 03, 2013 6:08 am

How can I get additional parameters returned in the Login service response?

How can I get additional parameters returned (in addition to the "_id" and "sessionToken" parameters) in the 'login_service' ?

I added an additional parameter on the "Response" tab of the login_service, however this parameter is not returned in the json response. (see image attached).

I saw the same question asked by another user (https://getsatisfaction.com/apperyio/...) however the response was not satisfactory.

Please, can someone give me a very specific answer to this straight forward question.

Thanks in advance! Image

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

How can I get additional parameters returned in the Login service response?

Sorry for delay, as soon as I test it I'll update.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

How can I get additional parameters returned in the Login service response?

Hello! Response structure is defined by Rest Service and response parameters you set in editor should depend on server, not vice-versa. So if you add Response parameter, it won't affect result returned by Login service. If you need to retrieve users data from Users collection please take a look here http://docs.appery.io/documentation/b...

Jamie Steiner6905824
Posts: 0
Joined: Sun Jun 01, 2014 10:16 am

How can I get additional parameters returned in the Login service response?

Hi, I don't think this is a very useful way to do it. Below is a screen shot from the docs, and hardcoding the _id in the url as default is pretty useless unless I am missing something, or the app only has one user...

Image

Jamie Steiner6905824
Posts: 0
Joined: Sun Jun 01, 2014 10:16 am

How can I get additional parameters returned in the Login service response?

I tried that, but cant map any element of the response to a local variable. When I follow the example exactly, I get a list of all users.

Image

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

How can I get additional parameters returned in the Login service response?

Hello Jamie,

Please clarify, how have you tried to do this? Please send us screenshots of your service, its response and mapping.

Jamie Steiner6905824
Posts: 0
Joined: Sun Jun 01, 2014 10:16 am

How can I get additional parameters returned in the Login service response?

I actually have a question open on it here:
https://getsatisfaction.com/apperyio/...

I was responding here, while researching, because the solution of building the user id into the url doesn't seem very good (which, by the way, the link you provided above again tell me to do). I think your platform needs a better way to access local variables, and use them in different contexts.

Return to “Issues”