This project is read-only.
1

Closed

How to create a new Course

description

Is there a difference implementation for creating metting and course i have the following code below which working ok when create a meeting but when create a course if give internal error, here is my code :
 
StatusInfo info;
AdobeConnectSDK.AdobeConnectXmlAPI oManager = new AdobeConnectXmlAPI();
oManager.Login("myUserName", "MyPassword", out info);     // info gives (Code: ok , SessionInfo: breez627g29udq3bs7xgs, subCode: not_set)
MeetingUpdateItem oItem = new MeetingUpdateItem();
    oItem.description = "tets";
    oItem.email = "MyEmail";
    oItem.first_name = "MyFirstName";
    oItem.folder_id = "10001";
    oItem.name = "Course Name";
    oItem.sco_id = "60215";
    oItem.sco_tag = "services";
    oItem.date_begin = DateTime.Now;
    //oItem.date_end = DateTime.Now;
    oItem.last_name = "MyLastName";
     oItem.type = SCOtype.course;
 
info = oManager.CreateMeeting(oItem, out data);
 
I wonder if some one can can provide a sample code for the steps required to create course
 
thanks
Tamer
Closed Dec 22, 2012 at 9:34 PM by DmDev

comments

Billious wrote Dec 4, 2010 at 7:43 AM

I'm striking similar issues - all I'm trying to do is retrieve a list of principals. Although I can log in successfully, when I try to use GetPrincipalList, it returns nothing. When I trace it through the status comes up "no_access", apparently because the session info isn't followed through. If I could figure out how to maintain the session, I'd probably be fine.

scidec wrote Dec 18, 2010 at 3:32 PM

I don't know about courses (yet), but I had a similar problem to Billious and it all comes down to sharing the session id between requests. I have joined as a contributor so I will be able to check in my fixes.

Billious wrote Jan 19, 2011 at 6:45 AM

Thanks, scidec - your new version works a treat. I'd already figured out how to persist the session id, but hadn't got around to posting my solution here.

I'm currently working on a couple of changes that I'll probably submit. One is a modification to GetPrincipalList that allows for use of "filter-type", the other that retrieves the Principal ID of a given login. One question about GetPrincipalList - it currently allows for two parameters, group_id and filterby, yet filterby doesn't appear to be used in the HTTP request. Is this an error, or is there something I'm missing? It looks like filterby should correspond to filter-like-name in the API.

scidec wrote Feb 3, 2011 at 1:05 PM

I've checked in a fix for your GetPrincipalList not applying the filter.

For getting the principle-id from a login, could you not add &filter-login=jazz_doe to GetPrincipalList?

wrote Dec 22, 2012 at 9:34 PM

wrote Feb 14, 2013 at 12:17 AM

wrote May 16, 2013 at 7:31 AM