OLD | NEW |
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 "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.", |
21 "discoveryVersion": "v1", | 22 "discoveryVersion": "v1", |
22 "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/1vDIKJcLCHSRsEqwWRQxEL6uKNY\"", | 23 "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/UUFfqPW5Viffl9wMWtQNrKHUs5E\"", |
23 "icons": { | 24 "icons": { |
24 "x16": "http://www.google.com/images/icons/product/search-16.gif", | 25 "x16": "http://www.google.com/images/icons/product/search-16.gif", |
25 "x32": "http://www.google.com/images/icons/product/search-32.gif" | 26 "x32": "http://www.google.com/images/icons/product/search-32.gif" |
26 }, | 27 }, |
27 "id": "consumersurveys:v2", | 28 "id": "consumersurveys:v2", |
28 "kind": "discovery#restDescription", | 29 "kind": "discovery#restDescription", |
29 "name": "consumersurveys", | 30 "name": "consumersurveys", |
30 "ownerDomain": "google.com", | 31 "ownerDomain": "google.com", |
31 "ownerName": "Google", | 32 "ownerName": "Google", |
32 "parameters": { | 33 "parameters": { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 "type": "string" | 70 "type": "string" |
70 }, | 71 }, |
71 "userIp": { | 72 "userIp": { |
72 "description": "IP address of the site where the request originates.
Use this if you want to enforce per-user limits.", | 73 "description": "IP address of the site where the request originates.
Use this if you want to enforce per-user limits.", |
73 "location": "query", | 74 "location": "query", |
74 "type": "string" | 75 "type": "string" |
75 } | 76 } |
76 }, | 77 }, |
77 "protocol": "rest", | 78 "protocol": "rest", |
78 "resources": { | 79 "resources": { |
| 80 "mobileapppanels": { |
| 81 "methods": { |
| 82 "get": { |
| 83 "description": "Retrieves a MobileAppPanel that is available
to the authenticated user.", |
| 84 "httpMethod": "GET", |
| 85 "id": "consumersurveys.mobileapppanels.get", |
| 86 "parameterOrder": [ |
| 87 "panelId" |
| 88 ], |
| 89 "parameters": { |
| 90 "panelId": { |
| 91 "description": "External URL ID for the panel.", |
| 92 "location": "path", |
| 93 "required": true, |
| 94 "type": "string" |
| 95 } |
| 96 }, |
| 97 "path": "mobileAppPanels/{panelId}", |
| 98 "response": { |
| 99 "$ref": "MobileAppPanel" |
| 100 }, |
| 101 "scopes": [ |
| 102 "https://www.googleapis.com/auth/consumersurveys", |
| 103 "https://www.googleapis.com/auth/consumersurveys.readonl
y", |
| 104 "https://www.googleapis.com/auth/userinfo.email" |
| 105 ] |
| 106 }, |
| 107 "list": { |
| 108 "description": "Lists the MobileAppPanels available to the a
uthenticated user.", |
| 109 "httpMethod": "GET", |
| 110 "id": "consumersurveys.mobileapppanels.list", |
| 111 "parameters": { |
| 112 "maxResults": { |
| 113 "format": "uint32", |
| 114 "location": "query", |
| 115 "type": "integer" |
| 116 }, |
| 117 "startIndex": { |
| 118 "format": "uint32", |
| 119 "location": "query", |
| 120 "type": "integer" |
| 121 }, |
| 122 "token": { |
| 123 "location": "query", |
| 124 "type": "string" |
| 125 } |
| 126 }, |
| 127 "path": "mobileAppPanels", |
| 128 "response": { |
| 129 "$ref": "MobileAppPanelsListResponse" |
| 130 }, |
| 131 "scopes": [ |
| 132 "https://www.googleapis.com/auth/consumersurveys", |
| 133 "https://www.googleapis.com/auth/consumersurveys.readonl
y", |
| 134 "https://www.googleapis.com/auth/userinfo.email" |
| 135 ] |
| 136 }, |
| 137 "update": { |
| 138 "description": "Updates a MobileAppPanel. Currently the only
property that can be updated is the owners property.", |
| 139 "httpMethod": "PUT", |
| 140 "id": "consumersurveys.mobileapppanels.update", |
| 141 "parameterOrder": [ |
| 142 "panelId" |
| 143 ], |
| 144 "parameters": { |
| 145 "panelId": { |
| 146 "description": "External URL ID for the panel.", |
| 147 "location": "path", |
| 148 "required": true, |
| 149 "type": "string" |
| 150 } |
| 151 }, |
| 152 "path": "mobileAppPanels/{panelId}", |
| 153 "request": { |
| 154 "$ref": "MobileAppPanel" |
| 155 }, |
| 156 "response": { |
| 157 "$ref": "MobileAppPanel" |
| 158 }, |
| 159 "scopes": [ |
| 160 "https://www.googleapis.com/auth/consumersurveys", |
| 161 "https://www.googleapis.com/auth/userinfo.email" |
| 162 ] |
| 163 } |
| 164 } |
| 165 }, |
79 "results": { | 166 "results": { |
80 "methods": { | 167 "methods": { |
81 "get": { | 168 "get": { |
82 "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.", |
83 "httpMethod": "GET", | 170 "httpMethod": "GET", |
84 "id": "consumersurveys.results.get", | 171 "id": "consumersurveys.results.get", |
85 "parameterOrder": [ | 172 "parameterOrder": [ |
86 "surveyUrlId" | 173 "surveyUrlId" |
87 ], | 174 ], |
88 "parameters": { | 175 "parameters": { |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 "$ref": "Survey" | 341 "$ref": "Survey" |
255 }, | 342 }, |
256 "scopes": [ | 343 "scopes": [ |
257 "https://www.googleapis.com/auth/consumersurveys", | 344 "https://www.googleapis.com/auth/consumersurveys", |
258 "https://www.googleapis.com/auth/userinfo.email" | 345 "https://www.googleapis.com/auth/userinfo.email" |
259 ] | 346 ] |
260 } | 347 } |
261 } | 348 } |
262 } | 349 } |
263 }, | 350 }, |
264 "revision": "20160517", | 351 "revision": "20160602", |
265 "rootUrl": "https://www.googleapis.com/", | 352 "rootUrl": "https://www.googleapis.com/", |
266 "schemas": { | 353 "schemas": { |
267 "FieldMask": { | 354 "FieldMask": { |
268 "id": "FieldMask", | 355 "id": "FieldMask", |
269 "properties": { | 356 "properties": { |
270 "fields": { | 357 "fields": { |
271 "items": { | 358 "items": { |
272 "$ref": "FieldMask" | 359 "$ref": "FieldMask" |
273 }, | 360 }, |
274 "type": "array" | 361 "type": "array" |
275 }, | 362 }, |
276 "id": { | 363 "id": { |
277 "format": "int32", | 364 "format": "int32", |
278 "type": "integer" | 365 "type": "integer" |
279 } | 366 } |
280 }, | 367 }, |
281 "type": "object" | 368 "type": "object" |
282 }, | 369 }, |
| 370 "MobileAppPanel": { |
| 371 "description": "Representation of an individual pre-defined panel ob
ject defining a targeted audience of opinion rewards mobile app users.", |
| 372 "id": "MobileAppPanel", |
| 373 "properties": { |
| 374 "country": { |
| 375 "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.", |
| 376 "type": "string" |
| 377 }, |
| 378 "isPublicPanel": { |
| 379 "description": "Whether or not the panel is accessible to al
l API users.", |
| 380 "type": "boolean" |
| 381 }, |
| 382 "language": { |
| 383 "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."
, |
| 384 "type": "string" |
| 385 }, |
| 386 "mobileAppPanelId": { |
| 387 "description": "Unique panel ID string. This corresponds to
the mobile_app_panel_id used in Survey Insert requests.", |
| 388 "type": "string" |
| 389 }, |
| 390 "name": { |
| 391 "description": "Human readable name of the audience panel.", |
| 392 "type": "string" |
| 393 }, |
| 394 "owners": { |
| 395 "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.", |
| 396 "items": { |
| 397 "type": "string" |
| 398 }, |
| 399 "type": "array" |
| 400 } |
| 401 }, |
| 402 "type": "object" |
| 403 }, |
| 404 "MobileAppPanelsListResponse": { |
| 405 "id": "MobileAppPanelsListResponse", |
| 406 "properties": { |
| 407 "pageInfo": { |
| 408 "$ref": "PageInfo" |
| 409 }, |
| 410 "requestId": { |
| 411 "description": "Unique request ID used for logging and debug
ging. Please include in any error reporting or troubleshooting requests.", |
| 412 "type": "string" |
| 413 }, |
| 414 "resources": { |
| 415 "description": "An individual predefined panel of Opinion Re
wards mobile users.", |
| 416 "items": { |
| 417 "$ref": "MobileAppPanel" |
| 418 }, |
| 419 "type": "array" |
| 420 }, |
| 421 "tokenPagination": { |
| 422 "$ref": "TokenPagination" |
| 423 } |
| 424 }, |
| 425 "type": "object" |
| 426 }, |
283 "PageInfo": { | 427 "PageInfo": { |
284 "id": "PageInfo", | 428 "id": "PageInfo", |
285 "properties": { | 429 "properties": { |
286 "resultPerPage": { | 430 "resultPerPage": { |
287 "format": "int32", | 431 "format": "int32", |
288 "type": "integer" | 432 "type": "integer" |
289 }, | 433 }, |
290 "startIndex": { | 434 "startIndex": { |
291 "format": "int32", | 435 "format": "int32", |
292 "type": "integer" | 436 "type": "integer" |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 "consumersurveys.surveys.insert" | 505 "consumersurveys.surveys.insert" |
362 ] | 506 ] |
363 }, | 507 }, |
364 "description": "List of questions defining the survey.", | 508 "description": "List of questions defining the survey.", |
365 "items": { | 509 "items": { |
366 "$ref": "SurveyQuestion" | 510 "$ref": "SurveyQuestion" |
367 }, | 511 }, |
368 "type": "array" | 512 "type": "array" |
369 }, | 513 }, |
370 "state": { | 514 "state": { |
371 "description": "State that the survey is in. Can be modified
to start, stop, or pause survey.", | 515 "description": "State that the survey is in.", |
372 "type": "string" | 516 "type": "string" |
373 }, | 517 }, |
374 "surveyUrlId": { | 518 "surveyUrlId": { |
375 "description": "Unique survey ID, that is viewable in the UR
L of the Survey Creator UI", | 519 "description": "Unique survey ID, that is viewable in the UR
L of the Survey Creator UI", |
376 "type": "string" | 520 "type": "string" |
377 }, | 521 }, |
378 "title": { | 522 "title": { |
379 "description": "Optional name that will be given to the surv
ey.", | 523 "description": "Optional name that will be given to the surv
ey.", |
380 "type": "string" | 524 "type": "string" |
381 }, | 525 }, |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 "consumersurveys.surveys.insert" | 565 "consumersurveys.surveys.insert" |
422 ] | 566 ] |
423 }, | 567 }, |
424 "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.", | 568 "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.", |
425 "items": { | 569 "items": { |
426 "type": "string" | 570 "type": "string" |
427 }, | 571 }, |
428 "type": "array" | 572 "type": "array" |
429 }, | 573 }, |
430 "mobileAppPanelId": { | 574 "mobileAppPanelId": { |
431 "description": "Key for predefined panel that causes survey
to be sent to a predefined set of Opinion Rewards App users. PopulationSource mu
st be set to ANDROID_APP_PANEL to use this field.", | 575 "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.", |
432 "type": "string" | 576 "type": "string" |
433 }, | 577 }, |
434 "populationSource": { | 578 "populationSource": { |
435 "description": "Online population source where the responden
ts are sampled from.", | 579 "description": "Online population source where the responden
ts are sampled from.", |
436 "type": "string" | 580 "type": "string" |
437 } | 581 } |
438 }, | 582 }, |
439 "type": "object" | 583 "type": "object" |
440 }, | 584 }, |
441 "SurveyCost": { | 585 "SurveyCost": { |
442 "description": "Message defining the cost to run a given survey thro
ugh API.", | 586 "description": "Message defining the cost to run a given survey thro
ugh API.", |
443 "id": "SurveyCost", | 587 "id": "SurveyCost", |
444 "properties": { | 588 "properties": { |
445 "autostartMaxCostPerResponse": { | |
446 "description": "Threshold to start a survey automically if t
he quoted prices 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 c
ost per response. Typically the API consumer would have to make a followup call
to start the survey given the (previously not) known cost. If the survey has no
threshold_answers, setting this property will return an error. This property all
ows API callers to indicate the max price per response they'd be willing to pay
in advance of that test. If the price turns out to be lower than the specified a
utostart_max, the survey should begin immediately and the user will be charged a
t the rate determined by the Incidence pricing test. If the price turns out to b
e greater than the specified autostart_max the survey will not be started and th
e user will instead be notified what price was determined by the incidence test.
At that point they must raise the value of this property to be greater than or
equal to that cost before attempting to start the survey again. This will immedi
ately start the survey as long the incidence test was run within the last 21 day
s.", | |
447 "format": "int64", | |
448 "type": "string" | |
449 }, | |
450 "costPerResponseNanos": { | 589 "costPerResponseNanos": { |
451 "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.", | 590 "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.", |
452 "format": "int64", | 591 "format": "int64", |
453 "type": "string" | 592 "type": "string" |
454 }, | 593 }, |
455 "currencyCode": { | 594 "currencyCode": { |
456 "description": "Currency code that the cost is given in.", | 595 "description": "Currency code that the cost is given in.", |
457 "type": "string" | 596 "type": "string" |
458 }, | 597 }, |
| 598 "maxCostPerResponseNanos": { |
| 599 "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.", |
| 600 "format": "int64", |
| 601 "type": "string" |
| 602 }, |
459 "nanos": { | 603 "nanos": { |
460 "description": "Cost of survey in nano units of the given cu
rrency. DEPRECATED in favor of cost_per_response_nanos", | 604 "description": "Cost of survey in nano units of the given cu
rrency. DEPRECATED in favor of cost_per_response_nanos", |
461 "format": "int64", | 605 "format": "int64", |
462 "type": "string" | 606 "type": "string" |
463 } | 607 } |
464 }, | 608 }, |
465 "type": "object" | 609 "type": "object" |
466 }, | 610 }, |
467 "SurveyQuestion": { | 611 "SurveyQuestion": { |
468 "description": "Message defining the question specifications.", | 612 "description": "Message defining the question specifications.", |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
613 }, | 757 }, |
614 "tokenPagination": { | 758 "tokenPagination": { |
615 "$ref": "TokenPagination" | 759 "$ref": "TokenPagination" |
616 } | 760 } |
617 }, | 761 }, |
618 "type": "object" | 762 "type": "object" |
619 }, | 763 }, |
620 "SurveysStartRequest": { | 764 "SurveysStartRequest": { |
621 "id": "SurveysStartRequest", | 765 "id": "SurveysStartRequest", |
622 "properties": { | 766 "properties": { |
623 "autostartMaxCostPerResponse": { | 767 "maxCostPerResponseNanos": { |
624 "description": "Threshold to start a survey automically if t
he quoted prices is less than or equal to this value. See Survey.Cost for more d
etails.", | 768 "description": "Threshold to start a survey automically if t
he quoted prices is less than or equal to this value. See Survey.Cost for more d
etails.", |
625 "format": "int64", | 769 "format": "int64", |
626 "type": "string" | 770 "type": "string" |
627 } | 771 } |
628 }, | 772 }, |
629 "type": "object" | 773 "type": "object" |
630 }, | 774 }, |
631 "SurveysStartResponse": { | 775 "SurveysStartResponse": { |
632 "id": "SurveysStartResponse", | 776 "id": "SurveysStartResponse", |
633 "properties": { | 777 "properties": { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
666 "type": "string" | 810 "type": "string" |
667 } | 811 } |
668 }, | 812 }, |
669 "type": "object" | 813 "type": "object" |
670 } | 814 } |
671 }, | 815 }, |
672 "servicePath": "consumersurveys/v2/", | 816 "servicePath": "consumersurveys/v2/", |
673 "title": "Consumer Surveys API", | 817 "title": "Consumer Surveys API", |
674 "version": "v2" | 818 "version": "v2" |
675 } | 819 } |
OLD | NEW |