AnsweredAssumed Answered

Http request error

Question asked by Nan Schutz on Jan 30, 2018
Latest reply on Feb 12, 2018 by Julian Ebeli

Hello,

I am new to Canvas and trying to get started on using the APIs. When I put a simple request in my browser, https://domain.instructure.com/api/v1/courses/ , I get the following error displayed.

SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
Could it be I am an admin and not enrolled in any courses?
I get the same error when I send this request, https://domain.instructure.com/api/v1/courses/$courseid/pages 
even though I have access to this course.
I appreciate your insights.

Outcomes