开发者

Google Contacts API - issue in getting birthday

开发者 https://www.devze.com 2023-03-21 18:53 出处:网络
Am able to get google contacts from https://www.google.com/m8/feeds/contacts/default/full but not the birthday.

Am able to get google contacts from https://www.google.com/m8/feeds/contacts/default/full

but not the birthday.

What should i do to get the birthday, do i need to provide an开发者_开发技巧y special permission or any other query url ?

Please help...

Thanks in advance


I have been using the Google data provider and believe it’s the easiest way to achieve the behavior you are looking for. It’s basically a third party tool that allows to connect and access data just as you would access any traditional database. After having configured it, selecting the birthday is as simple as querying the Contacts table:

GoogleConnection connection = new GoogleConnection(connectionString);

GoogleCommand cmd = new GoogleCommand(
    "SELECT Birthday FROM Contacts where Contacts.Birthday >= @date", 
    connection);
cmd.Parameters.Add(new GoogleParameter("date", "4/3/1997"));

GoogleDataReader gdr = cmd.ExecuteReader();
while (gdr.Read())
{
    //any code
}

I’ve found this a lot easier than other methods. This is the link to their site: Google Data Provider

0

精彩评论

暂无评论...
验证码 换一张
取 消