I'd be grateful for some help with a couple of questions on the Survey Monkey API;
Using the API console, I've entered a valid survey number and back got a list of collectors. Is there also an API call to get information about each of the collectors ?
Is possible through the API to determine if a survey has been closed ?
Is possible through the API to determine if a reponse has been completed ?
Many thanks.
With the list of collectors, you can get details about the type and the status of the collector (open/close). Please see the above link for a list of optional response fields. Once you have the collector_id, you can pass that to get_respondent_list, which will give you details for the respondents AND only those collectors.
From that same get_collector routine, you can see if the collector is open or closed. It is an option return field called 'data.collectors[_].open'
Using get_respondent_list][4] you can pass those respondent IDs to get_responses. Usually the response is recorded if the respondent completes the page or the entire survey.
Related
I am using Graph API to extract all the incidents and advisories from Microsoft but I encounter some issues, and I will be very happy if you can help me.
I am using the GET Method using the URL
https://graph.microsoft.com/v1.0/admin/serviceAnnouncement/issues but in the output, I can see that not all incidents are present, and I can see that there is present pagination in the output https://graph.microsoft.com/v1.0/admin/serviceAnnouncement/issues?$skip=100, can you guys help me how I should filter this to extract all the incidents from the API?
You'll need to make multiple calls until the response provides no further link for you to retrieve further records.
https://learn.microsoft.com/en-us/graph/paging
As is described in the above documentation ...
You can retrieve the next page of results by sending the URL value of the #odata.nextLink property to Microsoft Graph.
As previously stated, once you have reached the last page, you will no longer have a nextLink value to retrieve the next page.
This question already has an answer here:
Where is facsimileTelephoneNumber for User in Microsoft Graph?
(1 answer)
Closed 5 years ago.
I'm using Microsoft Graph API to query for user data. I've succesfully obtained access token and simple queries such as https://graph.microsoft.com/beta/me work just fine.
The problem is that the query's response is missing attributes such as fax which is very important for me. Using the old https://graph.windows.net endpoint returns facsimileTelephoneNumber attribute (which is the same) but I cannot use this older endpoint.
I've tried following https://github.com/microsoftgraph/microsoft-graph-docs/issues/2151 answer (3rd message) but I can't get the extensions working and I don't even know if it would have any help to this problem.
So is it possible to access fax attribute using the newer Microsoft Graph API?
The GitHub answer you linked to was in regards to a personal contact, not users in the Active Directory. So to save you some frustration, that isn't the way forward :).
When you query for /me, you're getting the user's entry from Active Directory. This is a user resource in Graph. From the reference, the user resource has no property that exposes a fax number. Just to make sure the docs weren't incorrect, I checked the metadata exposed by the service (GET https://graph.microsoft.com/beta/$metadata), and there is no fax field on a user.
There's a request on UserVoice (https://officespdev.uservoice.com/forums/224641-feature-requests-and-feedback/suggestions/18166054-microsoft-graph-api-user-fax-number) already to add this, you may want to go vote that up.
The Graph doesn't expose all of these fields.
try using https://developer.microsoft.com/en-us/graph/docs/concepts/query_parameters
I think in your case this will work
https://graph.microsoft.com/v1.0/me?$select=fax
If you want more properties of the user resource you can add them as comma separated values after the select query parameter.
I am just starting converting an existing app from SurveyMonkey v2 API to v3.
I found the example response on the developer website for getting a survey list was incorrect - when I get a survey list it just contains ID, Title and URL for each survey. It would be good if that could be corrected for the benefit of others.
My app needs the survey list so that it can present the user with a list of the surveys they have access to, and my current version shows date_modified, number of responses and number of questions.
All of this information was available in a single call in v2 API but in v3 we seem to have to go on to do a call for each survey individually in order to get the date_modified and number of questions information and a further call to get the number of responses.
Thus the v3 API is much less efficient at giving us what we need than v2 was.
Is it possible that the V3 survey list could be enhanced to contain that additional information?
The docs need to be updated.
/v3/surveys?api_key=API_KEY&include=response_count,date_created,date_modified,language,question_count,analyze_url,preview
/v3/surveys/SURVEY_ID/collectors?api_key=API_KEY&include=type,status,response_count,date_created,date_modified,url
I'm trying to get the results from a survey through the API, I know I need a list of respondents Ids and the survey ID. When I use the getResponses method I get the results but all the questions and answers come in numbers (Ids) except the questions with open answers (text). How can I bring the actual questions and answers from an API request?
Thanks
You need to combine the information received in get_responses with the survey structure retrieved with get_survey_details.
Note I believe there is an outstanding issue where if questions are deleted from the survey they will no longer be in the get_survey_details response.
I've put out a survey and gotten >100 responses. However, when I get the survey details using the api (i'm using python if it helps), then get the responses from respondents, I find a question in the response that is not present in the survey details.
I thought that the responses would only have question id's that were present in the survey details -- so I'm not sure what is going on.
Any help/advice?