Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Side by Side Diff: discovery/googleapis/consumersurveys__v2.json

Issue 2485703002: Api-roll 42: 2016-11-08 (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « discovery/googleapis/compute__v1.json ('k') | discovery/googleapis/content__v2.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 { 1 {
2 "auth": { 2 "auth": {
3 "oauth2": { 3 "oauth2": {
4 "scopes": { 4 "scopes": {
5 "https://www.googleapis.com/auth/consumersurveys": { 5 "https://www.googleapis.com/auth/consumersurveys": {
6 "description": "View and edit your surveys and results" 6 "description": "View and edit your surveys and results"
7 }, 7 },
8 "https://www.googleapis.com/auth/consumersurveys.readonly": { 8 "https://www.googleapis.com/auth/consumersurveys.readonly": {
9 "description": "View the results for your surveys" 9 "description": "View the results for your surveys"
10 }, 10 },
11 "https://www.googleapis.com/auth/userinfo.email": { 11 "https://www.googleapis.com/auth/userinfo.email": {
12 "description": "View your email address" 12 "description": "View your email address"
13 } 13 }
14 } 14 }
15 } 15 }
16 }, 16 },
17 "basePath": "/consumersurveys/v2/", 17 "basePath": "/consumersurveys/v2/",
18 "baseUrl": "https://www.googleapis.com/consumersurveys/v2/", 18 "baseUrl": "https://www.googleapis.com/consumersurveys/v2/",
19 "batchPath": "batch", 19 "batchPath": "batch",
20 "canonicalName": "Consumer Surveys", 20 "canonicalName": "Consumer Surveys",
21 "description": "Creates and conducts surveys, lists the surveys that an auth enticated user owns, and retrieves survey results and information about specifie d surveys.", 21 "description": "Creates and conducts surveys, lists the surveys that an auth enticated user owns, and retrieves survey results and information about specifie d surveys.",
22 "discoveryVersion": "v1", 22 "discoveryVersion": "v1",
23 "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/r9HedtrzUW2pbu5XQ5oErnzKmxQ\"", 23 "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/b_vlRToZJZef44KIZeVA8YrVanY\"",
24 "icons": { 24 "icons": {
25 "x16": "http://www.google.com/images/icons/product/search-16.gif", 25 "x16": "http://www.google.com/images/icons/product/search-16.gif",
26 "x32": "http://www.google.com/images/icons/product/search-32.gif" 26 "x32": "http://www.google.com/images/icons/product/search-32.gif"
27 }, 27 },
28 "id": "consumersurveys:v2", 28 "id": "consumersurveys:v2",
29 "kind": "discovery#restDescription", 29 "kind": "discovery#restDescription",
30 "name": "consumersurveys", 30 "name": "consumersurveys",
31 "ownerDomain": "google.com", 31 "ownerDomain": "google.com",
32 "ownerName": "Google", 32 "ownerName": "Google",
33 "parameters": { 33 "parameters": {
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 "scopes": [ 159 "scopes": [
160 "https://www.googleapis.com/auth/consumersurveys", 160 "https://www.googleapis.com/auth/consumersurveys",
161 "https://www.googleapis.com/auth/userinfo.email" 161 "https://www.googleapis.com/auth/userinfo.email"
162 ] 162 ]
163 } 163 }
164 } 164 }
165 }, 165 },
166 "results": { 166 "results": {
167 "methods": { 167 "methods": {
168 "get": { 168 "get": {
169 "description": "Retrieves any survey results that have been produced so far. Results are formatted as an Excel file.", 169 "description": "Retrieves any survey results that have been produced so far. Results are formatted as an Excel file. You must add \"?alt=med ia\" to the URL as an argument to get results.",
170 "httpMethod": "GET", 170 "httpMethod": "GET",
171 "id": "consumersurveys.results.get", 171 "id": "consumersurveys.results.get",
172 "parameterOrder": [ 172 "parameterOrder": [
173 "surveyUrlId" 173 "surveyUrlId"
174 ], 174 ],
175 "parameters": { 175 "parameters": {
176 "surveyUrlId": { 176 "surveyUrlId": {
177 "description": "External URL ID for the survey.", 177 "description": "External URL ID for the survey.",
178 "location": "path", 178 "location": "path",
179 "required": true, 179 "required": true,
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 "$ref": "Survey" 365 "$ref": "Survey"
366 }, 366 },
367 "scopes": [ 367 "scopes": [
368 "https://www.googleapis.com/auth/consumersurveys", 368 "https://www.googleapis.com/auth/consumersurveys",
369 "https://www.googleapis.com/auth/userinfo.email" 369 "https://www.googleapis.com/auth/userinfo.email"
370 ] 370 ]
371 } 371 }
372 } 372 }
373 } 373 }
374 }, 374 },
375 "revision": "20160718", 375 "revision": "20161101",
376 "rootUrl": "https://www.googleapis.com/", 376 "rootUrl": "https://www.googleapis.com/",
377 "schemas": { 377 "schemas": {
378 "FieldMask": { 378 "FieldMask": {
379 "id": "FieldMask", 379 "id": "FieldMask",
380 "properties": { 380 "properties": {
381 "fields": { 381 "fields": {
382 "items": { 382 "items": {
383 "$ref": "FieldMask" 383 "$ref": "FieldMask"
384 }, 384 },
385 "type": "array" 385 "type": "array"
386 }, 386 },
387 "id": { 387 "id": {
388 "format": "int32", 388 "format": "int32",
389 "type": "integer" 389 "type": "integer"
390 } 390 }
391 }, 391 },
392 "type": "object" 392 "type": "object"
393 }, 393 },
394 "MobileAppPanel": { 394 "MobileAppPanel": {
395 "description": "Representation of an individual pre-defined panel ob ject defining a targeted audience of opinion rewards mobile app users.",
396 "id": "MobileAppPanel", 395 "id": "MobileAppPanel",
397 "properties": { 396 "properties": {
398 "country": { 397 "country": {
399 "description": "Country code for the country of the users th at the panel contains. Uses standard ISO 3166-1 2-character language codes. For instance, 'US' for the United States, and 'GB' for the United Kingdom. Any surve y created targeting this panel must also target the corresponding country.",
400 "type": "string" 398 "type": "string"
401 }, 399 },
402 "isPublicPanel": { 400 "isPublicPanel": {
403 "description": "Whether or not the panel is accessible to al l API users.",
404 "type": "boolean" 401 "type": "boolean"
405 }, 402 },
406 "language": { 403 "language": {
407 "description": "Language code that the panel can target. For instance, 'en-US'. Uses standard BCP47 language codes. See specification. Any s urvey created targeting this panel must also target the corresponding language." ,
408 "type": "string" 404 "type": "string"
409 }, 405 },
410 "mobileAppPanelId": { 406 "mobileAppPanelId": {
411 "description": "Unique panel ID string. This corresponds to the mobile_app_panel_id used in Survey Insert requests.",
412 "type": "string" 407 "type": "string"
413 }, 408 },
414 "name": { 409 "name": {
415 "description": "Human readable name of the audience panel.",
416 "type": "string" 410 "type": "string"
417 }, 411 },
418 "owners": { 412 "owners": {
419 "description": "List of email addresses for users who can ta rget members of this panel. Must contain at least the address of the user making the API call for panels that are not public. This field will be empty for publi c panels.",
420 "items": { 413 "items": {
421 "type": "string" 414 "type": "string"
422 }, 415 },
423 "type": "array" 416 "type": "array"
424 } 417 }
425 }, 418 },
426 "type": "object" 419 "type": "object"
427 }, 420 },
428 "MobileAppPanelsListResponse": { 421 "MobileAppPanelsListResponse": {
429 "id": "MobileAppPanelsListResponse", 422 "id": "MobileAppPanelsListResponse",
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 }, 477 },
485 "type": "array" 478 "type": "array"
486 }, 479 },
487 "projection": { 480 "projection": {
488 "type": "string" 481 "type": "string"
489 } 482 }
490 }, 483 },
491 "type": "object" 484 "type": "object"
492 }, 485 },
493 "Survey": { 486 "Survey": {
494 "description": "Representation of an individual survey object.",
495 "id": "Survey", 487 "id": "Survey",
496 "properties": { 488 "properties": {
497 "audience": { 489 "audience": {
498 "$ref": "SurveyAudience", 490 "$ref": "SurveyAudience"
499 "description": "Targeting-criteria message containing demogr aphic information"
500 }, 491 },
501 "cost": { 492 "cost": {
502 "$ref": "SurveyCost", 493 "$ref": "SurveyCost"
503 "description": "Cost to run the survey and collect the neces sary number of responses."
504 }, 494 },
505 "customerData": { 495 "customerData": {
506 "description": "Additional information to store on behalf of the API consumer and associate with this question. This binary blob is treated as opaque. This field is limited to 64K bytes.",
507 "format": "byte", 496 "format": "byte",
508 "type": "string" 497 "type": "string"
509 }, 498 },
510 "description": { 499 "description": {
511 "description": "Text description of the survey.",
512 "type": "string" 500 "type": "string"
513 }, 501 },
514 "owners": { 502 "owners": {
515 "annotations": {
516 "required": [
517 "consumersurveys.surveys.insert"
518 ]
519 },
520 "description": "List of email addresses for survey owners. M ust contain at least the address of the user making the API call.",
521 "items": { 503 "items": {
522 "type": "string" 504 "type": "string"
523 }, 505 },
524 "type": "array" 506 "type": "array"
525 }, 507 },
526 "questions": { 508 "questions": {
527 "annotations": {
528 "required": [
529 "consumersurveys.surveys.insert"
530 ]
531 },
532 "description": "List of questions defining the survey.",
533 "items": { 509 "items": {
534 "$ref": "SurveyQuestion" 510 "$ref": "SurveyQuestion"
535 }, 511 },
536 "type": "array" 512 "type": "array"
537 }, 513 },
514 "rejectionReason": {
515 "$ref": "SurveyRejection"
516 },
538 "state": { 517 "state": {
539 "description": "State that the survey is in.",
540 "type": "string" 518 "type": "string"
541 }, 519 },
542 "surveyUrlId": { 520 "surveyUrlId": {
543 "description": "Unique survey ID, that is viewable in the UR L of the Survey Creator UI",
544 "type": "string" 521 "type": "string"
545 }, 522 },
546 "title": { 523 "title": {
547 "description": "Optional name that will be given to the surv ey.",
548 "type": "string" 524 "type": "string"
549 }, 525 },
550 "wantedResponseCount": { 526 "wantedResponseCount": {
551 "description": "Number of responses desired for the survey." ,
552 "format": "int32", 527 "format": "int32",
553 "type": "integer" 528 "type": "integer"
554 } 529 }
555 }, 530 },
556 "type": "object" 531 "type": "object"
557 }, 532 },
558 "SurveyAudience": { 533 "SurveyAudience": {
559 "description": "Specifications for the target audience of a survey r un through the API.",
560 "id": "SurveyAudience", 534 "id": "SurveyAudience",
561 "properties": { 535 "properties": {
562 "ages": { 536 "ages": {
563 "description": "Optional list of age buckets to target. Supp orted age buckets are: ['18-24', '25-34', '35-44', '45-54', '55-64', '65+']",
564 "items": { 537 "items": {
565 "type": "string" 538 "type": "string"
566 }, 539 },
567 "type": "array" 540 "type": "array"
568 }, 541 },
569 "country": { 542 "country": {
570 "annotations": {
571 "required": [
572 "consumersurveys.surveys.insert"
573 ]
574 },
575 "description": "Required country code that surveys should be targeted to. Accepts standard ISO 3166-1 2 character language codes. For instan ce, 'US' for the United States, and 'GB' for the United Kingdom.",
576 "type": "string" 543 "type": "string"
577 }, 544 },
578 "countrySubdivision": { 545 "countrySubdivision": {
579 "description": "Country subdivision (states/provinces/etc) t hat surveys should be targeted to. For all countries except GB, ISO-3166-2 subdi vision code is required (eg. 'US-OH' for Ohio, United States). For GB, NUTS 1 st atistical region codes for the United Kingdom is required (eg. 'UK-UKC' for Nort h East England).",
580 "type": "string" 546 "type": "string"
581 }, 547 },
582 "gender": { 548 "gender": {
583 "description": "Optional gender to target.",
584 "type": "string" 549 "type": "string"
585 }, 550 },
586 "languages": { 551 "languages": {
587 "annotations": {
588 "required": [
589 "consumersurveys.surveys.insert"
590 ]
591 },
592 "description": "Language code that surveys should be targete d to. For instance, 'en-US'. Surveys may target bilingual users by specifying a list of language codes (for example, 'de' and 'en-US'). In that case, all langua ges will be used for targeting users but the survey content (which is displayed) must match the first language listed. Accepts standard BCP47 language codes. Se e specification.",
593 "items": { 552 "items": {
594 "type": "string" 553 "type": "string"
595 }, 554 },
596 "type": "array" 555 "type": "array"
597 }, 556 },
598 "mobileAppPanelId": { 557 "mobileAppPanelId": {
599 "description": "Key for predefined panel that causes survey to be sent to a predefined set of Opinion Rewards App users. You must set Popula tionSource to ANDROID_APP_PANEL to use this field.",
600 "type": "string" 558 "type": "string"
601 }, 559 },
602 "populationSource": { 560 "populationSource": {
603 "description": "Online population source where the responden ts are sampled from.",
604 "type": "string" 561 "type": "string"
605 } 562 }
606 }, 563 },
607 "type": "object" 564 "type": "object"
608 }, 565 },
609 "SurveyCost": { 566 "SurveyCost": {
610 "description": "Message defining the cost to run a given survey thro ugh API.",
611 "id": "SurveyCost", 567 "id": "SurveyCost",
612 "properties": { 568 "properties": {
613 "costPerResponseNanos": { 569 "costPerResponseNanos": {
614 "description": "Cost per survey response in nano units of th e given currency. To get the total cost for a survey, multiply this value by wan ted_response_count.",
615 "format": "int64", 570 "format": "int64",
616 "type": "string" 571 "type": "string"
617 }, 572 },
618 "currencyCode": { 573 "currencyCode": {
619 "description": "Currency code that the cost is given in.",
620 "type": "string" 574 "type": "string"
621 }, 575 },
622 "maxCostPerResponseNanos": { 576 "maxCostPerResponseNanos": {
623 "description": "Threshold to start a survey automatically if the quoted price is at most this value. When a survey has a Screener (threshold ) question, it must go through an incidence pricing test to determine the final cost per response. Typically you will have to make a followup call to start the survey giving the final computed cost per response. If the survey has no thresho ld_answers, setting this property will return an error. By specifying this prope rty, you indicate the max price per response you are willing to pay in advance o f the incidence test. If the price turns out to be lower than the specified valu e, the survey will begin immediately and you will be charged at the rate determi ned by the incidence pricing test. If the price turns out to be greater than the specified value the survey will not be started and you will instead be notified what price was determined by the incidence test. At that point, you must raise the value of this property to be greater than or equal to that cost before attem pting to start the survey again. This will immediately start the survey as long the incidence test was run within the last 21 days.",
624 "format": "int64", 577 "format": "int64",
625 "type": "string" 578 "type": "string"
626 }, 579 },
627 "nanos": { 580 "nanos": {
628 "description": "Cost of survey in nano units of the given cu rrency. DEPRECATED in favor of cost_per_response_nanos",
629 "format": "int64", 581 "format": "int64",
630 "type": "string" 582 "type": "string"
631 } 583 }
632 }, 584 },
633 "type": "object" 585 "type": "object"
634 }, 586 },
635 "SurveyQuestion": { 587 "SurveyQuestion": {
636 "description": "Message defining the question specifications.",
637 "id": "SurveyQuestion", 588 "id": "SurveyQuestion",
638 "properties": { 589 "properties": {
639 "answerOrder": { 590 "answerOrder": {
640 "description": "The randomization option for multiple choice and multi-select questions. If not specified, this option defaults to randomize .",
641 "type": "string" 591 "type": "string"
642 }, 592 },
643 "answers": { 593 "answers": {
644 "description": "Required list of answer options for a questi on.",
645 "items": { 594 "items": {
646 "type": "string" 595 "type": "string"
647 }, 596 },
648 "type": "array" 597 "type": "array"
649 }, 598 },
650 "hasOther": { 599 "hasOther": {
651 "description": "Option to allow open-ended text box for Sing le Answer and Multiple Answer question types. This can be used with SINGLE_ANSWE R, SINGLE_ANSWER_WITH_IMAGE, MULTIPLE_ANSWERS, and MULTIPLE_ANSWERS_WITH_IMAGE q uestion types.",
652 "type": "boolean" 600 "type": "boolean"
653 }, 601 },
654 "highValueLabel": { 602 "highValueLabel": {
655 "description": "For rating questions, the text for the highe r end of the scale, such as 'Best'. For numeric questions, a string representing a floating-point that is the maximum allowed number for a response.",
656 "type": "string" 603 "type": "string"
657 }, 604 },
658 "images": { 605 "images": {
659 "items": { 606 "items": {
660 "$ref": "SurveyQuestionImage" 607 "$ref": "SurveyQuestionImage"
661 }, 608 },
662 "type": "array" 609 "type": "array"
663 }, 610 },
664 "lastAnswerPositionPinned": { 611 "lastAnswerPositionPinned": {
665 "description": "Currently only support pinning an answer opt ion to the last position.",
666 "type": "boolean" 612 "type": "boolean"
667 }, 613 },
668 "lowValueLabel": { 614 "lowValueLabel": {
669 "description": "For rating questions, the text for the lower end of the scale, such as 'Worst'. For numeric questions, a string representing a floating-point that is the minimum allowed number for a response.",
670 "type": "string" 615 "type": "string"
671 }, 616 },
672 "mustPickSuggestion": { 617 "mustPickSuggestion": {
673 "description": "Option to force the user to pick one of the open text suggestions. This requires that suggestions are provided for this ques tion.",
674 "type": "boolean" 618 "type": "boolean"
675 }, 619 },
676 "numStars": { 620 "numStars": {
677 "description": "Number of stars to use for ratings questions .",
678 "type": "string" 621 "type": "string"
679 }, 622 },
680 "openTextPlaceholder": { 623 "openTextPlaceholder": {
681 "description": "Placeholder text for an open text question." ,
682 "type": "string" 624 "type": "string"
683 }, 625 },
684 "openTextSuggestions": { 626 "openTextSuggestions": {
685 "description": "A list of suggested answers for open text qu estion auto-complete. This is only valid if single_line_response is true.",
686 "items": { 627 "items": {
687 "type": "string" 628 "type": "string"
688 }, 629 },
689 "type": "array" 630 "type": "array"
690 }, 631 },
691 "question": { 632 "question": {
692 "description": "Required question text shown to the responde nt.",
693 "type": "string" 633 "type": "string"
694 }, 634 },
695 "sentimentText": { 635 "sentimentText": {
696 "description": "Used by the Rating Scale with Text question type. This text goes along with the question field that is presented to the resp ondent, and is the actual text that the respondent is asked to rate.",
697 "type": "string" 636 "type": "string"
698 }, 637 },
699 "singleLineResponse": { 638 "singleLineResponse": {
700 "description": "Option to allow multiple line open text resp onses instead of a single line response. Note that we don't show auto-complete s uggestions with multiple line responses.",
701 "type": "boolean" 639 "type": "boolean"
702 }, 640 },
703 "thresholdAnswers": { 641 "thresholdAnswers": {
704 "description": "The threshold/screener answer options, which will screen a user into the rest of the survey. These will be a subset of the a nswer option strings.",
705 "items": { 642 "items": {
706 "type": "string" 643 "type": "string"
707 }, 644 },
708 "type": "array" 645 "type": "array"
709 }, 646 },
710 "type": { 647 "type": {
711 "annotations": {
712 "required": [
713 "consumersurveys.surveys.insert"
714 ]
715 },
716 "description": "Required field defining the question type. F or details about configuring different type of questions, consult the question c onfiguration guide.",
717 "type": "string" 648 "type": "string"
718 }, 649 },
719 "unitOfMeasurementLabel": { 650 "unitOfMeasurementLabel": {
720 "description": "Optional unit of measurement for display (fo r example: hours, people, miles).",
721 "type": "string" 651 "type": "string"
722 }, 652 },
723 "videoId": { 653 "videoId": {
724 "description": "The YouTube video ID to be show in video que stions.",
725 "type": "string" 654 "type": "string"
726 } 655 }
727 }, 656 },
728 "type": "object" 657 "type": "object"
729 }, 658 },
730 "SurveyQuestionImage": { 659 "SurveyQuestionImage": {
731 "description": "Container object for image data and alt_text.",
732 "id": "SurveyQuestionImage", 660 "id": "SurveyQuestionImage",
733 "properties": { 661 "properties": {
734 "altText": { 662 "altText": {
735 "description": "The alt text property used in image tags is required for all images.",
736 "type": "string" 663 "type": "string"
737 }, 664 },
738 "data": { 665 "data": {
739 "description": "Inline jpeg, gif, tiff, bmp, or png image ra w bytes for an image question types.",
740 "format": "byte", 666 "format": "byte",
741 "type": "string" 667 "type": "string"
742 }, 668 },
743 "url": { 669 "url": {
744 "description": "The read-only URL for the hosted images.", 670 "type": "string"
671 }
672 },
673 "type": "object"
674 },
675 "SurveyRejection": {
676 "id": "SurveyRejection",
677 "properties": {
678 "explanation": {
679 "type": "string"
680 },
681 "type": {
745 "type": "string" 682 "type": "string"
746 } 683 }
747 }, 684 },
748 "type": "object" 685 "type": "object"
749 }, 686 },
750 "SurveyResults": { 687 "SurveyResults": {
751 "description": "Reference to the current results for a given survey. ",
752 "id": "SurveyResults", 688 "id": "SurveyResults",
753 "properties": { 689 "properties": {
754 "status": { 690 "status": {
755 "description": "Human readable string describing the status of the request.",
756 "type": "string" 691 "type": "string"
757 }, 692 },
758 "surveyUrlId": { 693 "surveyUrlId": {
759 "description": "External survey ID as viewable by survey own ers in the editor view.",
760 "type": "string" 694 "type": "string"
761 } 695 }
762 }, 696 },
763 "type": "object" 697 "type": "object"
764 }, 698 },
765 "SurveysDeleteResponse": { 699 "SurveysDeleteResponse": {
766 "id": "SurveysDeleteResponse", 700 "id": "SurveysDeleteResponse",
767 "properties": { 701 "properties": {
768 "requestId": { 702 "requestId": {
769 "description": "Unique request ID used for logging and debug ging. Please include in any error reporting or troubleshooting requests.", 703 "description": "Unique request ID used for logging and debug ging. Please include in any error reporting or troubleshooting requests.",
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
844 "type": "string" 778 "type": "string"
845 } 779 }
846 }, 780 },
847 "type": "object" 781 "type": "object"
848 } 782 }
849 }, 783 },
850 "servicePath": "consumersurveys/v2/", 784 "servicePath": "consumersurveys/v2/",
851 "title": "Consumer Surveys API", 785 "title": "Consumer Surveys API",
852 "version": "v2" 786 "version": "v2"
853 } 787 }
OLDNEW
« no previous file with comments | « discovery/googleapis/compute__v1.json ('k') | discovery/googleapis/content__v2.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698