Hi,
Can you please help me out in implementing this API?
After going through the forum,, it seems like you have implemented it.
I would like to implement in .Net.
Thanks.
Jon wrote:
> nevermind...i got it fixed thanks for all the help.
>
> removed http:// from mydomain.com
> still didn't work
> logged out of cpanel before testing
> still didn't work
> used strong password for test
> worked.
> May have been a combo of all three things but i am up and running now
> and very happy :)
>
>
> On Aug 5, 12:32�pm, Jon <[EMAIL PROTECTED]> wrote:
> > Looking up other (400)Bad Request errors in the groups most look like
> > malformed queries.....
> >
> > From what I understood from the Google Docs on the provisioning API
> > using the Google.GData, I should format the query as follows...
> > AppsService("http://mydomain.com", "[EMAIL PROTECTED]", "mypassword")
> > CreateUser("username", "firstname", "lastname", "userpassword")
> >
> > Is this correct?
> >
> > On Aug 5, 12:17�pm, Jon <[EMAIL PROTECTED]> wrote:
> >
> > > You are correct...I was confused.
> > > However now...
> >
> > > � � � � Dim Service = New AppsService(domain, dusername, dpass)
> > > � � � � Dim myEntry As UserEntry
> >
> > > � � � � Try
> > > � � � � � � myEntry = Service.CreateUser(username, fname, lname,
> > > password)
> > > � � � � Catch ex As Exception
> > > � � � � � � � �Response.Write(ex)
> > > � � � � End Try
> >
> > > now I have a form built on the front end...the values for the
> > > username, fname, lname and password are populated:
> >
> > > �Dim fname As String = Me.firstName.Text
> > > � � � � Dim lname As String = Me.lastName.Text
> > > � � � � Dim username As String = Me.userName.Text
> > > � � � � Dim password As String = Me.passWord.Text
> >
> > > When I submit the form to test it I get:
> >
> > > Google.GData.Client.GDataRequestException: Execution of request
> > > failed:https://www.google.com/a/feeds/http://www.mydomain.com/user/2.0
> > > ---> System.Net.WebException: The remote server returned an error:
> > > (400) Bad Request. at System.Net.HttpWebRequest.GetResponse() at
> > > Google.GData.Client.GDataRequest.Execute() --- End of inner exception
> > > stack trace --- at
> > > Microsoft.VisualBasic.CompilerServices.Symbols.Container.InvokeMethod(Method
> > > TargetProcedure, Object[] Arguments, Boolean[] CopyBack, BindingFlags
> > > Flags) at
> > > Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateGet(Object
> > > Instance, Type Type, String MemberName, Object[] Arguments, String[]
> > > ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack) at
> > > _Default.submitButton_Click(Object sender, EventArgs e) in c:\inetpub
> > > \wwwroot\emailsignup\Default.aspx.vb:line 50
> >
> > > Now for the domain string in the AppService I have tried
> > > 'mydomain.com' as well as 'mail.mydomain.com'
> >
> > > On Aug 5, 11:40�am, Frank Mantek <[EMAIL PROTECTED]> wrote:
> >
> > > > Not a VB.NET expert here (last time i used VB it was not .NET yet ...)
> >
> > > > Shouldn't that line read:
> >
> > > > Dim myEntry as UserEntry
> > > > myEntry = Service.CreateUser(.....
> >
> > > > (probably possible to write this in oneline, but as i said, no vb �
> > > > spoken here....)
> >
> > > > Frank Mantek
> > > > Google
> > > > On Aug 5, 2008, at 5:15 PM, Jon wrote:
> >
> > > > > I've scoured the web looking for example cases or tutorials that could
> > > > > fix the issue i'm having. But i've come up empty handed. I am trying
> > > > > to use the provisioning API for the Google partner apps.
> >
> > > > > I've enabled the provisioning API
> > > > > I am using vb.net
> > > > > I try, as in all of the examples i've found, the following.
> >
> > > > > Imports Google.GData.Apps
> > > > > Imports Google.Gdata.Client
> > > > > Imports Google.GData.AccessControl
> > > > > Imports Google.GData.Extensions
> >
> > > > > Dim Service = New AppService(domain, dusername, passwd)
> >
> > > > > Try
> > > > > UserEntry = Service.CreateUser(username, fname, lname, password)
> > > > > Catch ex As Exception
> >
> > > > > End Try
> >
> > > > > I get a blue line under UserEntry stating "UserEntry" is a type and
> > > > > cannot be used as an expression.
> > > > > I apologize if this is simple but I am still pretty green to this
> > > > > language.
> > > > > I know that I must be formatting this wrong but I haven't been able to
> > > > > find anything to help shine some light on this for me.
> >
> > > > > Thanks in advance for the help.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---