Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, h1, h2, h3, div, span, p, pre, a { |
| 5 | margin: 0; |
| 6 | padding: 0; |
| 7 | border: 0; |
| 8 | font-weight: inherit; |
| 9 | font-style: inherit; |
| 10 | font-size: 100%; |
| 11 | font-family: inherit; |
| 12 | vertical-align: baseline; |
| 13 | } |
| 14 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, h2, h3 { |
| 50 | border-bottom: solid #CCC 1px; |
| 51 | } |
| 52 | |
| 53 | .toc_element { |
| 54 | margin-top: 0.5em; |
| 55 | } |
| 56 | |
| 57 | .firstline { |
| 58 | margin-left: 2 em; |
| 59 | } |
| 60 | |
| 61 | .method { |
| 62 | margin-top: 1em; |
| 63 | border: solid 1px #CCC; |
| 64 | padding: 1em; |
| 65 | background: #EEE; |
| 66 | } |
| 67 | |
| 68 | .details { |
| 69 | font-weight: bold; |
| 70 | font-size: 14px; |
| 71 | } |
| 72 | |
| 73 | </style> |
| 74 | |
| 75 | <h1><a href="proximitybeacon_v1beta1.html">Google Proximity Beacon API</a> . <a href="proximitybeacon_v1beta1.beaconinfo.html">beaconinfo</a></h1> |
| 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
| 78 | <code><a href="#getforobserved">getforobserved(body, x__xgafv=None)</a></code></p> |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame^] | 79 | <p class="firstline">Given one or more beacon observations, returns any beacon information</p> |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 80 | <h3>Method Details</h3> |
| 81 | <div class="method"> |
| 82 | <code class="details" id="getforobserved">getforobserved(body, x__xgafv=None)</code> |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame^] | 83 | <pre>Given one or more beacon observations, returns any beacon information |
| 84 | and attachments accessible to your application. Authorize by using the |
| 85 | [API key](https://developers.google.com/beacons/proximity/how-tos/authorizing#APIKey) |
| 86 | for the application. |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 87 | |
| 88 | Args: |
| 89 | body: object, The request body. (required) |
| 90 | The object takes the form of: |
| 91 | |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame^] | 92 | { # Request for beacon and attachment information about beacons that |
| 93 | # a mobile client has encountered "in the wild". |
| 94 | "observations": [ # The beacons that the client has encountered. |
| 95 | # At least one must be given. |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 96 | { # Represents one beacon observed once. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame^] | 97 | "advertisedId": { # Defines a unique identifier of a beacon as broadcast by the device. # The ID advertised by the beacon the client has encountered. |
| 98 | # |
| 99 | # If the submitted `advertised_id` type is Eddystone-EID, then the client |
| 100 | # must be authorized to resolve the given beacon. Otherwise no data will be |
| 101 | # returned for that beacon. |
| 102 | # Required. |
| 103 | "type": "A String", # Specifies the identifier type. |
| 104 | # Required. |
| 105 | "id": "A String", # The actual beacon identifier, as broadcast by the beacon hardware. Must be |
| 106 | # [base64](http://tools.ietf.org/html/rfc4648#section-4) encoded in HTTP |
| 107 | # requests, and will be so encoded (with padding) in responses. The base64 |
| 108 | # encoding should be of the binary byte-stream and not any textual (such as |
| 109 | # hex) representation thereof. |
| 110 | # Required. |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 111 | }, |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame^] | 112 | "telemetry": "A String", # The array of telemetry bytes received from the beacon. The server is |
| 113 | # responsible for parsing it. This field may frequently be empty, as |
| 114 | # with a beacon that transmits telemetry only occasionally. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 115 | "timestampMs": "A String", # Time when the beacon was observed. |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 116 | }, |
| 117 | ], |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame^] | 118 | "namespacedTypes": [ # Specifies what kind of attachments to include in the response. |
| 119 | # When given, the response will include only attachments of the given types. |
| 120 | # When empty, no attachments will be returned. Must be in the format |
| 121 | # <var>namespace/type</var>. Accepts `*` to specify all types in |
| 122 | # all namespaces owned by the client. |
| 123 | # Optional. |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 124 | "A String", |
| 125 | ], |
| 126 | } |
| 127 | |
| 128 | x__xgafv: string, V1 error format. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame^] | 129 | Allowed values |
| 130 | 1 - v1 error format |
| 131 | 2 - v2 error format |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 132 | |
| 133 | Returns: |
| 134 | An object of the form: |
| 135 | |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame^] | 136 | { # Information about the requested beacons, optionally including attachment |
| 137 | # data. |
| 138 | "beacons": [ # Public information about beacons. |
| 139 | # May be empty if the request matched no beacons. |
| 140 | { # A subset of beacon information served via the `beaconinfo.getforobserved` |
| 141 | # method, which you call when users of your app encounter your beacons. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 142 | "advertisedId": { # Defines a unique identifier of a beacon as broadcast by the device. # The ID advertised by the beacon. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame^] | 143 | "type": "A String", # Specifies the identifier type. |
| 144 | # Required. |
| 145 | "id": "A String", # The actual beacon identifier, as broadcast by the beacon hardware. Must be |
| 146 | # [base64](http://tools.ietf.org/html/rfc4648#section-4) encoded in HTTP |
| 147 | # requests, and will be so encoded (with padding) in responses. The base64 |
| 148 | # encoding should be of the binary byte-stream and not any textual (such as |
| 149 | # hex) representation thereof. |
| 150 | # Required. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 151 | }, |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame^] | 152 | "attachments": [ # Attachments matching the type(s) requested. |
| 153 | # May be empty if no attachment types were requested. |
| 154 | { # A subset of attachment information served via the |
| 155 | # `beaconinfo.getforobserved` method, used when your users encounter your |
| 156 | # beacons. |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 157 | "data": "A String", # An opaque data container for client-provided data. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame^] | 158 | "namespacedType": "A String", # Specifies what kind of attachment this is. Tells a client how to |
| 159 | # interpret the `data` field. Format is <var>namespace/type</var>, for |
| 160 | # example <code>scrupulous-wombat-12345/welcome-message</code> |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 161 | }, |
| 162 | ], |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 163 | "beaconName": "A String", # The name under which the beacon is registered. |
| 164 | }, |
| 165 | ], |
| 166 | }</pre> |
| 167 | </div> |
| 168 | |
| 169 | </body></html> |