Guessing: you have reached an API limit on the server side that looks
the account after a certain amount of api activity in a certain amount
of time.....
Someone from the apps team will probably be able to clarify
Frank Mantek
Google
On Nov 26, 2008, at 8:13 PM, NCCFred wrote:
>
> Hello,
>
> I’ve been working with the .NET Google API for several weeks
> developing a front end application for Administration of our new
> student email. I have made great success using the API.
>
> Today I came across a situation that confused me with the DeleteUser
> function. My application reads in a text file of usernames into an
> Array. I then use a for loop and access the data in the ArrayList. I
> pass this String to the DeleteUser Function and for some strange
> reason ALWAYS receive a “CaptchaRequiredException” error on the 201st
> record. The data is clean and contains no errors.
>
> I was thinking a possible time-out value is reached, but looking at
> time between the first record (1:05:54) and the 200th record (1:13:15)
> seems to have no significant pattern to me.
>
> Does anyone have any idea why I would always be getting a
> CaptchaRequiredException error on the 201st record every time? Does
> the token expire? The DeleteUser function returns VOID so I really
> don’t have anything to go on except my Print out on the “Output” and
> by refreshing the Google Administrators Console for our domain.
>
> Here’s a sample of the code below.
>
>
> ArrayList CreateList = new ArrayList(); // Holds the User Names
>
> AppsService service = new AppsService(DOMAIN, USERNAME, PASSWORD);
>
> for( int i=0; i < CreateList.Length; i++)
> {
> service.DeleteUser( CreateList[i].ToString() );
>
> System.Console.WriteLine(“Deleted “ + CreateList[0].ToString() + “
> Record # “ + i);
>
> }
>
>
> Any help is apperciated, thanks.
> Fred
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Apps APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-apps-apis?hl=en
-~----------~----~----~----~------~----~------~--~---