Thanks. Then try this: $data->user->identities[0]->displayName $data->user->identities[0]->emails[0]->value You can also use var_dump() on the json_decode() response message to examine the contents. There are arrays structures so you may want to parse differently.
hey everything worked fine but i am struck with getting results i got the results usinng $data->user->date_last_login for the last login , but i am unable to get display name and email can u give me how to do that one
what i did is i again connected to api with url of http://subdomain.oneall.com/users/'$usertoken'.json and getting results same as connected in social login may be is this he problem but last login is working
Answers
There is an endpoint that will provide you this: /connections/.json, details are here: docs.oneall.com/api/resources/connections/read-connection-details/.
You need to supply some credentials to use the endpoint, see docs.oneall.com/api/basic/authentication/. This last link actually calls the connection detail endpoint.
Regards
Sure. Try:
$data->user->identity->displayName; $data->user->identity->emails[0]->value; // emails is an array of objects
Regards
Ok, maybe we're not looking at the same response message.
Which API response does your $data->user->date_last_login come from?
Thanks
and getting results same as connected in social login may be is this he problem but last login is working