Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use client_credentials grant type with this library #209

Closed
abhigampa123 opened this issue Mar 17, 2021 · 2 comments
Closed

Use client_credentials grant type with this library #209

abhigampa123 opened this issue Mar 17, 2021 · 2 comments

Comments

@abhigampa123
Copy link

abhigampa123 commented Mar 17, 2021

Hello, I am only getting started to work with Qulatrics API service. I have a question regarding the authentication .

Is it possible to use client_credentials grant type using this library to authenticate Qualtrics APIs? I am able to successfully get tokens using OAuth2.0, so if there is away I can utilize this and pass it on to the functions like all_surveys(), fetch_survey() etc., that'd be great.

Thanks in advance!

@juliasilge
Copy link
Collaborator

There are two important credentials you need to authenticate with the Qualtrics API. These are your API key and institution-specific base URL.

  • The base URL you pass to the qualtRics package should either look like yourdatacenterid.qualtrics.com or like yourorganizationid.yourdatacenterid.qualtrics.com, without a scheme such as https://. The Qualtrics API documentation explains how you can find your base URL.

  • You can read about how to generate an API token in this section of the Qualtrics API documentation. The code that constructs requests currently only works with API tokens, not OAuth authentication, so building out support for that would involve some pretty significant changes to this R package.

@abhigampa123
Copy link
Author

Thank you very much for the explanation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants