[google-apps-apis] Re: code example for a .Net solution c# class for user update

2009-01-15 Thread J T
Hi, Did you try what Archie said? You should solve the CAPTCHA challange if you are getting that error, for more information visit: http://code.google.com/apis/apps/faq.html#captcha Cheers, Julian On Thu, Jan 15, 2009 at 1:31 PM, Dino wrote: > > Not really. I thought myself that I have to ge

[google-apps-apis] Re: code example for a .Net solution c# class for user update

2009-01-15 Thread Dino
Not really. I thought myself that I have to get token, but after Julian's post I realized that client libraries are taking care of it. As Julian said you do not need to obtain a token directly if you are using one of Google client libraries. On Jan 15, 3:33 am, Archie wrote: > you have to have a

[google-apps-apis] Re: code example for a .Net solution c# class for user update

2009-01-15 Thread Archie
you have to have an authorization token of the account you are using. https://www.google.com/a/{domain}/UnlockCaptcha On Jan 15, 6:22 am, Dino wrote: > //Below is an C# example for updating user's password: > > using System; > using System.Text; > using System.IO; > using Google.GData.Apps; > us

[google-apps-apis] Re: code example for a .Net solution c# class for user update

2009-01-14 Thread Dino
//Below is an C# example for updating user's password: using System; using System.Text; using System.IO; using Google.GData.Apps; using Google.GData.Client; using Google.GData.Extensions; using System.Web; using System.Net; using System.Diagnostics; namespace GoogleProvisioning { class googl

[google-apps-apis] Re: code example for a .Net solution c# class for user update

2009-01-14 Thread Dino
Thanks Julian, I removed the method for getting Authentication Token, but now I get "Captcha required" error. This is how my code looks now: using System; using System.Text; using System.IO; using Google.GData.Apps; using Google.GData.Client; using Google.GData.Extensions; using System.Web; usin

[google-apps-apis] Re: code example for a .Net solution c# class for user update

2009-01-14 Thread Julian (Google)
Hi, You do not need to obtain a token directly if you are using one of our client libraries. The client libraries will obtain the token behind the scene and should be transparent to you. Also, please double check that you have the Provisioning API enable, and that you are using Google Apps Prem

[google-apps-apis] Re: code example for a .Net solution c# class for user update

2009-01-13 Thread Dino
I tried connecting to Google's server and getting a token, but I get an error: The remote server returned an error: (403) Forbidden. The userName, passwords, domain, adminEmail, adminPassword are hard codded. Can somebody suggest corrections to the code below: using System; using System.Text; usi