Using oauth2.0 tokens with R's httr package
问题 Problem The package httr provides CURL wrappers in R (see package documentation). I'm brand new to HTTP and APIs. My trouble is getting oauth2.0 authentication to work. I have tried various syntax specifications and get either errors or status 401. What is the correct way to use an oauth2.0 token and make a GET() request using httr ? Code Attempts # Set UP url = "https://canvas.{institution}.edu/api/v1/courses" key = "{secret_key}" # 1 GET(url, sign_oauth2.0(key)) # Error: Deprecated: supply