Creating Courses

34 views
Skip to first unread message

Nicholas Olinsky

unread,
Sep 7, 2016, 2:41:16 PM9/7/16
to Google Apps Manager
Suddenly I can't seem to create a course. This is the debug output. I am not seeing what my problem is.

adm-niolinsky:~ nic$ gam create course wa-hr04-6-2016


connect: (www.googleapis.com, 443)


send: 'GET /discovery/v1/apis/classroom/v1/rest HTTP/1.1\r\nHost: www.googleapis.com\r\nif-none-match: "C5oy1hgQsABtYOYIOXWcR3BgYqU/YsDe4FXJlhWXueJei0_RXQqm_4I"\r\naccept-encoding: gzip, deflate\r\nauthorization: Bearer ya29.CjBXA5l47CaikyJVFeOm82qN3B9rQIF8bogXQ4Sbeue5RRZxbrm5jo4frmsUJJMn-BQ\r\nuser-agent: GAM 3.65 - http://git.io/gam / Jay Lee <jay0lee @ gmail.com> / Python 2.7.9 final / Darwin-16.0.0-x86_64-i386-64bit x86_64 /\r\n\r\n'


reply: 'HTTP/1.1 304 Not Modified\r\n'


header: Expires: Wed, 07 Sep 2016 18:43:21 GMT


header: Date: Wed, 07 Sep 2016 18:38:21 GMT


header: Cache-Control: public, max-age=300, must-revalidate, no-transform


header: ETag: "C5oy1hgQsABtYOYIOXWcR3BgYqU/YsDe4FXJlhWXueJei0_RXQqm_4I"


header: Vary: Origin


header: Vary: X-Origin


header: Server: GSE


header: Alt-Svc: quic=":443"; ma=2592000; v="36,35,34,33,32"


ERROR: wa-hr04-6-2016 is not a valid argument for "gam create course".



Jay Lee

unread,
Sep 7, 2016, 2:50:38 PM9/7/16
to Google Apps Manager
First off, NEVER post debug output without sanitizing the Authorization: header. That "Bearer" portion is sufficient to grant anyone else permission to act against your domain for the next hour or so. Very dangerous. I'd recommend running:

gam oauth revoke

immediately.

Regarding your question, the minimal command to create a course would be:

gam create course name wa-hr04-6-2016

or you may prefer:

gam create course name wa-hr04-6-2016 alias wa-hr04-6-2016

see:


for full syntax.

Jay

--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/d10ea858-6283-4c1f-abe9-9f4c860e8293%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--

Jay

Olinsky, Nicholas

unread,
Sep 7, 2016, 2:55:10 PM9/7/16
to Google Apps Manager
Thanks

On Wed, Sep 7, 2016 at 11:50 AM, Jay Lee <jay...@gmail.com> wrote:
First off, NEVER post debug output without sanitizing the Authorization: header. That "Bearer" portion is sufficient to grant anyone else permission to act against your domain for the next hour or so. Very dangerous. I'd recommend running:

gam oauth revoke

immediately.

Regarding your question, the minimal command to create a course would be:

gam create course name wa-hr04-6-2016

or you may prefer:

gam create course name wa-hr04-6-2016 alias wa-hr04-6-2016

see:


for full syntax.

Jay

On Wed, Sep 7, 2016 at 2:41 PM Nicholas Olinsky <nicholas.olinsky@sunnysideschools.org> wrote:
Suddenly I can't seem to create a course. This is the debug output. I am not seeing what my problem is.

adm-niolinsky:~ nic$ gam create course wa-hr04-6-2016


connect: (www.googleapis.com, 443)


send: 'GET /discovery/v1/apis/classroom/v1/rest HTTP/1.1\r\nHost: www.googleapis.com\r\nif-none-match: "C5oy1hgQsABtYOYIOXWcR3BgYqU/YsDe4FXJlhWXueJei0_RXQqm_4I"\r\naccept-encoding: gzip, deflate\r\nauthorization: Bearer ya29.CjBXA5l47CaikyJVFeOm82qN3B9rQIF8bogXQ4Sbeue5RRZxbrm5jo4frmsUJJMn-BQ\r\nuser-agent: GAM 3.65 - http://git.io/gam / Jay Lee <jay0lee @ gmail.com> / Python 2.7.9 final / Darwin-16.0.0-x86_64-i386-64bit x86_64 /\r\n\r\n'


reply: 'HTTP/1.1 304 Not Modified\r\n'


header: Expires: Wed, 07 Sep 2016 18:43:21 GMT


header: Date: Wed, 07 Sep 2016 18:38:21 GMT


header: Cache-Control: public, max-age=300, must-revalidate, no-transform


header: ETag: "C5oy1hgQsABtYOYIOXWcR3BgYqU/YsDe4FXJlhWXueJei0_RXQqm_4I"


header: Vary: Origin


header: Vary: X-Origin


header: Server: GSE


header: Alt-Svc: quic=":443"; ma=2592000; v="36,35,34,33,32"


ERROR: wa-hr04-6-2016 is not a valid argument for "gam create course".



--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
--

Jay

--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Nicholas M Olinsky                              
Sunnyside School District
IS/IT Director
Phone: 509.836.8412
FAX: 509.836.8423

"Any sufficiently advanced technology is indistinguishable from magic." - Arthur C. Clarke

Sent from Google Apps for Education

Nicholas Olinsky

unread,
Sep 7, 2016, 4:10:10 PM9/7/16
to Google Apps Manager
This appears to be different than the instructions on the wiki. The way I have things set the alias is the unique identifier for the class. (wa-hr04-6-2016) the display name is more generic such as "Homeroom 4th"
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
--

Jay

Reply all
Reply to author
Forward
0 new messages