0

How to get signed in user email address?

Hi,

I am using php.
I have integrated yahoo contacts api in to my website.

But my problem is- while sending invitation to users i need to mention from whom the mail was sent. (From email in headers)

I am using this query to get user email
select emails from social.profile where guid = me

Below was the output i got
Array(  [0] => Array    (      [url] => http://query.yahooapis.com/v1/yql?callback=cbfunc&format=json&q=select%20emails%20from%20social.profile%20where%20guid%20%3D%206MLYMMO5E7KTR2OLOV2TBGJJIE      [content_type] => text/javascript;charset=utf-8      [http_code] => 200      [header_size] => 261      [request_size] => 1316      [filetime] => -1      [ssl_verify_result] => 0      [redirect_count] => 0      [total_time] => 0.527717      [namelookup_time] => 0.502906      [connect_time] => 0.505381      [pretransfer_time] => 0.505431      [size_upload] => 0      [size_download] => 93      [speed_download] => 176      [speed_upload] => 0      [download_content_length] => 0      [upload_content_length] => 0      [starttransfer_time] => 0.527678      [redirect_time] => 0    )  [1] => HTTP/1.1 200 OKAccess-Control-Allow-Origin: *Cache-Control: no-cacheContent-Type: text/javascript;charset=utf-8Vary: Accept-EncodingDate: Wed, 24 Aug 2011 07:09:51 GMTServer: YTS/1.19.8Age: 1Transfer-Encoding: chunkedConnection: keep-alive  [2] => cbfunc({"query":{"count":0,"created":"2011-08-24T07:09:52Z","lang":"en-US","results":null}});)

But where when i ran this query from YQL console its giving me the correct output (including user primary email)

Can any one help me in this.

Please respond as soon as possible. This is very urgent for me.

Thanks in advance
-deepthi

by
0 Replies

Recent Posts

in Contacts