Skip to main content
Participant
May 7, 2013
Answered

Using the API to Login and Create User

  • May 7, 2013
  • 1 reply
  • 3801 views

I currently only have the trial for Adobe Connect, but I have seen on another discussion that I should have full API funcionality.  I'm having trouble with logging in as an administrator and creating a user.  My response xml does not match what the documentation says I should be getting.  When I try to log in I get status code="ok", but when I try to create a new user I get status code no-access.  This user however is an Administrator.

Call #1:

https://meetxxxxxxxx.adobeconnect.com/api/xml?domain=meetxxxxxxxx.adobeconnect.com&action=common-info

Result:

<?xml version="1.0" encoding="utf-8"?>

<results><status code="ok"/><common locale="en" time-zone-id="85" time-zone-java-id="UTC"><cookie>na8breez8mky3nb7tvvda8tn</cookie><date>2013-05-07T00:35:27.610+00:00</date><host>https://meetxxxxxxxx.adobeconnect.com</host><local-host>pcpna8app04</local-host><admin-host>na8cps.adobeconnect.com</admin-host><url>/api/xml?domain=meetxxxxxxxx.adobeconnect.com&action=common-info</url><version>9.0.4</version><tos-version>7.5</tos-version><product-notification>true</product-notification><account account-id="xxxxxxxxxx"/></common><reg-user><is-reg-user>false</is-reg-user></reg-user></results>

Call #2:

https://meetxxxxxxxx.adobeconnect.com/api/xml?domain=meetxxxxxxxx.adobeconnect.com&session=na8breez8mky3nb7tvvda8tn&action=login&login=admin%40test.com&password=mypw123

Result:

<?xml version="1.0" encoding="utf-8"?>

<results><status code="ok"/></results>

Call #3:

https://meetxxxxxxxx.adobeconnect.com/api/xml?domain=meetxxxxxxxx.adobeconnect.com&session=na8breez8mky3nb7tvvda8tn&action=principal-update&first-name=newUser&last-name=-&login=newUser%test.com&password=test1234&type=user&send-email=false&has-children=0&email=newUser%test.com

Result:

<?xml version="1.0" encoding="utf-8"?>

<results><status code="no-access" subcode="no-login"/></results>

This topic has been closed for replies.
Correct answer Jorma_at_Knox

It looks like you are doing things out of order. You should start with the login call (call #2) and then use the common-info call (call #1) to get your session cookie id. It may be that you are using an invalid session cookie from before you logged in.

Also, you have a lot of extra stuff going on in your calls. You don't need the domain=xxx value. The documentation here (http://help.adobe.com/en_US/connect/9.0/webservices/WS5b3ccc516d4fbf351e63e3d11a171ddf77-7ff5_SP1.html) explains it clearly.

1 reply

Jorma_at_Knox
Jorma_at_KnoxCorrect answer
Legend
May 7, 2013

It looks like you are doing things out of order. You should start with the login call (call #2) and then use the common-info call (call #1) to get your session cookie id. It may be that you are using an invalid session cookie from before you logged in.

Also, you have a lot of extra stuff going on in your calls. You don't need the domain=xxx value. The documentation here (http://help.adobe.com/en_US/connect/9.0/webservices/WS5b3ccc516d4fbf351e63e3d11a171ddf77-7ff5_SP1.html) explains it clearly.

Participant
May 7, 2013

THANK YOU!

From the documentation I thought I needed to do the "Log in to a Adobe Connect hosted account" section.   And also, i tried the "Log in using the session parameter" thinking I don't need to manage the cookie from the response header.  It also didn't help that a customer service rep told me that not all api functions are available to hosted accounts.  (he just emailed me back today saying he misspoke).

I ended up following "Log in with cookie management" and it works!

Thank you again!