I would like to share a survey via an API call (as documented here: https://api.qualtrics.com/reference#share-survey) , but I'm having trouble getting the userid of the user to share with. When I do this manually via the web interface I search for the user by email, so I thought I could use the directory contacts search (https://api.qualtrics.com/reference#directory-contacts-search), but can't get it to work at all. (Python) code is: headers = { "x-api-token": self.apiToken, "content-type": "application/json", "Accept": "application/json" } tmp = requests.get("https://{0}.qualtrics.com/API/v3/directories".format(self.dataCenter),headers=headers) directoryId = tmp.json()['result']['elements'][0]['directoryId'] sharewith='XXXX@XXXX.com' filterstr = """ { "filterType": "email", "comparison": "eq", "value": "%s" }"""%sharewith filterjson = json.loads(filterstr) data = {"filter":filterjson} tmp = requests.post("https://{0}.qualtrics.com/API/v3/directories/{1}/contac
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.