@maxim_mazurok/gapi.client.blogger-v3 0.0.20220810
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +1558 -0
- package/package.json +20 -0
- package/readme.md +236 -0
- package/tests.ts +557 -0
- package/tsconfig.json +18 -0
- package/tslint.json +6 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,1558 @@
|
|
|
1
|
+
/* Type definitions for non-npm package Blogger API v3 0.0 */
|
|
2
|
+
// Project: https://developers.google.com/blogger/docs/3.0/getting_started
|
|
3
|
+
// Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
|
|
4
|
+
// Nick Amoscato <https://github.com/namoscato>
|
|
5
|
+
// Declan Vong <https://github.com/declanvong>
|
|
6
|
+
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
7
|
+
// TypeScript Version: 2.8
|
|
8
|
+
|
|
9
|
+
// IMPORTANT
|
|
10
|
+
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
11
|
+
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
12
|
+
// Generated from: https://blogger.googleapis.com/$discovery/rest?version=v3
|
|
13
|
+
// Revision: 20220810
|
|
14
|
+
|
|
15
|
+
/// <reference types="gapi.client" />
|
|
16
|
+
|
|
17
|
+
declare namespace gapi.client {
|
|
18
|
+
/** Load Blogger API v3 */
|
|
19
|
+
function load(urlOrObject: "https://blogger.googleapis.com/$discovery/rest?version=v3"): Promise<void>;
|
|
20
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
21
|
+
function load(name: "blogger", version: "v3"): Promise<void>;
|
|
22
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
23
|
+
function load(name: "blogger", version: "v3", callback: () => any): void;
|
|
24
|
+
|
|
25
|
+
namespace blogger {
|
|
26
|
+
interface Blog {
|
|
27
|
+
/** The JSON custom meta-data for the Blog. */
|
|
28
|
+
customMetaData?: string;
|
|
29
|
+
/** The description of this blog. This is displayed underneath the title. */
|
|
30
|
+
description?: string;
|
|
31
|
+
/** The identifier for this resource. */
|
|
32
|
+
id?: string;
|
|
33
|
+
/** The kind of this entry. Always blogger#blog. */
|
|
34
|
+
kind?: string;
|
|
35
|
+
/** The locale this Blog is set to. */
|
|
36
|
+
locale?: {
|
|
37
|
+
/** The country this blog's locale is set to. */
|
|
38
|
+
country?: string;
|
|
39
|
+
/** The language this blog is authored in. */
|
|
40
|
+
language?: string;
|
|
41
|
+
/** The language variant this blog is authored in. */
|
|
42
|
+
variant?: string;
|
|
43
|
+
};
|
|
44
|
+
/** The name of this blog. This is displayed as the title. */
|
|
45
|
+
name?: string;
|
|
46
|
+
/** The container of pages in this blog. */
|
|
47
|
+
pages?: {
|
|
48
|
+
/** The URL of the container for pages in this blog. */
|
|
49
|
+
selfLink?: string;
|
|
50
|
+
/** The count of pages in this blog. */
|
|
51
|
+
totalItems?: number;
|
|
52
|
+
};
|
|
53
|
+
/** The container of posts in this blog. */
|
|
54
|
+
posts?: {
|
|
55
|
+
/** The List of Posts for this Blog. */
|
|
56
|
+
items?: Post[];
|
|
57
|
+
/** The URL of the container for posts in this blog. */
|
|
58
|
+
selfLink?: string;
|
|
59
|
+
/** The count of posts in this blog. */
|
|
60
|
+
totalItems?: number;
|
|
61
|
+
};
|
|
62
|
+
/** RFC 3339 date-time when this blog was published. */
|
|
63
|
+
published?: string;
|
|
64
|
+
/** The API REST URL to fetch this resource from. */
|
|
65
|
+
selfLink?: string;
|
|
66
|
+
/** The status of the blog. */
|
|
67
|
+
status?: string;
|
|
68
|
+
/** RFC 3339 date-time when this blog was last updated. */
|
|
69
|
+
updated?: string;
|
|
70
|
+
/** The URL where this blog is published. */
|
|
71
|
+
url?: string;
|
|
72
|
+
}
|
|
73
|
+
interface BlogList {
|
|
74
|
+
/** Admin level list of blog per-user information. */
|
|
75
|
+
blogUserInfos?: BlogUserInfo[];
|
|
76
|
+
/** The list of Blogs this user has Authorship or Admin rights over. */
|
|
77
|
+
items?: Blog[];
|
|
78
|
+
/** The kind of this entity. Always blogger#blogList. */
|
|
79
|
+
kind?: string;
|
|
80
|
+
}
|
|
81
|
+
interface BlogPerUserInfo {
|
|
82
|
+
/** ID of the Blog resource. */
|
|
83
|
+
blogId?: string;
|
|
84
|
+
/** True if the user has Admin level access to the blog. */
|
|
85
|
+
hasAdminAccess?: boolean;
|
|
86
|
+
/** The kind of this entity. Always blogger#blogPerUserInfo. */
|
|
87
|
+
kind?: string;
|
|
88
|
+
/** The Photo Album Key for the user when adding photos to the blog. */
|
|
89
|
+
photosAlbumKey?: string;
|
|
90
|
+
/** Access permissions that the user has for the blog (ADMIN, AUTHOR, or READER). */
|
|
91
|
+
role?: string;
|
|
92
|
+
/** ID of the User. */
|
|
93
|
+
userId?: string;
|
|
94
|
+
}
|
|
95
|
+
interface BlogUserInfo {
|
|
96
|
+
/** The Blog resource. */
|
|
97
|
+
blog?: Blog;
|
|
98
|
+
/** Information about a User for the Blog. */
|
|
99
|
+
blog_user_info?: BlogPerUserInfo;
|
|
100
|
+
/** The kind of this entity. Always blogger#blogUserInfo. */
|
|
101
|
+
kind?: string;
|
|
102
|
+
}
|
|
103
|
+
interface Comment {
|
|
104
|
+
/** The author of this Comment. */
|
|
105
|
+
author?: {
|
|
106
|
+
/** The display name. */
|
|
107
|
+
displayName?: string;
|
|
108
|
+
/** The identifier of the creator. */
|
|
109
|
+
id?: string;
|
|
110
|
+
/** The creator's avatar. */
|
|
111
|
+
image?: {
|
|
112
|
+
/** The creator's avatar URL. */
|
|
113
|
+
url?: string;
|
|
114
|
+
};
|
|
115
|
+
/** The URL of the creator's Profile page. */
|
|
116
|
+
url?: string;
|
|
117
|
+
};
|
|
118
|
+
/** Data about the blog containing this comment. */
|
|
119
|
+
blog?: {
|
|
120
|
+
/** The identifier of the blog containing this comment. */
|
|
121
|
+
id?: string;
|
|
122
|
+
};
|
|
123
|
+
/** The actual content of the comment. May include HTML markup. */
|
|
124
|
+
content?: string;
|
|
125
|
+
/** The identifier for this resource. */
|
|
126
|
+
id?: string;
|
|
127
|
+
/** Data about the comment this is in reply to. */
|
|
128
|
+
inReplyTo?: {
|
|
129
|
+
/** The identified of the parent of this comment. */
|
|
130
|
+
id?: string;
|
|
131
|
+
};
|
|
132
|
+
/** The kind of this entry. Always blogger#comment. */
|
|
133
|
+
kind?: string;
|
|
134
|
+
/** Data about the post containing this comment. */
|
|
135
|
+
post?: {
|
|
136
|
+
/** The identifier of the post containing this comment. */
|
|
137
|
+
id?: string;
|
|
138
|
+
};
|
|
139
|
+
/** RFC 3339 date-time when this comment was published. */
|
|
140
|
+
published?: string;
|
|
141
|
+
/** The API REST URL to fetch this resource from. */
|
|
142
|
+
selfLink?: string;
|
|
143
|
+
/** The status of the comment (only populated for admin users). */
|
|
144
|
+
status?: string;
|
|
145
|
+
/** RFC 3339 date-time when this comment was last updated. */
|
|
146
|
+
updated?: string;
|
|
147
|
+
}
|
|
148
|
+
interface CommentList {
|
|
149
|
+
/** Etag of the response. */
|
|
150
|
+
etag?: string;
|
|
151
|
+
/** The List of Comments for a Post. */
|
|
152
|
+
items?: Comment[];
|
|
153
|
+
/** The kind of this entry. Always blogger#commentList. */
|
|
154
|
+
kind?: string;
|
|
155
|
+
/** Pagination token to fetch the next page, if one exists. */
|
|
156
|
+
nextPageToken?: string;
|
|
157
|
+
/** Pagination token to fetch the previous page, if one exists. */
|
|
158
|
+
prevPageToken?: string;
|
|
159
|
+
}
|
|
160
|
+
interface Page {
|
|
161
|
+
/** The author of this Page. */
|
|
162
|
+
author?: {
|
|
163
|
+
/** The display name. */
|
|
164
|
+
displayName?: string;
|
|
165
|
+
/** The identifier of the creator. */
|
|
166
|
+
id?: string;
|
|
167
|
+
/** The creator's avatar. */
|
|
168
|
+
image?: {
|
|
169
|
+
/** The creator's avatar URL. */
|
|
170
|
+
url?: string;
|
|
171
|
+
};
|
|
172
|
+
/** The URL of the creator's Profile page. */
|
|
173
|
+
url?: string;
|
|
174
|
+
};
|
|
175
|
+
/** Data about the blog containing this Page. */
|
|
176
|
+
blog?: {
|
|
177
|
+
/** The identifier of the blog containing this page. */
|
|
178
|
+
id?: string;
|
|
179
|
+
};
|
|
180
|
+
/** The body content of this Page, in HTML. */
|
|
181
|
+
content?: string;
|
|
182
|
+
/** Etag of the resource. */
|
|
183
|
+
etag?: string;
|
|
184
|
+
/** The identifier for this resource. */
|
|
185
|
+
id?: string;
|
|
186
|
+
/** The kind of this entity. Always blogger#page. */
|
|
187
|
+
kind?: string;
|
|
188
|
+
/** RFC 3339 date-time when this Page was published. */
|
|
189
|
+
published?: string;
|
|
190
|
+
/** The API REST URL to fetch this resource from. */
|
|
191
|
+
selfLink?: string;
|
|
192
|
+
/** The status of the page for admin resources (either LIVE or DRAFT). */
|
|
193
|
+
status?: string;
|
|
194
|
+
/** The title of this entity. This is the name displayed in the Admin user interface. */
|
|
195
|
+
title?: string;
|
|
196
|
+
/** RFC 3339 date-time when this Page was trashed. */
|
|
197
|
+
trashed?: string;
|
|
198
|
+
/** RFC 3339 date-time when this Page was last updated. */
|
|
199
|
+
updated?: string;
|
|
200
|
+
/** The URL that this Page is displayed at. */
|
|
201
|
+
url?: string;
|
|
202
|
+
}
|
|
203
|
+
interface PageList {
|
|
204
|
+
/** Etag of the response. */
|
|
205
|
+
etag?: string;
|
|
206
|
+
/** The list of Pages for a Blog. */
|
|
207
|
+
items?: Page[];
|
|
208
|
+
/** The kind of this entity. Always blogger#pageList. */
|
|
209
|
+
kind?: string;
|
|
210
|
+
/** Pagination token to fetch the next page, if one exists. */
|
|
211
|
+
nextPageToken?: string;
|
|
212
|
+
}
|
|
213
|
+
interface Pageviews {
|
|
214
|
+
/** Blog Id. */
|
|
215
|
+
blogId?: string;
|
|
216
|
+
/** The container of posts in this blog. */
|
|
217
|
+
counts?: Array<{
|
|
218
|
+
/** Count of page views for the given time range. */
|
|
219
|
+
count?: string;
|
|
220
|
+
/** Time range the given count applies to. */
|
|
221
|
+
timeRange?: string;
|
|
222
|
+
}>;
|
|
223
|
+
/** The kind of this entry. Always blogger#page_views. */
|
|
224
|
+
kind?: string;
|
|
225
|
+
}
|
|
226
|
+
interface Post {
|
|
227
|
+
/** The author of this Post. */
|
|
228
|
+
author?: {
|
|
229
|
+
/** The display name. */
|
|
230
|
+
displayName?: string;
|
|
231
|
+
/** The identifier of the creator. */
|
|
232
|
+
id?: string;
|
|
233
|
+
/** The creator's avatar. */
|
|
234
|
+
image?: {
|
|
235
|
+
/** The creator's avatar URL. */
|
|
236
|
+
url?: string;
|
|
237
|
+
};
|
|
238
|
+
/** The URL of the creator's Profile page. */
|
|
239
|
+
url?: string;
|
|
240
|
+
};
|
|
241
|
+
/** Data about the blog containing this Post. */
|
|
242
|
+
blog?: {
|
|
243
|
+
/** The identifier of the Blog that contains this Post. */
|
|
244
|
+
id?: string;
|
|
245
|
+
};
|
|
246
|
+
/** The content of the Post. May contain HTML markup. */
|
|
247
|
+
content?: string;
|
|
248
|
+
/** The JSON meta-data for the Post. */
|
|
249
|
+
customMetaData?: string;
|
|
250
|
+
/** Etag of the resource. */
|
|
251
|
+
etag?: string;
|
|
252
|
+
/** The identifier of this Post. */
|
|
253
|
+
id?: string;
|
|
254
|
+
/** Display image for the Post. */
|
|
255
|
+
images?: Array<{
|
|
256
|
+
url?: string;
|
|
257
|
+
}>;
|
|
258
|
+
/** The kind of this entity. Always blogger#post. */
|
|
259
|
+
kind?: string;
|
|
260
|
+
/** The list of labels this Post was tagged with. */
|
|
261
|
+
labels?: string[];
|
|
262
|
+
/** The location for geotagged posts. */
|
|
263
|
+
location?: {
|
|
264
|
+
/** Location's latitude. */
|
|
265
|
+
lat?: number;
|
|
266
|
+
/** Location's longitude. */
|
|
267
|
+
lng?: number;
|
|
268
|
+
/** Location name. */
|
|
269
|
+
name?: string;
|
|
270
|
+
/** Location's viewport span. Can be used when rendering a map preview. */
|
|
271
|
+
span?: string;
|
|
272
|
+
};
|
|
273
|
+
/** RFC 3339 date-time when this Post was published. */
|
|
274
|
+
published?: string;
|
|
275
|
+
/** Comment control and display setting for readers of this post. */
|
|
276
|
+
readerComments?: string;
|
|
277
|
+
/** The container of comments on this Post. */
|
|
278
|
+
replies?: {
|
|
279
|
+
/** The List of Comments for this Post. */
|
|
280
|
+
items?: Comment[];
|
|
281
|
+
/** The URL of the comments on this post. */
|
|
282
|
+
selfLink?: string;
|
|
283
|
+
/** The count of comments on this post. */
|
|
284
|
+
totalItems?: string;
|
|
285
|
+
};
|
|
286
|
+
/** The API REST URL to fetch this resource from. */
|
|
287
|
+
selfLink?: string;
|
|
288
|
+
/** Status of the post. Only set for admin-level requests. */
|
|
289
|
+
status?: string;
|
|
290
|
+
/** The title of the Post. */
|
|
291
|
+
title?: string;
|
|
292
|
+
/** The title link URL, similar to atom's related link. */
|
|
293
|
+
titleLink?: string;
|
|
294
|
+
/** RFC 3339 date-time when this Post was last trashed. */
|
|
295
|
+
trashed?: string;
|
|
296
|
+
/** RFC 3339 date-time when this Post was last updated. */
|
|
297
|
+
updated?: string;
|
|
298
|
+
/** The URL where this Post is displayed. */
|
|
299
|
+
url?: string;
|
|
300
|
+
}
|
|
301
|
+
interface PostList {
|
|
302
|
+
/** Etag of the response. */
|
|
303
|
+
etag?: string;
|
|
304
|
+
/** The list of Posts for this Blog. */
|
|
305
|
+
items?: Post[];
|
|
306
|
+
/** The kind of this entity. Always blogger#postList. */
|
|
307
|
+
kind?: string;
|
|
308
|
+
/** Pagination token to fetch the next page, if one exists. */
|
|
309
|
+
nextPageToken?: string;
|
|
310
|
+
/** Pagination token to fetch the previous page, if one exists. */
|
|
311
|
+
prevPageToken?: string;
|
|
312
|
+
}
|
|
313
|
+
interface PostPerUserInfo {
|
|
314
|
+
/** ID of the Blog that the post resource belongs to. */
|
|
315
|
+
blogId?: string;
|
|
316
|
+
/** True if the user has Author level access to the post. */
|
|
317
|
+
hasEditAccess?: boolean;
|
|
318
|
+
/** The kind of this entity. Always blogger#postPerUserInfo. */
|
|
319
|
+
kind?: string;
|
|
320
|
+
/** ID of the Post resource. */
|
|
321
|
+
postId?: string;
|
|
322
|
+
/** ID of the User. */
|
|
323
|
+
userId?: string;
|
|
324
|
+
}
|
|
325
|
+
interface PostUserInfo {
|
|
326
|
+
/** The kind of this entity. Always blogger#postUserInfo. */
|
|
327
|
+
kind?: string;
|
|
328
|
+
/** The Post resource. */
|
|
329
|
+
post?: Post;
|
|
330
|
+
/** Information about a User for the Post. */
|
|
331
|
+
post_user_info?: PostPerUserInfo;
|
|
332
|
+
}
|
|
333
|
+
interface PostUserInfosList {
|
|
334
|
+
/** The list of Posts with User information for the post, for this Blog. */
|
|
335
|
+
items?: PostUserInfo[];
|
|
336
|
+
/** The kind of this entity. Always blogger#postList. */
|
|
337
|
+
kind?: string;
|
|
338
|
+
/** Pagination token to fetch the next page, if one exists. */
|
|
339
|
+
nextPageToken?: string;
|
|
340
|
+
}
|
|
341
|
+
interface User {
|
|
342
|
+
/** Profile summary information. */
|
|
343
|
+
about?: string;
|
|
344
|
+
/** The container of blogs for this user. */
|
|
345
|
+
blogs?: {
|
|
346
|
+
/** The URL of the Blogs for this user. */
|
|
347
|
+
selfLink?: string;
|
|
348
|
+
};
|
|
349
|
+
/** The timestamp of when this profile was created, in seconds since epoch. */
|
|
350
|
+
created?: string;
|
|
351
|
+
/** The display name. */
|
|
352
|
+
displayName?: string;
|
|
353
|
+
/** The identifier for this User. */
|
|
354
|
+
id?: string;
|
|
355
|
+
/** The kind of this entity. Always blogger#user. */
|
|
356
|
+
kind?: string;
|
|
357
|
+
/** This user's locale */
|
|
358
|
+
locale?: {
|
|
359
|
+
/** The country this blog's locale is set to. */
|
|
360
|
+
country?: string;
|
|
361
|
+
/** The language this blog is authored in. */
|
|
362
|
+
language?: string;
|
|
363
|
+
/** The language variant this blog is authored in. */
|
|
364
|
+
variant?: string;
|
|
365
|
+
};
|
|
366
|
+
/** The API REST URL to fetch this resource from. */
|
|
367
|
+
selfLink?: string;
|
|
368
|
+
/** The user's profile page. */
|
|
369
|
+
url?: string;
|
|
370
|
+
}
|
|
371
|
+
interface BlogsResource {
|
|
372
|
+
/** Gets a blog by id. */
|
|
373
|
+
get(request?: {
|
|
374
|
+
/** V1 error format. */
|
|
375
|
+
"$.xgafv"?: string;
|
|
376
|
+
/** OAuth access token. */
|
|
377
|
+
access_token?: string;
|
|
378
|
+
/** Data format for response. */
|
|
379
|
+
alt?: string;
|
|
380
|
+
blogId: string;
|
|
381
|
+
/** JSONP */
|
|
382
|
+
callback?: string;
|
|
383
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
384
|
+
fields?: string;
|
|
385
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
386
|
+
key?: string;
|
|
387
|
+
maxPosts?: number;
|
|
388
|
+
/** OAuth 2.0 token for the current user. */
|
|
389
|
+
oauth_token?: string;
|
|
390
|
+
/** Returns response with indentations and line breaks. */
|
|
391
|
+
prettyPrint?: boolean;
|
|
392
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
393
|
+
quotaUser?: string;
|
|
394
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
395
|
+
upload_protocol?: string;
|
|
396
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
397
|
+
uploadType?: string;
|
|
398
|
+
view?: string;
|
|
399
|
+
}): Request<Blog>;
|
|
400
|
+
/** Gets a blog by url. */
|
|
401
|
+
getByUrl(request?: {
|
|
402
|
+
/** V1 error format. */
|
|
403
|
+
"$.xgafv"?: string;
|
|
404
|
+
/** OAuth access token. */
|
|
405
|
+
access_token?: string;
|
|
406
|
+
/** Data format for response. */
|
|
407
|
+
alt?: string;
|
|
408
|
+
/** JSONP */
|
|
409
|
+
callback?: string;
|
|
410
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
411
|
+
fields?: string;
|
|
412
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
413
|
+
key?: string;
|
|
414
|
+
/** OAuth 2.0 token for the current user. */
|
|
415
|
+
oauth_token?: string;
|
|
416
|
+
/** Returns response with indentations and line breaks. */
|
|
417
|
+
prettyPrint?: boolean;
|
|
418
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
419
|
+
quotaUser?: string;
|
|
420
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
421
|
+
upload_protocol?: string;
|
|
422
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
423
|
+
uploadType?: string;
|
|
424
|
+
url: string;
|
|
425
|
+
view?: string;
|
|
426
|
+
}): Request<Blog>;
|
|
427
|
+
/** Lists blogs by user. */
|
|
428
|
+
listByUser(request?: {
|
|
429
|
+
/** V1 error format. */
|
|
430
|
+
"$.xgafv"?: string;
|
|
431
|
+
/** OAuth access token. */
|
|
432
|
+
access_token?: string;
|
|
433
|
+
/** Data format for response. */
|
|
434
|
+
alt?: string;
|
|
435
|
+
/** JSONP */
|
|
436
|
+
callback?: string;
|
|
437
|
+
fetchUserInfo?: boolean;
|
|
438
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
439
|
+
fields?: string;
|
|
440
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
441
|
+
key?: string;
|
|
442
|
+
/** OAuth 2.0 token for the current user. */
|
|
443
|
+
oauth_token?: string;
|
|
444
|
+
/** Returns response with indentations and line breaks. */
|
|
445
|
+
prettyPrint?: boolean;
|
|
446
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
447
|
+
quotaUser?: string;
|
|
448
|
+
role?: string | string[];
|
|
449
|
+
/** Default value of status is LIVE. */
|
|
450
|
+
status?: string | string[];
|
|
451
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
452
|
+
upload_protocol?: string;
|
|
453
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
454
|
+
uploadType?: string;
|
|
455
|
+
userId: string;
|
|
456
|
+
view?: string;
|
|
457
|
+
}): Request<BlogList>;
|
|
458
|
+
}
|
|
459
|
+
interface BlogUserInfosResource {
|
|
460
|
+
/** Gets one blog and user info pair by blog id and user id. */
|
|
461
|
+
get(request?: {
|
|
462
|
+
/** V1 error format. */
|
|
463
|
+
"$.xgafv"?: string;
|
|
464
|
+
/** OAuth access token. */
|
|
465
|
+
access_token?: string;
|
|
466
|
+
/** Data format for response. */
|
|
467
|
+
alt?: string;
|
|
468
|
+
blogId: string;
|
|
469
|
+
/** JSONP */
|
|
470
|
+
callback?: string;
|
|
471
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
472
|
+
fields?: string;
|
|
473
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
474
|
+
key?: string;
|
|
475
|
+
maxPosts?: number;
|
|
476
|
+
/** OAuth 2.0 token for the current user. */
|
|
477
|
+
oauth_token?: string;
|
|
478
|
+
/** Returns response with indentations and line breaks. */
|
|
479
|
+
prettyPrint?: boolean;
|
|
480
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
481
|
+
quotaUser?: string;
|
|
482
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
483
|
+
upload_protocol?: string;
|
|
484
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
485
|
+
uploadType?: string;
|
|
486
|
+
userId: string;
|
|
487
|
+
}): Request<BlogUserInfo>;
|
|
488
|
+
}
|
|
489
|
+
interface CommentsResource {
|
|
490
|
+
/** Marks a comment as not spam by blog id, post id and comment id. */
|
|
491
|
+
approve(request?: {
|
|
492
|
+
/** V1 error format. */
|
|
493
|
+
"$.xgafv"?: string;
|
|
494
|
+
/** OAuth access token. */
|
|
495
|
+
access_token?: string;
|
|
496
|
+
/** Data format for response. */
|
|
497
|
+
alt?: string;
|
|
498
|
+
blogId: string;
|
|
499
|
+
/** JSONP */
|
|
500
|
+
callback?: string;
|
|
501
|
+
commentId: string;
|
|
502
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
503
|
+
fields?: string;
|
|
504
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
505
|
+
key?: string;
|
|
506
|
+
/** OAuth 2.0 token for the current user. */
|
|
507
|
+
oauth_token?: string;
|
|
508
|
+
postId: string;
|
|
509
|
+
/** Returns response with indentations and line breaks. */
|
|
510
|
+
prettyPrint?: boolean;
|
|
511
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
512
|
+
quotaUser?: string;
|
|
513
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
514
|
+
upload_protocol?: string;
|
|
515
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
516
|
+
uploadType?: string;
|
|
517
|
+
}): Request<Comment>;
|
|
518
|
+
/** Deletes a comment by blog id, post id and comment id. */
|
|
519
|
+
delete(request?: {
|
|
520
|
+
/** V1 error format. */
|
|
521
|
+
"$.xgafv"?: string;
|
|
522
|
+
/** OAuth access token. */
|
|
523
|
+
access_token?: string;
|
|
524
|
+
/** Data format for response. */
|
|
525
|
+
alt?: string;
|
|
526
|
+
blogId: string;
|
|
527
|
+
/** JSONP */
|
|
528
|
+
callback?: string;
|
|
529
|
+
commentId: string;
|
|
530
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
531
|
+
fields?: string;
|
|
532
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
533
|
+
key?: string;
|
|
534
|
+
/** OAuth 2.0 token for the current user. */
|
|
535
|
+
oauth_token?: string;
|
|
536
|
+
postId: string;
|
|
537
|
+
/** Returns response with indentations and line breaks. */
|
|
538
|
+
prettyPrint?: boolean;
|
|
539
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
540
|
+
quotaUser?: string;
|
|
541
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
542
|
+
upload_protocol?: string;
|
|
543
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
544
|
+
uploadType?: string;
|
|
545
|
+
}): Request<void>;
|
|
546
|
+
/** Gets a comment by id. */
|
|
547
|
+
get(request?: {
|
|
548
|
+
/** V1 error format. */
|
|
549
|
+
"$.xgafv"?: string;
|
|
550
|
+
/** OAuth access token. */
|
|
551
|
+
access_token?: string;
|
|
552
|
+
/** Data format for response. */
|
|
553
|
+
alt?: string;
|
|
554
|
+
blogId: string;
|
|
555
|
+
/** JSONP */
|
|
556
|
+
callback?: string;
|
|
557
|
+
commentId: string;
|
|
558
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
559
|
+
fields?: string;
|
|
560
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
561
|
+
key?: string;
|
|
562
|
+
/** OAuth 2.0 token for the current user. */
|
|
563
|
+
oauth_token?: string;
|
|
564
|
+
postId: string;
|
|
565
|
+
/** Returns response with indentations and line breaks. */
|
|
566
|
+
prettyPrint?: boolean;
|
|
567
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
568
|
+
quotaUser?: string;
|
|
569
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
570
|
+
upload_protocol?: string;
|
|
571
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
572
|
+
uploadType?: string;
|
|
573
|
+
view?: string;
|
|
574
|
+
}): Request<Comment>;
|
|
575
|
+
/** Lists comments. */
|
|
576
|
+
list(request?: {
|
|
577
|
+
/** V1 error format. */
|
|
578
|
+
"$.xgafv"?: string;
|
|
579
|
+
/** OAuth access token. */
|
|
580
|
+
access_token?: string;
|
|
581
|
+
/** Data format for response. */
|
|
582
|
+
alt?: string;
|
|
583
|
+
blogId: string;
|
|
584
|
+
/** JSONP */
|
|
585
|
+
callback?: string;
|
|
586
|
+
endDate?: string;
|
|
587
|
+
fetchBodies?: boolean;
|
|
588
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
589
|
+
fields?: string;
|
|
590
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
591
|
+
key?: string;
|
|
592
|
+
maxResults?: number;
|
|
593
|
+
/** OAuth 2.0 token for the current user. */
|
|
594
|
+
oauth_token?: string;
|
|
595
|
+
pageToken?: string;
|
|
596
|
+
postId: string;
|
|
597
|
+
/** Returns response with indentations and line breaks. */
|
|
598
|
+
prettyPrint?: boolean;
|
|
599
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
600
|
+
quotaUser?: string;
|
|
601
|
+
startDate?: string;
|
|
602
|
+
status?: string;
|
|
603
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
604
|
+
upload_protocol?: string;
|
|
605
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
606
|
+
uploadType?: string;
|
|
607
|
+
view?: string;
|
|
608
|
+
}): Request<CommentList>;
|
|
609
|
+
/** Lists comments by blog. */
|
|
610
|
+
listByBlog(request?: {
|
|
611
|
+
/** V1 error format. */
|
|
612
|
+
"$.xgafv"?: string;
|
|
613
|
+
/** OAuth access token. */
|
|
614
|
+
access_token?: string;
|
|
615
|
+
/** Data format for response. */
|
|
616
|
+
alt?: string;
|
|
617
|
+
blogId: string;
|
|
618
|
+
/** JSONP */
|
|
619
|
+
callback?: string;
|
|
620
|
+
endDate?: string;
|
|
621
|
+
fetchBodies?: boolean;
|
|
622
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
623
|
+
fields?: string;
|
|
624
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
625
|
+
key?: string;
|
|
626
|
+
maxResults?: number;
|
|
627
|
+
/** OAuth 2.0 token for the current user. */
|
|
628
|
+
oauth_token?: string;
|
|
629
|
+
pageToken?: string;
|
|
630
|
+
/** Returns response with indentations and line breaks. */
|
|
631
|
+
prettyPrint?: boolean;
|
|
632
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
633
|
+
quotaUser?: string;
|
|
634
|
+
startDate?: string;
|
|
635
|
+
status?: string | string[];
|
|
636
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
637
|
+
upload_protocol?: string;
|
|
638
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
639
|
+
uploadType?: string;
|
|
640
|
+
}): Request<CommentList>;
|
|
641
|
+
/** Marks a comment as spam by blog id, post id and comment id. */
|
|
642
|
+
markAsSpam(request?: {
|
|
643
|
+
/** V1 error format. */
|
|
644
|
+
"$.xgafv"?: string;
|
|
645
|
+
/** OAuth access token. */
|
|
646
|
+
access_token?: string;
|
|
647
|
+
/** Data format for response. */
|
|
648
|
+
alt?: string;
|
|
649
|
+
blogId: string;
|
|
650
|
+
/** JSONP */
|
|
651
|
+
callback?: string;
|
|
652
|
+
commentId: string;
|
|
653
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
654
|
+
fields?: string;
|
|
655
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
656
|
+
key?: string;
|
|
657
|
+
/** OAuth 2.0 token for the current user. */
|
|
658
|
+
oauth_token?: string;
|
|
659
|
+
postId: string;
|
|
660
|
+
/** Returns response with indentations and line breaks. */
|
|
661
|
+
prettyPrint?: boolean;
|
|
662
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
663
|
+
quotaUser?: string;
|
|
664
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
665
|
+
upload_protocol?: string;
|
|
666
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
667
|
+
uploadType?: string;
|
|
668
|
+
}): Request<Comment>;
|
|
669
|
+
/** Removes the content of a comment by blog id, post id and comment id. */
|
|
670
|
+
removeContent(request?: {
|
|
671
|
+
/** V1 error format. */
|
|
672
|
+
"$.xgafv"?: string;
|
|
673
|
+
/** OAuth access token. */
|
|
674
|
+
access_token?: string;
|
|
675
|
+
/** Data format for response. */
|
|
676
|
+
alt?: string;
|
|
677
|
+
blogId: string;
|
|
678
|
+
/** JSONP */
|
|
679
|
+
callback?: string;
|
|
680
|
+
commentId: string;
|
|
681
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
682
|
+
fields?: string;
|
|
683
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
684
|
+
key?: string;
|
|
685
|
+
/** OAuth 2.0 token for the current user. */
|
|
686
|
+
oauth_token?: string;
|
|
687
|
+
postId: string;
|
|
688
|
+
/** Returns response with indentations and line breaks. */
|
|
689
|
+
prettyPrint?: boolean;
|
|
690
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
691
|
+
quotaUser?: string;
|
|
692
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
693
|
+
upload_protocol?: string;
|
|
694
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
695
|
+
uploadType?: string;
|
|
696
|
+
}): Request<Comment>;
|
|
697
|
+
}
|
|
698
|
+
interface PagesResource {
|
|
699
|
+
/** Deletes a page by blog id and page id. */
|
|
700
|
+
delete(request?: {
|
|
701
|
+
/** V1 error format. */
|
|
702
|
+
"$.xgafv"?: string;
|
|
703
|
+
/** OAuth access token. */
|
|
704
|
+
access_token?: string;
|
|
705
|
+
/** Data format for response. */
|
|
706
|
+
alt?: string;
|
|
707
|
+
blogId: string;
|
|
708
|
+
/** JSONP */
|
|
709
|
+
callback?: string;
|
|
710
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
711
|
+
fields?: string;
|
|
712
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
713
|
+
key?: string;
|
|
714
|
+
/** OAuth 2.0 token for the current user. */
|
|
715
|
+
oauth_token?: string;
|
|
716
|
+
pageId: string;
|
|
717
|
+
/** Returns response with indentations and line breaks. */
|
|
718
|
+
prettyPrint?: boolean;
|
|
719
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
720
|
+
quotaUser?: string;
|
|
721
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
722
|
+
upload_protocol?: string;
|
|
723
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
724
|
+
uploadType?: string;
|
|
725
|
+
}): Request<void>;
|
|
726
|
+
/** Gets a page by blog id and page id. */
|
|
727
|
+
get(request?: {
|
|
728
|
+
/** V1 error format. */
|
|
729
|
+
"$.xgafv"?: string;
|
|
730
|
+
/** OAuth access token. */
|
|
731
|
+
access_token?: string;
|
|
732
|
+
/** Data format for response. */
|
|
733
|
+
alt?: string;
|
|
734
|
+
blogId: string;
|
|
735
|
+
/** JSONP */
|
|
736
|
+
callback?: string;
|
|
737
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
738
|
+
fields?: string;
|
|
739
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
740
|
+
key?: string;
|
|
741
|
+
/** OAuth 2.0 token for the current user. */
|
|
742
|
+
oauth_token?: string;
|
|
743
|
+
pageId: string;
|
|
744
|
+
/** Returns response with indentations and line breaks. */
|
|
745
|
+
prettyPrint?: boolean;
|
|
746
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
747
|
+
quotaUser?: string;
|
|
748
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
749
|
+
upload_protocol?: string;
|
|
750
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
751
|
+
uploadType?: string;
|
|
752
|
+
view?: string;
|
|
753
|
+
}): Request<Page>;
|
|
754
|
+
/** Inserts a page. */
|
|
755
|
+
insert(request: {
|
|
756
|
+
/** V1 error format. */
|
|
757
|
+
"$.xgafv"?: string;
|
|
758
|
+
/** OAuth access token. */
|
|
759
|
+
access_token?: string;
|
|
760
|
+
/** Data format for response. */
|
|
761
|
+
alt?: string;
|
|
762
|
+
blogId: string;
|
|
763
|
+
/** JSONP */
|
|
764
|
+
callback?: string;
|
|
765
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
766
|
+
fields?: string;
|
|
767
|
+
isDraft?: boolean;
|
|
768
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
769
|
+
key?: string;
|
|
770
|
+
/** OAuth 2.0 token for the current user. */
|
|
771
|
+
oauth_token?: string;
|
|
772
|
+
/** Returns response with indentations and line breaks. */
|
|
773
|
+
prettyPrint?: boolean;
|
|
774
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
775
|
+
quotaUser?: string;
|
|
776
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
777
|
+
upload_protocol?: string;
|
|
778
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
779
|
+
uploadType?: string;
|
|
780
|
+
/** Request body */
|
|
781
|
+
resource: Page;
|
|
782
|
+
}): Request<Page>;
|
|
783
|
+
insert(request: {
|
|
784
|
+
/** V1 error format. */
|
|
785
|
+
"$.xgafv"?: string;
|
|
786
|
+
/** OAuth access token. */
|
|
787
|
+
access_token?: string;
|
|
788
|
+
/** Data format for response. */
|
|
789
|
+
alt?: string;
|
|
790
|
+
blogId: string;
|
|
791
|
+
/** JSONP */
|
|
792
|
+
callback?: string;
|
|
793
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
794
|
+
fields?: string;
|
|
795
|
+
isDraft?: boolean;
|
|
796
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
797
|
+
key?: string;
|
|
798
|
+
/** OAuth 2.0 token for the current user. */
|
|
799
|
+
oauth_token?: string;
|
|
800
|
+
/** Returns response with indentations and line breaks. */
|
|
801
|
+
prettyPrint?: boolean;
|
|
802
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
803
|
+
quotaUser?: string;
|
|
804
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
805
|
+
upload_protocol?: string;
|
|
806
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
807
|
+
uploadType?: string;
|
|
808
|
+
},
|
|
809
|
+
body: Page): Request<Page>;
|
|
810
|
+
/** Lists pages. */
|
|
811
|
+
list(request?: {
|
|
812
|
+
/** V1 error format. */
|
|
813
|
+
"$.xgafv"?: string;
|
|
814
|
+
/** OAuth access token. */
|
|
815
|
+
access_token?: string;
|
|
816
|
+
/** Data format for response. */
|
|
817
|
+
alt?: string;
|
|
818
|
+
blogId: string;
|
|
819
|
+
/** JSONP */
|
|
820
|
+
callback?: string;
|
|
821
|
+
fetchBodies?: boolean;
|
|
822
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
823
|
+
fields?: string;
|
|
824
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
825
|
+
key?: string;
|
|
826
|
+
maxResults?: number;
|
|
827
|
+
/** OAuth 2.0 token for the current user. */
|
|
828
|
+
oauth_token?: string;
|
|
829
|
+
pageToken?: string;
|
|
830
|
+
/** Returns response with indentations and line breaks. */
|
|
831
|
+
prettyPrint?: boolean;
|
|
832
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
833
|
+
quotaUser?: string;
|
|
834
|
+
status?: string | string[];
|
|
835
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
836
|
+
upload_protocol?: string;
|
|
837
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
838
|
+
uploadType?: string;
|
|
839
|
+
view?: string;
|
|
840
|
+
}): Request<PageList>;
|
|
841
|
+
/** Patches a page. */
|
|
842
|
+
patch(request: {
|
|
843
|
+
/** V1 error format. */
|
|
844
|
+
"$.xgafv"?: string;
|
|
845
|
+
/** OAuth access token. */
|
|
846
|
+
access_token?: string;
|
|
847
|
+
/** Data format for response. */
|
|
848
|
+
alt?: string;
|
|
849
|
+
blogId: string;
|
|
850
|
+
/** JSONP */
|
|
851
|
+
callback?: string;
|
|
852
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
853
|
+
fields?: string;
|
|
854
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
855
|
+
key?: string;
|
|
856
|
+
/** OAuth 2.0 token for the current user. */
|
|
857
|
+
oauth_token?: string;
|
|
858
|
+
pageId: string;
|
|
859
|
+
/** Returns response with indentations and line breaks. */
|
|
860
|
+
prettyPrint?: boolean;
|
|
861
|
+
publish?: boolean;
|
|
862
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
863
|
+
quotaUser?: string;
|
|
864
|
+
revert?: boolean;
|
|
865
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
866
|
+
upload_protocol?: string;
|
|
867
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
868
|
+
uploadType?: string;
|
|
869
|
+
/** Request body */
|
|
870
|
+
resource: Page;
|
|
871
|
+
}): Request<Page>;
|
|
872
|
+
patch(request: {
|
|
873
|
+
/** V1 error format. */
|
|
874
|
+
"$.xgafv"?: string;
|
|
875
|
+
/** OAuth access token. */
|
|
876
|
+
access_token?: string;
|
|
877
|
+
/** Data format for response. */
|
|
878
|
+
alt?: string;
|
|
879
|
+
blogId: string;
|
|
880
|
+
/** JSONP */
|
|
881
|
+
callback?: string;
|
|
882
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
883
|
+
fields?: string;
|
|
884
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
885
|
+
key?: string;
|
|
886
|
+
/** OAuth 2.0 token for the current user. */
|
|
887
|
+
oauth_token?: string;
|
|
888
|
+
pageId: string;
|
|
889
|
+
/** Returns response with indentations and line breaks. */
|
|
890
|
+
prettyPrint?: boolean;
|
|
891
|
+
publish?: boolean;
|
|
892
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
893
|
+
quotaUser?: string;
|
|
894
|
+
revert?: boolean;
|
|
895
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
896
|
+
upload_protocol?: string;
|
|
897
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
898
|
+
uploadType?: string;
|
|
899
|
+
},
|
|
900
|
+
body: Page): Request<Page>;
|
|
901
|
+
/** Publishes a page. */
|
|
902
|
+
publish(request?: {
|
|
903
|
+
/** V1 error format. */
|
|
904
|
+
"$.xgafv"?: string;
|
|
905
|
+
/** OAuth access token. */
|
|
906
|
+
access_token?: string;
|
|
907
|
+
/** Data format for response. */
|
|
908
|
+
alt?: string;
|
|
909
|
+
blogId: string;
|
|
910
|
+
/** JSONP */
|
|
911
|
+
callback?: string;
|
|
912
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
913
|
+
fields?: string;
|
|
914
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
915
|
+
key?: string;
|
|
916
|
+
/** OAuth 2.0 token for the current user. */
|
|
917
|
+
oauth_token?: string;
|
|
918
|
+
pageId: string;
|
|
919
|
+
/** Returns response with indentations and line breaks. */
|
|
920
|
+
prettyPrint?: boolean;
|
|
921
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
922
|
+
quotaUser?: string;
|
|
923
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
924
|
+
upload_protocol?: string;
|
|
925
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
926
|
+
uploadType?: string;
|
|
927
|
+
}): Request<Page>;
|
|
928
|
+
/** Reverts a published or scheduled page to draft state. */
|
|
929
|
+
revert(request?: {
|
|
930
|
+
/** V1 error format. */
|
|
931
|
+
"$.xgafv"?: string;
|
|
932
|
+
/** OAuth access token. */
|
|
933
|
+
access_token?: string;
|
|
934
|
+
/** Data format for response. */
|
|
935
|
+
alt?: string;
|
|
936
|
+
blogId: string;
|
|
937
|
+
/** JSONP */
|
|
938
|
+
callback?: string;
|
|
939
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
940
|
+
fields?: string;
|
|
941
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
942
|
+
key?: string;
|
|
943
|
+
/** OAuth 2.0 token for the current user. */
|
|
944
|
+
oauth_token?: string;
|
|
945
|
+
pageId: string;
|
|
946
|
+
/** Returns response with indentations and line breaks. */
|
|
947
|
+
prettyPrint?: boolean;
|
|
948
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
949
|
+
quotaUser?: string;
|
|
950
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
951
|
+
upload_protocol?: string;
|
|
952
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
953
|
+
uploadType?: string;
|
|
954
|
+
}): Request<Page>;
|
|
955
|
+
/** Updates a page by blog id and page id. */
|
|
956
|
+
update(request: {
|
|
957
|
+
/** V1 error format. */
|
|
958
|
+
"$.xgafv"?: string;
|
|
959
|
+
/** OAuth access token. */
|
|
960
|
+
access_token?: string;
|
|
961
|
+
/** Data format for response. */
|
|
962
|
+
alt?: string;
|
|
963
|
+
blogId: string;
|
|
964
|
+
/** JSONP */
|
|
965
|
+
callback?: string;
|
|
966
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
967
|
+
fields?: string;
|
|
968
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
969
|
+
key?: string;
|
|
970
|
+
/** OAuth 2.0 token for the current user. */
|
|
971
|
+
oauth_token?: string;
|
|
972
|
+
pageId: string;
|
|
973
|
+
/** Returns response with indentations and line breaks. */
|
|
974
|
+
prettyPrint?: boolean;
|
|
975
|
+
publish?: boolean;
|
|
976
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
977
|
+
quotaUser?: string;
|
|
978
|
+
revert?: boolean;
|
|
979
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
980
|
+
upload_protocol?: string;
|
|
981
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
982
|
+
uploadType?: string;
|
|
983
|
+
/** Request body */
|
|
984
|
+
resource: Page;
|
|
985
|
+
}): Request<Page>;
|
|
986
|
+
update(request: {
|
|
987
|
+
/** V1 error format. */
|
|
988
|
+
"$.xgafv"?: string;
|
|
989
|
+
/** OAuth access token. */
|
|
990
|
+
access_token?: string;
|
|
991
|
+
/** Data format for response. */
|
|
992
|
+
alt?: string;
|
|
993
|
+
blogId: string;
|
|
994
|
+
/** JSONP */
|
|
995
|
+
callback?: string;
|
|
996
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
997
|
+
fields?: string;
|
|
998
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
999
|
+
key?: string;
|
|
1000
|
+
/** OAuth 2.0 token for the current user. */
|
|
1001
|
+
oauth_token?: string;
|
|
1002
|
+
pageId: string;
|
|
1003
|
+
/** Returns response with indentations and line breaks. */
|
|
1004
|
+
prettyPrint?: boolean;
|
|
1005
|
+
publish?: boolean;
|
|
1006
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1007
|
+
quotaUser?: string;
|
|
1008
|
+
revert?: boolean;
|
|
1009
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1010
|
+
upload_protocol?: string;
|
|
1011
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1012
|
+
uploadType?: string;
|
|
1013
|
+
},
|
|
1014
|
+
body: Page): Request<Page>;
|
|
1015
|
+
}
|
|
1016
|
+
interface PageViewsResource {
|
|
1017
|
+
/** Gets page views by blog id. */
|
|
1018
|
+
get(request?: {
|
|
1019
|
+
/** V1 error format. */
|
|
1020
|
+
"$.xgafv"?: string;
|
|
1021
|
+
/** OAuth access token. */
|
|
1022
|
+
access_token?: string;
|
|
1023
|
+
/** Data format for response. */
|
|
1024
|
+
alt?: string;
|
|
1025
|
+
blogId: string;
|
|
1026
|
+
/** JSONP */
|
|
1027
|
+
callback?: string;
|
|
1028
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1029
|
+
fields?: string;
|
|
1030
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1031
|
+
key?: string;
|
|
1032
|
+
/** OAuth 2.0 token for the current user. */
|
|
1033
|
+
oauth_token?: string;
|
|
1034
|
+
/** Returns response with indentations and line breaks. */
|
|
1035
|
+
prettyPrint?: boolean;
|
|
1036
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1037
|
+
quotaUser?: string;
|
|
1038
|
+
range?: string | string[];
|
|
1039
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1040
|
+
upload_protocol?: string;
|
|
1041
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1042
|
+
uploadType?: string;
|
|
1043
|
+
}): Request<Pageviews>;
|
|
1044
|
+
}
|
|
1045
|
+
interface PostsResource {
|
|
1046
|
+
/** Deletes a post by blog id and post id. */
|
|
1047
|
+
delete(request?: {
|
|
1048
|
+
/** V1 error format. */
|
|
1049
|
+
"$.xgafv"?: string;
|
|
1050
|
+
/** OAuth access token. */
|
|
1051
|
+
access_token?: string;
|
|
1052
|
+
/** Data format for response. */
|
|
1053
|
+
alt?: string;
|
|
1054
|
+
blogId: string;
|
|
1055
|
+
/** JSONP */
|
|
1056
|
+
callback?: string;
|
|
1057
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1058
|
+
fields?: string;
|
|
1059
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1060
|
+
key?: string;
|
|
1061
|
+
/** OAuth 2.0 token for the current user. */
|
|
1062
|
+
oauth_token?: string;
|
|
1063
|
+
postId: string;
|
|
1064
|
+
/** Returns response with indentations and line breaks. */
|
|
1065
|
+
prettyPrint?: boolean;
|
|
1066
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1067
|
+
quotaUser?: string;
|
|
1068
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1069
|
+
upload_protocol?: string;
|
|
1070
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1071
|
+
uploadType?: string;
|
|
1072
|
+
}): Request<void>;
|
|
1073
|
+
/** Gets a post by blog id and post id */
|
|
1074
|
+
get(request?: {
|
|
1075
|
+
/** V1 error format. */
|
|
1076
|
+
"$.xgafv"?: string;
|
|
1077
|
+
/** OAuth access token. */
|
|
1078
|
+
access_token?: string;
|
|
1079
|
+
/** Data format for response. */
|
|
1080
|
+
alt?: string;
|
|
1081
|
+
blogId: string;
|
|
1082
|
+
/** JSONP */
|
|
1083
|
+
callback?: string;
|
|
1084
|
+
fetchBody?: boolean;
|
|
1085
|
+
fetchImages?: boolean;
|
|
1086
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1087
|
+
fields?: string;
|
|
1088
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1089
|
+
key?: string;
|
|
1090
|
+
maxComments?: number;
|
|
1091
|
+
/** OAuth 2.0 token for the current user. */
|
|
1092
|
+
oauth_token?: string;
|
|
1093
|
+
postId: string;
|
|
1094
|
+
/** Returns response with indentations and line breaks. */
|
|
1095
|
+
prettyPrint?: boolean;
|
|
1096
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1097
|
+
quotaUser?: string;
|
|
1098
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1099
|
+
upload_protocol?: string;
|
|
1100
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1101
|
+
uploadType?: string;
|
|
1102
|
+
view?: string;
|
|
1103
|
+
}): Request<Post>;
|
|
1104
|
+
/** Gets a post by path. */
|
|
1105
|
+
getByPath(request?: {
|
|
1106
|
+
/** V1 error format. */
|
|
1107
|
+
"$.xgafv"?: string;
|
|
1108
|
+
/** OAuth access token. */
|
|
1109
|
+
access_token?: string;
|
|
1110
|
+
/** Data format for response. */
|
|
1111
|
+
alt?: string;
|
|
1112
|
+
blogId: string;
|
|
1113
|
+
/** JSONP */
|
|
1114
|
+
callback?: string;
|
|
1115
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1116
|
+
fields?: string;
|
|
1117
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1118
|
+
key?: string;
|
|
1119
|
+
maxComments?: number;
|
|
1120
|
+
/** OAuth 2.0 token for the current user. */
|
|
1121
|
+
oauth_token?: string;
|
|
1122
|
+
path: string;
|
|
1123
|
+
/** Returns response with indentations and line breaks. */
|
|
1124
|
+
prettyPrint?: boolean;
|
|
1125
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1126
|
+
quotaUser?: string;
|
|
1127
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1128
|
+
upload_protocol?: string;
|
|
1129
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1130
|
+
uploadType?: string;
|
|
1131
|
+
view?: string;
|
|
1132
|
+
}): Request<Post>;
|
|
1133
|
+
/** Inserts a post. */
|
|
1134
|
+
insert(request: {
|
|
1135
|
+
/** V1 error format. */
|
|
1136
|
+
"$.xgafv"?: string;
|
|
1137
|
+
/** OAuth access token. */
|
|
1138
|
+
access_token?: string;
|
|
1139
|
+
/** Data format for response. */
|
|
1140
|
+
alt?: string;
|
|
1141
|
+
blogId: string;
|
|
1142
|
+
/** JSONP */
|
|
1143
|
+
callback?: string;
|
|
1144
|
+
fetchBody?: boolean;
|
|
1145
|
+
fetchImages?: boolean;
|
|
1146
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1147
|
+
fields?: string;
|
|
1148
|
+
isDraft?: boolean;
|
|
1149
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1150
|
+
key?: string;
|
|
1151
|
+
/** OAuth 2.0 token for the current user. */
|
|
1152
|
+
oauth_token?: string;
|
|
1153
|
+
/** Returns response with indentations and line breaks. */
|
|
1154
|
+
prettyPrint?: boolean;
|
|
1155
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1156
|
+
quotaUser?: string;
|
|
1157
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1158
|
+
upload_protocol?: string;
|
|
1159
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1160
|
+
uploadType?: string;
|
|
1161
|
+
/** Request body */
|
|
1162
|
+
resource: Post;
|
|
1163
|
+
}): Request<Post>;
|
|
1164
|
+
insert(request: {
|
|
1165
|
+
/** V1 error format. */
|
|
1166
|
+
"$.xgafv"?: string;
|
|
1167
|
+
/** OAuth access token. */
|
|
1168
|
+
access_token?: string;
|
|
1169
|
+
/** Data format for response. */
|
|
1170
|
+
alt?: string;
|
|
1171
|
+
blogId: string;
|
|
1172
|
+
/** JSONP */
|
|
1173
|
+
callback?: string;
|
|
1174
|
+
fetchBody?: boolean;
|
|
1175
|
+
fetchImages?: boolean;
|
|
1176
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1177
|
+
fields?: string;
|
|
1178
|
+
isDraft?: boolean;
|
|
1179
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1180
|
+
key?: string;
|
|
1181
|
+
/** OAuth 2.0 token for the current user. */
|
|
1182
|
+
oauth_token?: string;
|
|
1183
|
+
/** Returns response with indentations and line breaks. */
|
|
1184
|
+
prettyPrint?: boolean;
|
|
1185
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1186
|
+
quotaUser?: string;
|
|
1187
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1188
|
+
upload_protocol?: string;
|
|
1189
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1190
|
+
uploadType?: string;
|
|
1191
|
+
},
|
|
1192
|
+
body: Post): Request<Post>;
|
|
1193
|
+
/** Lists posts. */
|
|
1194
|
+
list(request?: {
|
|
1195
|
+
/** V1 error format. */
|
|
1196
|
+
"$.xgafv"?: string;
|
|
1197
|
+
/** OAuth access token. */
|
|
1198
|
+
access_token?: string;
|
|
1199
|
+
/** Data format for response. */
|
|
1200
|
+
alt?: string;
|
|
1201
|
+
blogId: string;
|
|
1202
|
+
/** JSONP */
|
|
1203
|
+
callback?: string;
|
|
1204
|
+
endDate?: string;
|
|
1205
|
+
fetchBodies?: boolean;
|
|
1206
|
+
fetchImages?: boolean;
|
|
1207
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1208
|
+
fields?: string;
|
|
1209
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1210
|
+
key?: string;
|
|
1211
|
+
labels?: string;
|
|
1212
|
+
maxResults?: number;
|
|
1213
|
+
/** OAuth 2.0 token for the current user. */
|
|
1214
|
+
oauth_token?: string;
|
|
1215
|
+
orderBy?: string;
|
|
1216
|
+
pageToken?: string;
|
|
1217
|
+
/** Returns response with indentations and line breaks. */
|
|
1218
|
+
prettyPrint?: boolean;
|
|
1219
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1220
|
+
quotaUser?: string;
|
|
1221
|
+
startDate?: string;
|
|
1222
|
+
status?: string | string[];
|
|
1223
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1224
|
+
upload_protocol?: string;
|
|
1225
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1226
|
+
uploadType?: string;
|
|
1227
|
+
view?: string;
|
|
1228
|
+
}): Request<PostList>;
|
|
1229
|
+
/** Patches a post. */
|
|
1230
|
+
patch(request: {
|
|
1231
|
+
/** V1 error format. */
|
|
1232
|
+
"$.xgafv"?: string;
|
|
1233
|
+
/** OAuth access token. */
|
|
1234
|
+
access_token?: string;
|
|
1235
|
+
/** Data format for response. */
|
|
1236
|
+
alt?: string;
|
|
1237
|
+
blogId: string;
|
|
1238
|
+
/** JSONP */
|
|
1239
|
+
callback?: string;
|
|
1240
|
+
fetchBody?: boolean;
|
|
1241
|
+
fetchImages?: boolean;
|
|
1242
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1243
|
+
fields?: string;
|
|
1244
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1245
|
+
key?: string;
|
|
1246
|
+
maxComments?: number;
|
|
1247
|
+
/** OAuth 2.0 token for the current user. */
|
|
1248
|
+
oauth_token?: string;
|
|
1249
|
+
postId: string;
|
|
1250
|
+
/** Returns response with indentations and line breaks. */
|
|
1251
|
+
prettyPrint?: boolean;
|
|
1252
|
+
publish?: boolean;
|
|
1253
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1254
|
+
quotaUser?: string;
|
|
1255
|
+
revert?: boolean;
|
|
1256
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1257
|
+
upload_protocol?: string;
|
|
1258
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1259
|
+
uploadType?: string;
|
|
1260
|
+
/** Request body */
|
|
1261
|
+
resource: Post;
|
|
1262
|
+
}): Request<Post>;
|
|
1263
|
+
patch(request: {
|
|
1264
|
+
/** V1 error format. */
|
|
1265
|
+
"$.xgafv"?: string;
|
|
1266
|
+
/** OAuth access token. */
|
|
1267
|
+
access_token?: string;
|
|
1268
|
+
/** Data format for response. */
|
|
1269
|
+
alt?: string;
|
|
1270
|
+
blogId: string;
|
|
1271
|
+
/** JSONP */
|
|
1272
|
+
callback?: string;
|
|
1273
|
+
fetchBody?: boolean;
|
|
1274
|
+
fetchImages?: boolean;
|
|
1275
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1276
|
+
fields?: string;
|
|
1277
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1278
|
+
key?: string;
|
|
1279
|
+
maxComments?: number;
|
|
1280
|
+
/** OAuth 2.0 token for the current user. */
|
|
1281
|
+
oauth_token?: string;
|
|
1282
|
+
postId: string;
|
|
1283
|
+
/** Returns response with indentations and line breaks. */
|
|
1284
|
+
prettyPrint?: boolean;
|
|
1285
|
+
publish?: boolean;
|
|
1286
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1287
|
+
quotaUser?: string;
|
|
1288
|
+
revert?: boolean;
|
|
1289
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1290
|
+
upload_protocol?: string;
|
|
1291
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1292
|
+
uploadType?: string;
|
|
1293
|
+
},
|
|
1294
|
+
body: Post): Request<Post>;
|
|
1295
|
+
/** Publishes a post. */
|
|
1296
|
+
publish(request?: {
|
|
1297
|
+
/** V1 error format. */
|
|
1298
|
+
"$.xgafv"?: string;
|
|
1299
|
+
/** OAuth access token. */
|
|
1300
|
+
access_token?: string;
|
|
1301
|
+
/** Data format for response. */
|
|
1302
|
+
alt?: string;
|
|
1303
|
+
blogId: string;
|
|
1304
|
+
/** JSONP */
|
|
1305
|
+
callback?: string;
|
|
1306
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1307
|
+
fields?: string;
|
|
1308
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1309
|
+
key?: string;
|
|
1310
|
+
/** OAuth 2.0 token for the current user. */
|
|
1311
|
+
oauth_token?: string;
|
|
1312
|
+
postId: string;
|
|
1313
|
+
/** Returns response with indentations and line breaks. */
|
|
1314
|
+
prettyPrint?: boolean;
|
|
1315
|
+
publishDate?: string;
|
|
1316
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1317
|
+
quotaUser?: string;
|
|
1318
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1319
|
+
upload_protocol?: string;
|
|
1320
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1321
|
+
uploadType?: string;
|
|
1322
|
+
}): Request<Post>;
|
|
1323
|
+
/** Reverts a published or scheduled post to draft state. */
|
|
1324
|
+
revert(request?: {
|
|
1325
|
+
/** V1 error format. */
|
|
1326
|
+
"$.xgafv"?: string;
|
|
1327
|
+
/** OAuth access token. */
|
|
1328
|
+
access_token?: string;
|
|
1329
|
+
/** Data format for response. */
|
|
1330
|
+
alt?: string;
|
|
1331
|
+
blogId: string;
|
|
1332
|
+
/** JSONP */
|
|
1333
|
+
callback?: string;
|
|
1334
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1335
|
+
fields?: string;
|
|
1336
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1337
|
+
key?: string;
|
|
1338
|
+
/** OAuth 2.0 token for the current user. */
|
|
1339
|
+
oauth_token?: string;
|
|
1340
|
+
postId: string;
|
|
1341
|
+
/** Returns response with indentations and line breaks. */
|
|
1342
|
+
prettyPrint?: boolean;
|
|
1343
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1344
|
+
quotaUser?: string;
|
|
1345
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1346
|
+
upload_protocol?: string;
|
|
1347
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1348
|
+
uploadType?: string;
|
|
1349
|
+
}): Request<Post>;
|
|
1350
|
+
/** Searches for posts matching given query terms in the specified blog. */
|
|
1351
|
+
search(request?: {
|
|
1352
|
+
/** V1 error format. */
|
|
1353
|
+
"$.xgafv"?: string;
|
|
1354
|
+
/** OAuth access token. */
|
|
1355
|
+
access_token?: string;
|
|
1356
|
+
/** Data format for response. */
|
|
1357
|
+
alt?: string;
|
|
1358
|
+
blogId: string;
|
|
1359
|
+
/** JSONP */
|
|
1360
|
+
callback?: string;
|
|
1361
|
+
fetchBodies?: boolean;
|
|
1362
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1363
|
+
fields?: string;
|
|
1364
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1365
|
+
key?: string;
|
|
1366
|
+
/** OAuth 2.0 token for the current user. */
|
|
1367
|
+
oauth_token?: string;
|
|
1368
|
+
orderBy?: string;
|
|
1369
|
+
/** Returns response with indentations and line breaks. */
|
|
1370
|
+
prettyPrint?: boolean;
|
|
1371
|
+
q: string;
|
|
1372
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1373
|
+
quotaUser?: string;
|
|
1374
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1375
|
+
upload_protocol?: string;
|
|
1376
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1377
|
+
uploadType?: string;
|
|
1378
|
+
}): Request<PostList>;
|
|
1379
|
+
/** Updates a post by blog id and post id. */
|
|
1380
|
+
update(request: {
|
|
1381
|
+
/** V1 error format. */
|
|
1382
|
+
"$.xgafv"?: string;
|
|
1383
|
+
/** OAuth access token. */
|
|
1384
|
+
access_token?: string;
|
|
1385
|
+
/** Data format for response. */
|
|
1386
|
+
alt?: string;
|
|
1387
|
+
blogId: string;
|
|
1388
|
+
/** JSONP */
|
|
1389
|
+
callback?: string;
|
|
1390
|
+
fetchBody?: boolean;
|
|
1391
|
+
fetchImages?: boolean;
|
|
1392
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1393
|
+
fields?: string;
|
|
1394
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1395
|
+
key?: string;
|
|
1396
|
+
maxComments?: number;
|
|
1397
|
+
/** OAuth 2.0 token for the current user. */
|
|
1398
|
+
oauth_token?: string;
|
|
1399
|
+
postId: string;
|
|
1400
|
+
/** Returns response with indentations and line breaks. */
|
|
1401
|
+
prettyPrint?: boolean;
|
|
1402
|
+
publish?: boolean;
|
|
1403
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1404
|
+
quotaUser?: string;
|
|
1405
|
+
revert?: boolean;
|
|
1406
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1407
|
+
upload_protocol?: string;
|
|
1408
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1409
|
+
uploadType?: string;
|
|
1410
|
+
/** Request body */
|
|
1411
|
+
resource: Post;
|
|
1412
|
+
}): Request<Post>;
|
|
1413
|
+
update(request: {
|
|
1414
|
+
/** V1 error format. */
|
|
1415
|
+
"$.xgafv"?: string;
|
|
1416
|
+
/** OAuth access token. */
|
|
1417
|
+
access_token?: string;
|
|
1418
|
+
/** Data format for response. */
|
|
1419
|
+
alt?: string;
|
|
1420
|
+
blogId: string;
|
|
1421
|
+
/** JSONP */
|
|
1422
|
+
callback?: string;
|
|
1423
|
+
fetchBody?: boolean;
|
|
1424
|
+
fetchImages?: boolean;
|
|
1425
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1426
|
+
fields?: string;
|
|
1427
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1428
|
+
key?: string;
|
|
1429
|
+
maxComments?: number;
|
|
1430
|
+
/** OAuth 2.0 token for the current user. */
|
|
1431
|
+
oauth_token?: string;
|
|
1432
|
+
postId: string;
|
|
1433
|
+
/** Returns response with indentations and line breaks. */
|
|
1434
|
+
prettyPrint?: boolean;
|
|
1435
|
+
publish?: boolean;
|
|
1436
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1437
|
+
quotaUser?: string;
|
|
1438
|
+
revert?: boolean;
|
|
1439
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1440
|
+
upload_protocol?: string;
|
|
1441
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1442
|
+
uploadType?: string;
|
|
1443
|
+
},
|
|
1444
|
+
body: Post): Request<Post>;
|
|
1445
|
+
}
|
|
1446
|
+
interface PostUserInfosResource {
|
|
1447
|
+
/** Gets one post and user info pair, by post_id and user_id. */
|
|
1448
|
+
get(request?: {
|
|
1449
|
+
/** V1 error format. */
|
|
1450
|
+
"$.xgafv"?: string;
|
|
1451
|
+
/** OAuth access token. */
|
|
1452
|
+
access_token?: string;
|
|
1453
|
+
/** Data format for response. */
|
|
1454
|
+
alt?: string;
|
|
1455
|
+
blogId: string;
|
|
1456
|
+
/** JSONP */
|
|
1457
|
+
callback?: string;
|
|
1458
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1459
|
+
fields?: string;
|
|
1460
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1461
|
+
key?: string;
|
|
1462
|
+
maxComments?: number;
|
|
1463
|
+
/** OAuth 2.0 token for the current user. */
|
|
1464
|
+
oauth_token?: string;
|
|
1465
|
+
postId: string;
|
|
1466
|
+
/** Returns response with indentations and line breaks. */
|
|
1467
|
+
prettyPrint?: boolean;
|
|
1468
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1469
|
+
quotaUser?: string;
|
|
1470
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1471
|
+
upload_protocol?: string;
|
|
1472
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1473
|
+
uploadType?: string;
|
|
1474
|
+
userId: string;
|
|
1475
|
+
}): Request<PostUserInfo>;
|
|
1476
|
+
/** Lists post and user info pairs. */
|
|
1477
|
+
list(request?: {
|
|
1478
|
+
/** V1 error format. */
|
|
1479
|
+
"$.xgafv"?: string;
|
|
1480
|
+
/** OAuth access token. */
|
|
1481
|
+
access_token?: string;
|
|
1482
|
+
/** Data format for response. */
|
|
1483
|
+
alt?: string;
|
|
1484
|
+
blogId: string;
|
|
1485
|
+
/** JSONP */
|
|
1486
|
+
callback?: string;
|
|
1487
|
+
endDate?: string;
|
|
1488
|
+
fetchBodies?: boolean;
|
|
1489
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1490
|
+
fields?: string;
|
|
1491
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1492
|
+
key?: string;
|
|
1493
|
+
labels?: string;
|
|
1494
|
+
maxResults?: number;
|
|
1495
|
+
/** OAuth 2.0 token for the current user. */
|
|
1496
|
+
oauth_token?: string;
|
|
1497
|
+
orderBy?: string;
|
|
1498
|
+
pageToken?: string;
|
|
1499
|
+
/** Returns response with indentations and line breaks. */
|
|
1500
|
+
prettyPrint?: boolean;
|
|
1501
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1502
|
+
quotaUser?: string;
|
|
1503
|
+
startDate?: string;
|
|
1504
|
+
status?: string | string[];
|
|
1505
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1506
|
+
upload_protocol?: string;
|
|
1507
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1508
|
+
uploadType?: string;
|
|
1509
|
+
userId: string;
|
|
1510
|
+
view?: string;
|
|
1511
|
+
}): Request<PostUserInfosList>;
|
|
1512
|
+
}
|
|
1513
|
+
interface UsersResource {
|
|
1514
|
+
/** Gets one user by user_id. */
|
|
1515
|
+
get(request?: {
|
|
1516
|
+
/** V1 error format. */
|
|
1517
|
+
"$.xgafv"?: string;
|
|
1518
|
+
/** OAuth access token. */
|
|
1519
|
+
access_token?: string;
|
|
1520
|
+
/** Data format for response. */
|
|
1521
|
+
alt?: string;
|
|
1522
|
+
/** JSONP */
|
|
1523
|
+
callback?: string;
|
|
1524
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1525
|
+
fields?: string;
|
|
1526
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1527
|
+
key?: string;
|
|
1528
|
+
/** OAuth 2.0 token for the current user. */
|
|
1529
|
+
oauth_token?: string;
|
|
1530
|
+
/** Returns response with indentations and line breaks. */
|
|
1531
|
+
prettyPrint?: boolean;
|
|
1532
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1533
|
+
quotaUser?: string;
|
|
1534
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1535
|
+
upload_protocol?: string;
|
|
1536
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1537
|
+
uploadType?: string;
|
|
1538
|
+
userId: string;
|
|
1539
|
+
}): Request<User>;
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1542
|
+
const blogUserInfos: BlogUserInfosResource;
|
|
1543
|
+
|
|
1544
|
+
const blogs: BlogsResource;
|
|
1545
|
+
|
|
1546
|
+
const comments: CommentsResource;
|
|
1547
|
+
|
|
1548
|
+
const pageViews: PageViewsResource;
|
|
1549
|
+
|
|
1550
|
+
const pages: PagesResource;
|
|
1551
|
+
|
|
1552
|
+
const postUserInfos: PostUserInfosResource;
|
|
1553
|
+
|
|
1554
|
+
const posts: PostsResource;
|
|
1555
|
+
|
|
1556
|
+
const users: UsersResource;
|
|
1557
|
+
}
|
|
1558
|
+
}
|