Hi, You need to POST to https://www.google.com/a/feeds/{domain}/user/2.0 and add this on the http headers:
Content-type: application/atom+xml Authorization: GoogleLogin auth=your-authentication-token The content would be your xml. You could also try the PHP Client Library, it would help you create users without handling all the http and xml. The Information about using the Client Library: http://code.google.com/apis/apps/gdata_provisioning_api_v2.0_reference_php.html You can download the client library here: http://code.google.com/apis/apps/libraries_and_samples.html To get started I recommend to check the Sample included on the Library. Julian. On May 5, 7:11 am, zoom411030 <[EMAIL PROTECTED]> wrote: > I want to create new user account using provisioning API i have a > authentication token as well but i dont know where to use that token > in the request and how to use it.. > > this is my code, > > <?php > $QUERY ='<?xml version="1.0" encoding="UTF-8"?> > <atom:entry xmlns:atom="http://www.w3.org/2005/Atom" > xmlns:apps="http://schemas.google.com/apps/2006"> > <atom:category scheme="http://schemas.google.com/g/2005#kind" > term="http://schemas.google.com/apps/2006#user"/> > <apps:login userName="admin123" > password="xyz" suspended="false"/> > <apps:quota limit="2048"/> > <apps:name familyName="moray" givenName="shweta"/> > </atom:entry>'; > > echo $QUERY; > > and this is my authentication token : DQAAAGoAAAA.......vGjZhuBJ > > can any one spot the error.. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
