AnsweredAssumed Answered

Getting 401 when trying to use the API to access Analytics

Question asked by Ana H on Nov 1, 2017
Latest reply on Nov 1, 2017 by Peter Love

I am a complete beginner in using APIs, but I am trying to learn. I was trying to access the student activity analytics for a course I'm teaching, but I keep getting a 401 code as a return.


I have tried adding the token as part of the URL request:


And adding the header as a separate variable in the GET request

header <- "{Authorization : Bearer 1XXX0~9L1Im4w8XXXX}"

GET(url = url, header = head)


I am at a loss. Is it that analytics can only be accessed by certain users (meaning I'd have to ask for additional permissions from my IT department), or am I doing something wrong here?