Debian Codegraph @

docs/dyn/factchecktools_v1alpha1.claims.html

raw
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="factchecktools_v1alpha1.html">Fact Check Tools API</a> . <a href="factchecktools_v1alpha1.claims.html">claims</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#imageSearch">imageSearch(imageUri=None, languageCode=None, offset=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Search through fact-checked claims using an image as the query.</p>
83 <p class="toc_element">
84 <code><a href="#imageSearch_next">imageSearch_next()</a></code></p>
85 <p class="firstline">Retrieves the next page of results.</p>
86 <p class="toc_element">
87 <code><a href="#search">search(languageCode=None, maxAgeDays=None, offset=None, pageSize=None, pageToken=None, query=None, reviewPublisherSiteFilter=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Search through fact-checked claims.</p>
89 <p class="toc_element">
90 <code><a href="#search_next">search_next()</a></code></p>
91 <p class="firstline">Retrieves the next page of results.</p>
92 <h3>Method Details</h3>
93 <div class="method">
94 <code class="details" id="close">close()</code>
95 <pre>Close httplib2 connections.</pre>
96 </div>
97
98 <div class="method">
99 <code class="details" id="imageSearch">imageSearch(imageUri=None, languageCode=None, offset=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
100 <pre>Search through fact-checked claims using an image as the query.
101
102 Args:
103 imageUri: string, Required. The URI of the source image. This must be a publicly-accessible image HTTP/HTTPS URL. When fetching images from HTTP/HTTPS URLs, Google cannot guarantee that the request will be completed. Your request may fail if the specified host denies the request (e.g. due to request throttling or DOS prevention), or if Google throttles requests to the site for abuse prevention. You should not depend on externally-hosted images for production applications.
104 languageCode: string, Optional. The BCP-47 language code, such as &quot;en-US&quot; or &quot;sr-Latn&quot;. Can be used to restrict results by language, though we do not currently consider the region.
105 offset: integer, Optional. An integer that specifies the current offset (that is, starting result location) in search results. This field is only considered if `page_token` is unset. For example, 0 means to return results starting from the first matching result, and 10 means to return from the 11th result.
106 pageSize: integer, Optional. The pagination size. We will return up to that many results. Defaults to 10 if not set.
107 pageToken: string, Optional. The pagination token. You may provide the `next_page_token` returned from a previous List request, if any, in order to get the next page. All other fields must have the same values as in the previous request.
108 x__xgafv: string, V1 error format.
109 Allowed values
110 1 - v1 error format
111 2 - v2 error format
112
113 Returns:
114 An object of the form:
115
116 { # Response from searching fact-checked claims by image.
117 &quot;nextPageToken&quot;: &quot;A String&quot;, # The next pagination token in the Search response. It should be used as the `page_token` for the following request. An empty value means no more results.
118 &quot;results&quot;: [ # The list of claims and all of their associated information.
119 { # A claim and its associated information.
120 &quot;claim&quot;: { # Information about the claim. # A claim which matched the query.
121 &quot;claimDate&quot;: &quot;A String&quot;, # The date that the claim was made.
122 &quot;claimReview&quot;: [ # One or more reviews of this claim (namely, a fact-checking article).
123 { # Information about a claim review.
124 &quot;languageCode&quot;: &quot;A String&quot;, # The language this review was written in. For instance, &quot;en&quot; or &quot;de&quot;.
125 &quot;publisher&quot;: { # Information about the publisher. # The publisher of this claim review.
126 &quot;name&quot;: &quot;A String&quot;, # The name of this publisher. For instance, &quot;Awesome Fact Checks&quot;.
127 &quot;site&quot;: &quot;A String&quot;, # Host-level site name, without the protocol or &quot;www&quot; prefix. For instance, &quot;awesomefactchecks.com&quot;. This value of this field is based purely on the claim review URL.
128 },
129 &quot;reviewDate&quot;: &quot;A String&quot;, # The date the claim was reviewed.
130 &quot;textualRating&quot;: &quot;A String&quot;, # Textual rating. For instance, &quot;Mostly false&quot;.
131 &quot;title&quot;: &quot;A String&quot;, # The title of this claim review, if it can be determined.
132 &quot;url&quot;: &quot;A String&quot;, # The URL of this claim review.
133 },
134 ],
135 &quot;claimant&quot;: &quot;A String&quot;, # A person or organization stating the claim. For instance, &quot;John Doe&quot;.
136 &quot;text&quot;: &quot;A String&quot;, # The claim text. For instance, &quot;Crime has doubled in the last 2 years.&quot;
137 },
138 },
139 ],
140 }</pre>
141 </div>
142
143 <div class="method">
144 <code class="details" id="imageSearch_next">imageSearch_next()</code>
145 <pre>Retrieves the next page of results.
146
147 Args:
148 previous_request: The request for the previous page. (required)
149 previous_response: The response from the request for the previous page. (required)
150
151 Returns:
152 A request object that you can call &#x27;execute()&#x27; on to request the next
153 page. Returns None if there are no more items in the collection.
154 </pre>
155 </div>
156
157 <div class="method">
158 <code class="details" id="search">search(languageCode=None, maxAgeDays=None, offset=None, pageSize=None, pageToken=None, query=None, reviewPublisherSiteFilter=None, x__xgafv=None)</code>
159 <pre>Search through fact-checked claims.
160
161 Args:
162 languageCode: string, The BCP-47 language code, such as &quot;en-US&quot; or &quot;sr-Latn&quot;. Can be used to restrict results by language, though we do not currently consider the region.
163 maxAgeDays: integer, The maximum age of the returned search results, in days. Age is determined by either claim date or review date, whichever is newer.
164 offset: integer, An integer that specifies the current offset (that is, starting result location) in search results. This field is only considered if `page_token` is unset. For example, 0 means to return results starting from the first matching result, and 10 means to return from the 11th result.
165 pageSize: integer, The pagination size. We will return up to that many results. Defaults to 10 if not set.
166 pageToken: string, The pagination token. You may provide the `next_page_token` returned from a previous List request, if any, in order to get the next page. All other fields must have the same values as in the previous request.
167 query: string, Textual query string. Required unless `review_publisher_site_filter` is specified.
168 reviewPublisherSiteFilter: string, The review publisher site to filter results by, e.g. nytimes.com.
169 x__xgafv: string, V1 error format.
170 Allowed values
171 1 - v1 error format
172 2 - v2 error format
173
174 Returns:
175 An object of the form:
176
177 { # Response from searching fact-checked claims.
178 &quot;claims&quot;: [ # The list of claims and all of their associated information.
179 { # Information about the claim.
180 &quot;claimDate&quot;: &quot;A String&quot;, # The date that the claim was made.
181 &quot;claimReview&quot;: [ # One or more reviews of this claim (namely, a fact-checking article).
182 { # Information about a claim review.
183 &quot;languageCode&quot;: &quot;A String&quot;, # The language this review was written in. For instance, &quot;en&quot; or &quot;de&quot;.
184 &quot;publisher&quot;: { # Information about the publisher. # The publisher of this claim review.
185 &quot;name&quot;: &quot;A String&quot;, # The name of this publisher. For instance, &quot;Awesome Fact Checks&quot;.
186 &quot;site&quot;: &quot;A String&quot;, # Host-level site name, without the protocol or &quot;www&quot; prefix. For instance, &quot;awesomefactchecks.com&quot;. This value of this field is based purely on the claim review URL.
187 },
188 &quot;reviewDate&quot;: &quot;A String&quot;, # The date the claim was reviewed.
189 &quot;textualRating&quot;: &quot;A String&quot;, # Textual rating. For instance, &quot;Mostly false&quot;.
190 &quot;title&quot;: &quot;A String&quot;, # The title of this claim review, if it can be determined.
191 &quot;url&quot;: &quot;A String&quot;, # The URL of this claim review.
192 },
193 ],
194 &quot;claimant&quot;: &quot;A String&quot;, # A person or organization stating the claim. For instance, &quot;John Doe&quot;.
195 &quot;text&quot;: &quot;A String&quot;, # The claim text. For instance, &quot;Crime has doubled in the last 2 years.&quot;
196 },
197 ],
198 &quot;nextPageToken&quot;: &quot;A String&quot;, # The next pagination token in the Search response. It should be used as the `page_token` for the following request. An empty value means no more results.
199 }</pre>
200 </div>
201
202 <div class="method">
203 <code class="details" id="search_next">search_next()</code>
204 <pre>Retrieves the next page of results.
205
206 Args:
207 previous_request: The request for the previous page. (required)
208 previous_response: The response from the request for the previous page. (required)
209
210 Returns:
211 A request object that you can call &#x27;execute()&#x27; on to request the next
212 page. Returns None if there are no more items in the collection.
213 </pre>
214 </div>
215
216 </body></html>