/
RestExtras-1.0.d.ts
621 lines (504 loc) · 29.6 KB
/
RestExtras-1.0.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
// @ts-nocheck
/*
* Type Definitions for node-gtk (https://github.com/romgrk/node-gtk)
*
* These type definitions are automatically generated, do not edit them by hand.
* If you found a bug fix it in ts-for-gir itself or create a bug report on https://github.com/sammydre/ts-for-gjs
*/
/**
* RestExtras-1.0
*/
import type Soup from './Soup-2.4';
import type Gio from './Gio-2.0';
import type GObject from './GObject-2.0';
import type GLib from './GLib-2.0';
import type Rest from './Rest-1.0';
export namespace RestExtras {
interface YoutubeProxyUploadCallback {
(proxy: YoutubeProxy, payload: string, total: number, uploaded: number, error: GLib.Error, weakObject: GObject.Object): void
}
interface FlickrProxy_ConstructProps extends Rest.Proxy_ConstructProps {
// Own constructor properties of RestExtras-1.0.RestExtras.FlickrProxy
apiKey?: string | null
sharedSecret?: string | null
token?: string | null
}
interface FlickrProxy {
// Own properties of RestExtras-1.0.RestExtras.FlickrProxy
readonly apiKey: string
readonly sharedSecret: string
token: string
// Own fields of RestExtras-1.0.RestExtras.FlickrProxy
parentInstance: Rest.Proxy
// Owm methods of RestExtras-1.0.RestExtras.FlickrProxy
buildLoginUrl(frob: string, perms: string): string
/**
* Get the API key.
*/
getApiKey(): string
/**
* Get the shared secret for authentication.
*/
getSharedSecret(): string
/**
* Get the current token.
*/
getToken(): string
/**
* Create a new #RestProxyCall that can be used for uploading.
*
* See http://www.flickr.com/services/api/upload.api.html for details on
* uploading to Flickr.
*/
newUpload(): FlickrProxyCall
/**
* Create a new #RestProxyCall that can be used for uploading. `filename` will
* be set as the "photo" parameter for you, avoiding you from having to open the
* file and determine the MIME type.
*
* Note that this function can in theory block.
*
* See http://www.flickr.com/services/api/upload.api.html for details on
* uploading to Flickr.
* @param filename the file to upload
*/
newUploadForFile(filename: string): FlickrProxyCall
/**
* Set the token.
* @param token the access token
*/
setToken(token: string): void
sign(params: GLib.HashTable): string
// Class property signals of RestExtras-1.0.RestExtras.FlickrProxy
connect(sigName: "notify::api-key", callback: (...args: any[]) => void): number
on(sigName: "notify::api-key", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
once(sigName: "notify::api-key", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
off(sigName: "notify::api-key", callback: (...args: any[]) => void): NodeJS.EventEmitter
emit(sigName: "notify::api-key", ...args: any[]): void
connect(sigName: "notify::shared-secret", callback: (...args: any[]) => void): number
on(sigName: "notify::shared-secret", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
once(sigName: "notify::shared-secret", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
off(sigName: "notify::shared-secret", callback: (...args: any[]) => void): NodeJS.EventEmitter
emit(sigName: "notify::shared-secret", ...args: any[]): void
connect(sigName: "notify::token", callback: (...args: any[]) => void): number
on(sigName: "notify::token", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
once(sigName: "notify::token", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
off(sigName: "notify::token", callback: (...args: any[]) => void): NodeJS.EventEmitter
emit(sigName: "notify::token", ...args: any[]): void
connect(sigName: "notify::binding-required", callback: (...args: any[]) => void): number
on(sigName: "notify::binding-required", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
once(sigName: "notify::binding-required", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
off(sigName: "notify::binding-required", callback: (...args: any[]) => void): NodeJS.EventEmitter
emit(sigName: "notify::binding-required", ...args: any[]): void
connect(sigName: "notify::disable-cookies", callback: (...args: any[]) => void): number
on(sigName: "notify::disable-cookies", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
once(sigName: "notify::disable-cookies", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
off(sigName: "notify::disable-cookies", callback: (...args: any[]) => void): NodeJS.EventEmitter
emit(sigName: "notify::disable-cookies", ...args: any[]): void
connect(sigName: "notify::password", callback: (...args: any[]) => void): number
on(sigName: "notify::password", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
once(sigName: "notify::password", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
off(sigName: "notify::password", callback: (...args: any[]) => void): NodeJS.EventEmitter
emit(sigName: "notify::password", ...args: any[]): void
connect(sigName: "notify::ssl-ca-file", callback: (...args: any[]) => void): number
on(sigName: "notify::ssl-ca-file", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
once(sigName: "notify::ssl-ca-file", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
off(sigName: "notify::ssl-ca-file", callback: (...args: any[]) => void): NodeJS.EventEmitter
emit(sigName: "notify::ssl-ca-file", ...args: any[]): void
connect(sigName: "notify::ssl-strict", callback: (...args: any[]) => void): number
on(sigName: "notify::ssl-strict", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
once(sigName: "notify::ssl-strict", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
off(sigName: "notify::ssl-strict", callback: (...args: any[]) => void): NodeJS.EventEmitter
emit(sigName: "notify::ssl-strict", ...args: any[]): void
connect(sigName: "notify::url-format", callback: (...args: any[]) => void): number
on(sigName: "notify::url-format", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
once(sigName: "notify::url-format", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
off(sigName: "notify::url-format", callback: (...args: any[]) => void): NodeJS.EventEmitter
emit(sigName: "notify::url-format", ...args: any[]): void
connect(sigName: "notify::user-agent", callback: (...args: any[]) => void): number
on(sigName: "notify::user-agent", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
once(sigName: "notify::user-agent", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
off(sigName: "notify::user-agent", callback: (...args: any[]) => void): NodeJS.EventEmitter
emit(sigName: "notify::user-agent", ...args: any[]): void
connect(sigName: "notify::username", callback: (...args: any[]) => void): number
on(sigName: "notify::username", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
once(sigName: "notify::username", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
off(sigName: "notify::username", callback: (...args: any[]) => void): NodeJS.EventEmitter
emit(sigName: "notify::username", ...args: any[]): void
connect(sigName: string, callback: (...args: any[]) => void): number
on(sigName: string, callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
once(sigName: string, callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
off(sigName: string, callback: (...args: any[]) => void): NodeJS.EventEmitter
emit(sigName: string, ...args: any[]): void
}
class FlickrProxy extends Rest.Proxy {
// Own properties of RestExtras-1.0.RestExtras.FlickrProxy
static name: string
static $gtype: GObject.GType<FlickrProxy>
// Constructors of RestExtras-1.0.RestExtras.FlickrProxy
constructor(config?: FlickrProxy_ConstructProps)
constructor(apiKey: string, sharedSecret: string)
static new(apiKey: string, sharedSecret: string): FlickrProxy
// Overloads of new
/**
* Create a new #RestProxy for the specified endpoint `url_format,` using the
* "GET" method.
*
* Set `binding_required` to %TRUE if the URL contains string formatting
* operations (for example "http://foo.com/%<!-- -->s". These must be expanded
* using rest_proxy_bind() before invoking the proxy.
* @constructor
* @param urlFormat the endpoint URL
* @param bindingRequired whether the URL needs to be bound before calling
*/
static new(urlFormat: string, bindingRequired: boolean): Rest.Proxy
static newWithToken(apiKey: string, sharedSecret: string, token: string): FlickrProxy
_init(config?: FlickrProxy_ConstructProps): void
/**
* Examines the Flickr response and if it not a successful reply, set `error` and
* return FALSE.
* @param root The root node of a parsed Flickr response
*/
static isSuccessful(root: Rest.XmlNode): boolean
}
interface FlickrProxyCall_ConstructProps extends Rest.ProxyCall_ConstructProps {
// Own constructor properties of RestExtras-1.0.RestExtras.FlickrProxyCall
/**
* Set if the call should be sent to the photo upload endpoint and not the
* general-purpose endpoint.
*/
upload?: boolean | null
}
interface FlickrProxyCall {
// Own properties of RestExtras-1.0.RestExtras.FlickrProxyCall
/**
* Set if the call should be sent to the photo upload endpoint and not the
* general-purpose endpoint.
*/
// TODO fix conflict: readonly upload: boolean
// Own fields of RestExtras-1.0.RestExtras.FlickrProxyCall
parentInstance: Rest.ProxyCall
// Class property signals of RestExtras-1.0.RestExtras.FlickrProxyCall
connect(sigName: "notify::upload", callback: (...args: any[]) => void): number
on(sigName: "notify::upload", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
once(sigName: "notify::upload", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
off(sigName: "notify::upload", callback: (...args: any[]) => void): NodeJS.EventEmitter
emit(sigName: "notify::upload", ...args: any[]): void
connect(sigName: "notify::proxy", callback: (...args: any[]) => void): number
on(sigName: "notify::proxy", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
once(sigName: "notify::proxy", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
off(sigName: "notify::proxy", callback: (...args: any[]) => void): NodeJS.EventEmitter
emit(sigName: "notify::proxy", ...args: any[]): void
connect(sigName: string, callback: (...args: any[]) => void): number
on(sigName: string, callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
once(sigName: string, callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
off(sigName: string, callback: (...args: any[]) => void): NodeJS.EventEmitter
emit(sigName: string, ...args: any[]): void
}
class FlickrProxyCall extends Rest.ProxyCall {
// Own properties of RestExtras-1.0.RestExtras.FlickrProxyCall
static name: string
static $gtype: GObject.GType<FlickrProxyCall>
// Constructors of RestExtras-1.0.RestExtras.FlickrProxyCall
constructor(config?: FlickrProxyCall_ConstructProps)
_init(config?: FlickrProxyCall_ConstructProps): void
}
interface LastfmProxy_ConstructProps extends Rest.Proxy_ConstructProps {
// Own constructor properties of RestExtras-1.0.RestExtras.LastfmProxy
apiKey?: string | null
secret?: string | null
sessionKey?: string | null
}
interface LastfmProxy {
// Own properties of RestExtras-1.0.RestExtras.LastfmProxy
readonly apiKey: string
readonly secret: string
sessionKey: string
// Own fields of RestExtras-1.0.RestExtras.LastfmProxy
parentInstance: Rest.Proxy
// Owm methods of RestExtras-1.0.RestExtras.LastfmProxy
buildLoginUrl(token: string): string
/**
* Get the API key.
*/
getApiKey(): string
/**
* Get the secret for authentication.
*/
getSecret(): string
/**
* Get the current session key.
*/
getSessionKey(): string
/**
* Set the session key.
* @param sessionKey the access session_key
*/
setSessionKey(sessionKey: string): void
sign(params: GLib.HashTable): string
// Class property signals of RestExtras-1.0.RestExtras.LastfmProxy
connect(sigName: "notify::api-key", callback: (...args: any[]) => void): number
on(sigName: "notify::api-key", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
once(sigName: "notify::api-key", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
off(sigName: "notify::api-key", callback: (...args: any[]) => void): NodeJS.EventEmitter
emit(sigName: "notify::api-key", ...args: any[]): void
connect(sigName: "notify::secret", callback: (...args: any[]) => void): number
on(sigName: "notify::secret", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
once(sigName: "notify::secret", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
off(sigName: "notify::secret", callback: (...args: any[]) => void): NodeJS.EventEmitter
emit(sigName: "notify::secret", ...args: any[]): void
connect(sigName: "notify::session-key", callback: (...args: any[]) => void): number
on(sigName: "notify::session-key", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
once(sigName: "notify::session-key", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
off(sigName: "notify::session-key", callback: (...args: any[]) => void): NodeJS.EventEmitter
emit(sigName: "notify::session-key", ...args: any[]): void
connect(sigName: "notify::binding-required", callback: (...args: any[]) => void): number
on(sigName: "notify::binding-required", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
once(sigName: "notify::binding-required", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
off(sigName: "notify::binding-required", callback: (...args: any[]) => void): NodeJS.EventEmitter
emit(sigName: "notify::binding-required", ...args: any[]): void
connect(sigName: "notify::disable-cookies", callback: (...args: any[]) => void): number
on(sigName: "notify::disable-cookies", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
once(sigName: "notify::disable-cookies", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
off(sigName: "notify::disable-cookies", callback: (...args: any[]) => void): NodeJS.EventEmitter
emit(sigName: "notify::disable-cookies", ...args: any[]): void
connect(sigName: "notify::password", callback: (...args: any[]) => void): number
on(sigName: "notify::password", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
once(sigName: "notify::password", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
off(sigName: "notify::password", callback: (...args: any[]) => void): NodeJS.EventEmitter
emit(sigName: "notify::password", ...args: any[]): void
connect(sigName: "notify::ssl-ca-file", callback: (...args: any[]) => void): number
on(sigName: "notify::ssl-ca-file", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
once(sigName: "notify::ssl-ca-file", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
off(sigName: "notify::ssl-ca-file", callback: (...args: any[]) => void): NodeJS.EventEmitter
emit(sigName: "notify::ssl-ca-file", ...args: any[]): void
connect(sigName: "notify::ssl-strict", callback: (...args: any[]) => void): number
on(sigName: "notify::ssl-strict", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
once(sigName: "notify::ssl-strict", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
off(sigName: "notify::ssl-strict", callback: (...args: any[]) => void): NodeJS.EventEmitter
emit(sigName: "notify::ssl-strict", ...args: any[]): void
connect(sigName: "notify::url-format", callback: (...args: any[]) => void): number
on(sigName: "notify::url-format", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
once(sigName: "notify::url-format", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
off(sigName: "notify::url-format", callback: (...args: any[]) => void): NodeJS.EventEmitter
emit(sigName: "notify::url-format", ...args: any[]): void
connect(sigName: "notify::user-agent", callback: (...args: any[]) => void): number
on(sigName: "notify::user-agent", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
once(sigName: "notify::user-agent", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
off(sigName: "notify::user-agent", callback: (...args: any[]) => void): NodeJS.EventEmitter
emit(sigName: "notify::user-agent", ...args: any[]): void
connect(sigName: "notify::username", callback: (...args: any[]) => void): number
on(sigName: "notify::username", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
once(sigName: "notify::username", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
off(sigName: "notify::username", callback: (...args: any[]) => void): NodeJS.EventEmitter
emit(sigName: "notify::username", ...args: any[]): void
connect(sigName: string, callback: (...args: any[]) => void): number
on(sigName: string, callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
once(sigName: string, callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
off(sigName: string, callback: (...args: any[]) => void): NodeJS.EventEmitter
emit(sigName: string, ...args: any[]): void
}
class LastfmProxy extends Rest.Proxy {
// Own properties of RestExtras-1.0.RestExtras.LastfmProxy
static name: string
static $gtype: GObject.GType<LastfmProxy>
// Constructors of RestExtras-1.0.RestExtras.LastfmProxy
constructor(config?: LastfmProxy_ConstructProps)
constructor(apiKey: string, secret: string)
static new(apiKey: string, secret: string): LastfmProxy
// Overloads of new
/**
* Create a new #RestProxy for the specified endpoint `url_format,` using the
* "GET" method.
*
* Set `binding_required` to %TRUE if the URL contains string formatting
* operations (for example "http://foo.com/%<!-- -->s". These must be expanded
* using rest_proxy_bind() before invoking the proxy.
* @constructor
* @param urlFormat the endpoint URL
* @param bindingRequired whether the URL needs to be bound before calling
*/
static new(urlFormat: string, bindingRequired: boolean): Rest.Proxy
static newWithSession(apiKey: string, secret: string, sessionKey: string): LastfmProxy
_init(config?: LastfmProxy_ConstructProps): void
/**
* Examines the Lastfm response and if it not a successful reply, set `error` and
* return FALSE.
* @param root The root node of a parsed Lastfm response
*/
static isSuccessful(root: Rest.XmlNode): boolean
}
interface LastfmProxyCall_ConstructProps extends Rest.ProxyCall_ConstructProps {
}
interface LastfmProxyCall {
// Own fields of RestExtras-1.0.RestExtras.LastfmProxyCall
parentInstance: Rest.ProxyCall
// Class property signals of RestExtras-1.0.RestExtras.LastfmProxyCall
connect(sigName: "notify::proxy", callback: (...args: any[]) => void): number
on(sigName: "notify::proxy", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
once(sigName: "notify::proxy", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
off(sigName: "notify::proxy", callback: (...args: any[]) => void): NodeJS.EventEmitter
emit(sigName: "notify::proxy", ...args: any[]): void
connect(sigName: string, callback: (...args: any[]) => void): number
on(sigName: string, callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
once(sigName: string, callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
off(sigName: string, callback: (...args: any[]) => void): NodeJS.EventEmitter
emit(sigName: string, ...args: any[]): void
}
/**
* #LastfmProxyCall has no publicly available members.
* @class
*/
class LastfmProxyCall extends Rest.ProxyCall {
// Own properties of RestExtras-1.0.RestExtras.LastfmProxyCall
static name: string
static $gtype: GObject.GType<LastfmProxyCall>
// Constructors of RestExtras-1.0.RestExtras.LastfmProxyCall
constructor(config?: LastfmProxyCall_ConstructProps)
_init(config?: LastfmProxyCall_ConstructProps): void
}
interface YoutubeProxy_ConstructProps extends Rest.Proxy_ConstructProps {
// Own constructor properties of RestExtras-1.0.RestExtras.YoutubeProxy
developerKey?: string | null
userAuth?: string | null
}
interface YoutubeProxy {
// Own properties of RestExtras-1.0.RestExtras.YoutubeProxy
readonly developerKey: string
userAuth: string
// Own fields of RestExtras-1.0.RestExtras.YoutubeProxy
parentInstance: Rest.Proxy
// Owm methods of RestExtras-1.0.RestExtras.YoutubeProxy
setUserAuth(userAuth: string): void
/**
* Upload a file.
* @param filename filename
* @param fields fields
* @param incomplete incomplete
* @param callback callback to invoke upon completion
* @param weakObject an object instance used to tie the life cycle of the proxy to
*/
uploadAsync(filename: string, fields: GLib.HashTable, incomplete: boolean, callback: YoutubeProxyUploadCallback, weakObject: GObject.Object): boolean
// Class property signals of RestExtras-1.0.RestExtras.YoutubeProxy
connect(sigName: "notify::developer-key", callback: (...args: any[]) => void): number
on(sigName: "notify::developer-key", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
once(sigName: "notify::developer-key", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
off(sigName: "notify::developer-key", callback: (...args: any[]) => void): NodeJS.EventEmitter
emit(sigName: "notify::developer-key", ...args: any[]): void
connect(sigName: "notify::user-auth", callback: (...args: any[]) => void): number
on(sigName: "notify::user-auth", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
once(sigName: "notify::user-auth", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
off(sigName: "notify::user-auth", callback: (...args: any[]) => void): NodeJS.EventEmitter
emit(sigName: "notify::user-auth", ...args: any[]): void
connect(sigName: "notify::binding-required", callback: (...args: any[]) => void): number
on(sigName: "notify::binding-required", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
once(sigName: "notify::binding-required", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
off(sigName: "notify::binding-required", callback: (...args: any[]) => void): NodeJS.EventEmitter
emit(sigName: "notify::binding-required", ...args: any[]): void
connect(sigName: "notify::disable-cookies", callback: (...args: any[]) => void): number
on(sigName: "notify::disable-cookies", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
once(sigName: "notify::disable-cookies", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
off(sigName: "notify::disable-cookies", callback: (...args: any[]) => void): NodeJS.EventEmitter
emit(sigName: "notify::disable-cookies", ...args: any[]): void
connect(sigName: "notify::password", callback: (...args: any[]) => void): number
on(sigName: "notify::password", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
once(sigName: "notify::password", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
off(sigName: "notify::password", callback: (...args: any[]) => void): NodeJS.EventEmitter
emit(sigName: "notify::password", ...args: any[]): void
connect(sigName: "notify::ssl-ca-file", callback: (...args: any[]) => void): number
on(sigName: "notify::ssl-ca-file", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
once(sigName: "notify::ssl-ca-file", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
off(sigName: "notify::ssl-ca-file", callback: (...args: any[]) => void): NodeJS.EventEmitter
emit(sigName: "notify::ssl-ca-file", ...args: any[]): void
connect(sigName: "notify::ssl-strict", callback: (...args: any[]) => void): number
on(sigName: "notify::ssl-strict", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
once(sigName: "notify::ssl-strict", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
off(sigName: "notify::ssl-strict", callback: (...args: any[]) => void): NodeJS.EventEmitter
emit(sigName: "notify::ssl-strict", ...args: any[]): void
connect(sigName: "notify::url-format", callback: (...args: any[]) => void): number
on(sigName: "notify::url-format", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
once(sigName: "notify::url-format", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
off(sigName: "notify::url-format", callback: (...args: any[]) => void): NodeJS.EventEmitter
emit(sigName: "notify::url-format", ...args: any[]): void
connect(sigName: "notify::user-agent", callback: (...args: any[]) => void): number
on(sigName: "notify::user-agent", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
once(sigName: "notify::user-agent", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
off(sigName: "notify::user-agent", callback: (...args: any[]) => void): NodeJS.EventEmitter
emit(sigName: "notify::user-agent", ...args: any[]): void
connect(sigName: "notify::username", callback: (...args: any[]) => void): number
on(sigName: "notify::username", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
once(sigName: "notify::username", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
off(sigName: "notify::username", callback: (...args: any[]) => void): NodeJS.EventEmitter
emit(sigName: "notify::username", ...args: any[]): void
connect(sigName: string, callback: (...args: any[]) => void): number
on(sigName: string, callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
once(sigName: string, callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter
off(sigName: string, callback: (...args: any[]) => void): NodeJS.EventEmitter
emit(sigName: string, ...args: any[]): void
}
class YoutubeProxy extends Rest.Proxy {
// Own properties of RestExtras-1.0.RestExtras.YoutubeProxy
static name: string
static $gtype: GObject.GType<YoutubeProxy>
// Constructors of RestExtras-1.0.RestExtras.YoutubeProxy
constructor(config?: YoutubeProxy_ConstructProps)
constructor(developerKey: string)
static new(developerKey: string): YoutubeProxy
// Overloads of new
/**
* Create a new #RestProxy for the specified endpoint `url_format,` using the
* "GET" method.
*
* Set `binding_required` to %TRUE if the URL contains string formatting
* operations (for example "http://foo.com/%<!-- -->s". These must be expanded
* using rest_proxy_bind() before invoking the proxy.
* @constructor
* @param urlFormat the endpoint URL
* @param bindingRequired whether the URL needs to be bound before calling
*/
static new(urlFormat: string, bindingRequired: boolean): Rest.Proxy
static newWithAuth(developerKey: string, userAuth: string): YoutubeProxy
_init(config?: YoutubeProxy_ConstructProps): void
}
interface FlickrProxyCallClass {
// Own fields of RestExtras-1.0.RestExtras.FlickrProxyCallClass
parentClass: Rest.ProxyCallClass
}
abstract class FlickrProxyCallClass {
// Own properties of RestExtras-1.0.RestExtras.FlickrProxyCallClass
static name: string
}
interface FlickrProxyClass {
// Own fields of RestExtras-1.0.RestExtras.FlickrProxyClass
parentClass: Rest.ProxyClass
}
abstract class FlickrProxyClass {
// Own properties of RestExtras-1.0.RestExtras.FlickrProxyClass
static name: string
}
interface LastfmProxyCallClass {
// Own fields of RestExtras-1.0.RestExtras.LastfmProxyCallClass
parentClass: Rest.ProxyCallClass
}
abstract class LastfmProxyCallClass {
// Own properties of RestExtras-1.0.RestExtras.LastfmProxyCallClass
static name: string
}
interface LastfmProxyClass {
// Own fields of RestExtras-1.0.RestExtras.LastfmProxyClass
parentClass: Rest.ProxyClass
}
abstract class LastfmProxyClass {
// Own properties of RestExtras-1.0.RestExtras.LastfmProxyClass
static name: string
}
interface YoutubeProxyClass {
// Own fields of RestExtras-1.0.RestExtras.YoutubeProxyClass
parentClass: Rest.ProxyClass
}
abstract class YoutubeProxyClass {
// Own properties of RestExtras-1.0.RestExtras.YoutubeProxyClass
static name: string
}
}
export default RestExtras;