Activity Feed
- Got a Like for Re: Kicking someone out of a canvas course. 08-06-2020 01:58 AM
- Got a Like for Re: Kicking someone out of a canvas course. 08-06-2020 01:58 AM
- Got a Like for Re: Kicking someone out of a canvas course. 08-06-2020 01:58 AM
- Got a Like for Re: Kicking someone out of a canvas course. 08-06-2020 01:58 AM
- Got a Like for Re: Changing a course description, for example, not working. 08-06-2020 01:58 AM
- Got a Like for Re: All thing API. 03-15-2017 11:07 AM
- Got a Like for Re: All thing API. 03-15-2017 03:31 AM
- Posted Re: All thing API on Canvas Developers Group. 03-14-2017 10:28 PM
- Got a Like for Re: All thing API. 03-14-2017 07:55 PM
- Got a Like for Re: All thing API. 01-11-2017 03:46 AM
- Got a Like for Re: All thing API. 01-11-2017 03:46 AM
- Posted Re: All thing API on Canvas Developers Group. 01-10-2017 08:59 PM
- Liked All things API for scottdennis. 01-10-2017 07:54 PM
- Liked Re: All thing API for themidiman. 01-10-2017 07:54 PM
- Posted Re: All thing API on Canvas Developers Group. 01-10-2017 05:06 PM
- Liked [Gradebook] Display Default Email in Gradebook and Speedgrader for rake_9. 01-03-2017 05:24 PM
- Liked Display Default Email in People for rake_9. 01-03-2017 05:23 PM
- Got a Like for Re: All thing API. 10-18-2016 10:16 AM
- Got a Like for Re: All thing API. 10-18-2016 09:44 AM
- Got a Like for Re: All thing API. 10-18-2016 09:28 AM
My Posts
Post Details | Date Published | Views | Likes |
---|---|---|---|
batch_mode not working as expected I am trying some batch sis_import tests and am sending batch_mode=true and that is reflected in the sis_import object returned. But I am getting numerous warnings of the form: "user A has already ... |
01-22-2016 |
708 |
0 |
Changing a course description, for example, not working I am able to get the course information via a cUrl call to https://ourcampus.instructure.com/api/v1/courses/sis_course_id:jonstest1 However the 'public_description' is not in that returned docum... |
10-29-2015 |
865 |
2 |
03-14-2017
10:28 PM
2 Likes
If you are using an SIS_ID, and since they are unique, it makes more sense for the middleware to target a user, not search for one: /api/v1/users/sis_user_id:simon.j.taylor@gmail.com .... ... if that is an option for you.
... View more
01-10-2017
08:59 PM
1 Like
Thanks for the reply and thatv ery reasonable guess. The test course was indeed not published but after deleting the enrollment, publishing the course and retrying the api call again, still no email. I also created a new course (different sis_id), published it, and enrolled same user in it, in case there was any kind of object conflict with the old enrollment... and still no email arrives and nothing in Spam folder
... View more
01-10-2017
05:06 PM
1 Like
I am trying to get a email notification sent for an enrollment invitation and the email never gets sent. Sending a message to the same user via the ui widget works fine. Can anyone tell what I am missing? Appreciate your looking. curl https://server.edu/api/v1/courses/sis_course_id:autoenrollmenttest1/enrollments \ -X POST \ -F 'enrollment[user_id]=sis_user_id:jpg_goog' \ -F 'enrollment[type]=ObserverEnrollment' \ -F 'enrollment[enrollment_state]=invited' \ -F 'enrollment[notify]=true' \ -H "Authorization: Bearer `cat ~/canvas/tokens/sis@canvas`" The enrollment get created: { "associated_user_id": null, "course_id": 133067, "course_integration_id": null, "course_section_id": 127851, "created_at": "2017-01-11T00:02:23Z", "end_at": null, "enrollment_state": "creation_pending", "html_url": "https://server.edu/courses/133067/users/123989", "id": 687239, "last_activity_at": null, "limit_privileges_to_course_section": false, "role": "ObserverEnrollment", "role_id": 8, "root_account_id": 1, "section_integration_id": null, "sis_account_id": null, "sis_course_id": "autoenrollmenttest1", "sis_import_id": null, "sis_section_id": null, "sis_user_id": "jpg_goog", "start_at": null, "total_activity_time": 0, "type": "ObserverEnrollment", "updated_at": "2017-01-11T00:02:23Z", "user_id": 123989 }
... View more
10-13-2016
08:23 PM
4 Likes
@lorne_olfman This is one way: export PYTHONIOENCODING=utf8; curl -s https\://<server.your.domain>/api/v1/users/self?access_token=<user's_token> | \ python -c "import sys, json; print json.load(sys.stdin)['id']"
... View more
04-27-2016
01:52 PM
2 Likes
Stan, That url path doesn't look right... looks like your are PUT'ing to the api playground location in docs should be '/api/v1/courses....' afaik
... View more
04-14-2016
01:47 PM
3 Likes
@dstraayer I've been using this: https://github.com/kajigga/canvas-contrib/tree/master/SIS_Integration/java/basic_example The sis import API interaction is in SISImport.java. I forked and copied the classes involved, made some mod's to the config class etc. But for the most part kept it intact. It's only one API interaction example, but hope that helps Jon
... View more
02-25-2016
02:24 PM
2 Likes
nevermind... is see you've considered that elsewhere here. And thanks to the link you provided I can see status is not a sticky field
... View more
02-25-2016
02:22 PM
2 Likes
Oh, what you see doesn't necessarily imply batchmode, it's adding the user again (as you say below) *because* it can't find them by sis_id yeah, ic now. Have you tried selecting 'Conclude this enrollment' and having imports use override_sis_stickiness=false ? I don't know yet if the status field is one of those fields that stickiness can apply to....
... View more
02-25-2016
01:32 PM
1 Like
I see. You must be using batchmode then as Anthony Bunag says below.
... View more
02-25-2016
12:43 PM
2 Likes
If you have the ability to see and edit sis information in the UI, you could remove the 'sis id' under the user's panel in People. Select 'More user details...' and edit "login Information"
... View more
02-01-2016
01:35 PM
1 Like
Looking thru the source... makes me think that the 'claimed' status is used to indicate a course that has just been undeleted.
... View more
01-22-2016
06:35 PM
I am trying some batch sis_import tests and am sending batch_mode=true and that is reflected in the sis_import object returned. But I am getting numerous warnings of the form: "user A has already claimed B's requested login information, skipping" A is an older representation of an sis_user_id and B is the newer one. I expected batch_mode to remove all the previously imported users. Can you help adjust my expectations (subquestion: is there any way to get a full list of warnings.... the array of pairs stops at some point and says something like 'there are 5 zillion more')
... View more
Labels
- Labels:
-
Open API
10-30-2015
05:30 PM
3 Likes
Answering my own question once again. 😕 1) despite the implication of not having 'optional' in comments next it it in the Course object description, public_description needs to be explicitly requested in the GET call by adding the parameter key-value pair: include[]=public_description 2) once again I hit the wrong server for the PUT.... description gets updated just fine.
... View more
10-29-2015
04:36 PM
2 Likes
I am able to get the course information via a cUrl call to https://ourcampus.instructure.com/api/v1/courses/sis_course_id:jonstest1 However the 'public_description' is not in that returned document as this says it should: Courses - Canvas LMS REST API Documentation I have a description in the 'Description box' in Settings for the course. Also, if I try to change that value: curl https:/ourcampus.instructure.com/api/v1/courses/sis_course_id:jonstest1 -d 'course[public_description]=This is the new descripton' -X PUT -H 'Authorization: Bearer REDACTED' I get {"errors":[{"message":"The specified resource does not exist."}],"error_report_id":(a number)} ( also tried with the internal course id: same result) Do I have to include all the course properties in the update as if I were creating a new course? And if so, how do I update only one of them, if all of them are not returned by a get, without having an indedendent record of the values? Thanks for reading
... View more
09-03-2015
03:32 PM
4 Likes
My tidbit is ... I've been using curl to call the api's when trying things out and the python json.tool module is very useful in that it formats the call results: curl -v "https://canvas.test.instructure.com/api/v1/users/self/activity_stream \ -H "Authorization: Bearer `cat sis@canvas`" | pyhton -mjson.tool If the result is json it is nice formatted: not all on one line.
... View more