This project is read-only.

Getting started

Mar 15, 2008 at 7:15 PM
Edited Mar 18, 2008 at 10:01 PM
Here is what you need to do to get started:

- Create a new project in Visual Studio
- Add a reference to either the assembly you downloaded or to this project
- Add a reference to Microsoft.Xml.Schema.Linq.dll (you can download it from here: http://www.microsoft.com/downloads/details.aspx?FamilyID=a45f58cd-fcfc-439e-b735-8182775560af&displaylang=en)
- Add these 3 using directives:
using www.w3.org.Item2005.Atom;
using schemas.google.com.g.Item2005;
using System.Linq;

-Get a valid auth code from Google by calling:
feed myFeed;
CaptchaInfo captchaInfo = null;
AuthCodeCreateStatus status;
string username = "your_username";
string passwd = "your_password";
string authcode;
authcode=feed.getAuthCode(username, passwd, out status, ref captchaInfo, null);

- Add this line of code to get an instance of your feed:
int maxResults=int.MaxValue;
myFeed = feed.getContactsFeed(username, authCode, maxResults, false);

- You can now use LINQ to query your contacts like in the following statement:
var contacts = from c in myFeed.entry
select c;
Mar 19, 2008 at 9:12 PM
larsbeck,

I am unable to open the source code? I'm getting an error with the project file.

What version of Vstudio are you using?

Thanks,

Kevin
Mar 19, 2008 at 10:42 PM
Hi Kevin!

I am using Visual Studio 2008 RTM. When you download the C# Express Edition of Visual Studio 2008 you should be able to open it.

Probably you are only missing the LINQ to XSD Alpha 0.2 Refresh, which can be downloaded here: http://www.microsoft.com/downloads/details.aspx?FamilyID=a45f58cd-fcfc-439e-b735-8182775560af&displaylang=en

If that doesn't help you can open the cs files at least or download the dll instead to use it.

I would be glad if you could give me some feedback if any of the solutions worked for you.

Best regards,

Lars


KineticMedia wrote:
larsbeck,

I am unable to open the source code? I'm getting an error with the project file.

What version of Vstudio are you using?

Thanks,

Kevin