1<html><body> 2<style> 3 4body, 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 15body { 16 font-size: 13px; 17 padding: 1em; 18} 19 20h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23} 24 25h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28} 29 30h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34} 35 36pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39} 40 41pre { 42 margin-top: 0.5em; 43} 44 45h1, h2, h3, p { 46 font-family: Arial, sans serif; 47} 48 49h1, 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> 79<p class="firstline">Given one or more beacon observations, returns any beacon information</p> 80<h3>Method Details</h3> 81<div class="method"> 82 <code class="details" id="getforobserved">getforobserved(body, x__xgafv=None)</code> 83 <pre>Given one or more beacon observations, returns any beacon information 84and attachments accessible to your application. Authorize by using the 85[API key](https://developers.google.com/beacons/proximity/get-started#request_a_browser_api_key) 86for the application. 87 88Args: 89 body: object, The request body. (required) 90 The object takes the form of: 91 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. 96 { # Represents one beacon observed once. 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. 111 }, 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. 115 "timestampMs": "A String", # Time when the beacon was observed. 116 }, 117 ], 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. 124 "A String", 125 ], 126 } 127 128 x__xgafv: string, V1 error format. 129 Allowed values 130 1 - v1 error format 131 2 - v2 error format 132 133Returns: 134 An object of the form: 135 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. 142 "advertisedId": { # Defines a unique identifier of a beacon as broadcast by the device. # The ID advertised by the beacon. 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. 151 }, 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. 157 "data": "A String", # An opaque data container for client-provided data. 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> 161 }, 162 ], 163 "beaconName": "A String", # The name under which the beacon is registered. 164 }, 165 ], 166 }</pre> 167</div> 168 169</body></html>