Hi,
A '401' Http status code indicates unauthorized access.
Were you able to successfully authenticate as an administrator before
the 'createUser' call ?
Authentication:
$client =
Zend_Gdata_ClientLogin::getHttpClient( "[EMAIL PROTECTED]",
"password", Zend_Gdata_Gapps::AUTH_SERVICE_NAME);
$service = new Zend_Gdata_Gapps($client, "exampledomain.com" )
I also noticed a user being created in 'gmail.com' domain in the stack
trace. You can only create users in your domain by passing just the
user name to 'createUser':
$service->createUser("newuser", "familyname", "firstname",
"password",)
Also, if you could please share your source code, it would help me in
investigating it further.
-Anirudh
On Jun 10, 2:30 am, purnachender <[EMAIL PROTECTED]> wrote:
> hi
>
> i am getting following error message when i create a new user. can you
> please help me.
>
> Fatal error: Uncaught exception 'Zend_Gdata_App_HttpException' with
> message 'Expected response code 200, got 401' in /home/divi1/
> public_html/admin_coupons/Zend/Gdata/App.php:468 Stack trace: #0 /home/
> divi1/public_html/admin_coupons/Zend/Gdata/Gapps.php(207):
> Zend_Gdata_App->post(Object(Zend_Gdata_Gapps_UserEntry),
> 'https://www.goo...', NULL, NULL, NULL) #1 /home/divi1/public_html/
> admin_coupons/Zend/Gdata/App.php(663):
> Zend_Gdata_Gapps->post(Object(Zend_Gdata_Gapps_UserEntry),
> 'https://www.goo...') #2 /
>
> home/divi1/public_html/admin_coupons/Zend/Gdata/Gapps.php(511):
> Zend_Gdata_App->insertEntry(Object(Zend_Gdata_Gapps_UserEntry),
> 'https://www.goo...', 'Zend_Gdata_Gapp...') #3 /home/divi1/public_html/
> admin_coupons/Zend/Gdata/Gapps.php(665):
> Zend_Gdata_Gapps->insertUser(Object(Zend_Gdata_Gapps_UserEntry)) #4
> /home/divi1/
>
> public_html/admin_coupons/createGGAcount.php(27):
> Zend_Gdata_Gapps->createUser('[EMAIL PROTECTED]', 'dfgfgdfg', 'dfgdfgf',
> 'fghjk123',
>
> NULL, NULL) #5 {main} thrown in /home/divi1/public_html/admin_coupons/
> Zend/Gdata/App.php on line 468
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---