@girs/restextras-0.7 0.7.0-3.2.5 → 0.7.0-3.2.7
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/README.md +1 -1
- package/package.json +8 -8
- package/restextras-0.7.d.cts +38 -26
- package/restextras-0.7.d.ts +38 -26
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for RestExtras-0.7, generated from library version 0.7.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.
|
|
8
|
+
GJS TypeScript type definitions for RestExtras-0.7, generated from library version 0.7.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.7.
|
|
9
9
|
|
|
10
10
|
This extra package provides Facebook and Flickr support.
|
|
11
11
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/restextras-0.7",
|
|
3
|
-
"version": "0.7.0-3.2.
|
|
3
|
+
"version": "0.7.0-3.2.7",
|
|
4
4
|
"description": "GJS TypeScript type definitions for RestExtras-0.7, generated from library version 0.7.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "restextras-0.7.js",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit restextras-0.7.d.cts"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@girs/gio-2.0": "^2.78.0-3.2.
|
|
29
|
-
"@girs/gjs": "^3.2.
|
|
30
|
-
"@girs/glib-2.0": "^2.78.0-3.2.
|
|
31
|
-
"@girs/gobject-2.0": "^2.78.0-3.2.
|
|
32
|
-
"@girs/libxml2-2.0": "^2.0.0-3.2.
|
|
33
|
-
"@girs/rest-0.7": "^0.7.0-3.2.
|
|
34
|
-
"@girs/soup-2.4": "^2.74.3-3.2.
|
|
28
|
+
"@girs/gio-2.0": "^2.78.0-3.2.7",
|
|
29
|
+
"@girs/gjs": "^3.2.7",
|
|
30
|
+
"@girs/glib-2.0": "^2.78.0-3.2.7",
|
|
31
|
+
"@girs/gobject-2.0": "^2.78.0-3.2.7",
|
|
32
|
+
"@girs/libxml2-2.0": "^2.0.0-3.2.7",
|
|
33
|
+
"@girs/rest-0.7": "^0.7.0-3.2.7",
|
|
34
|
+
"@girs/soup-2.4": "^2.74.3-3.2.7"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"typescript": "*"
|
package/restextras-0.7.d.cts
CHANGED
|
@@ -20,7 +20,7 @@ import type GObject from '@girs/gobject-2.0';
|
|
|
20
20
|
import type GLib from '@girs/glib-2.0';
|
|
21
21
|
|
|
22
22
|
export interface YoutubeProxyUploadCallback {
|
|
23
|
-
(proxy: YoutubeProxy, payload: string
|
|
23
|
+
(proxy: YoutubeProxy, payload: string, total: number, uploaded: number, error: GLib.Error, weak_object: GObject.Object): void
|
|
24
24
|
}
|
|
25
25
|
export module FlickrProxy {
|
|
26
26
|
|
|
@@ -33,6 +33,8 @@ export module FlickrProxy {
|
|
|
33
33
|
api_key?: string | null
|
|
34
34
|
shared_secret?: string | null
|
|
35
35
|
token?: string | null
|
|
36
|
+
apiKey?: string | null
|
|
37
|
+
sharedSecret?: string | null
|
|
36
38
|
}
|
|
37
39
|
|
|
38
40
|
}
|
|
@@ -42,7 +44,9 @@ export interface FlickrProxy {
|
|
|
42
44
|
// Own properties of RestExtras-0.7.RestExtras.FlickrProxy
|
|
43
45
|
|
|
44
46
|
readonly api_key: string | null
|
|
47
|
+
readonly apiKey: string | null
|
|
45
48
|
readonly shared_secret: string | null
|
|
49
|
+
readonly sharedSecret: string | null
|
|
46
50
|
token: string | null
|
|
47
51
|
|
|
48
52
|
// Own fields of RestExtras-0.7.RestExtras.FlickrProxy
|
|
@@ -52,22 +56,22 @@ export interface FlickrProxy {
|
|
|
52
56
|
|
|
53
57
|
// Owm methods of RestExtras-0.7.RestExtras.FlickrProxy
|
|
54
58
|
|
|
55
|
-
build_login_url(frob: string
|
|
59
|
+
build_login_url(frob: string, perms: string): string | null
|
|
56
60
|
/**
|
|
57
61
|
* Get the API key.
|
|
58
62
|
* @returns the API key. This string is owned by #FlickrProxy and should not be freed.
|
|
59
63
|
*/
|
|
60
|
-
get_api_key(): string
|
|
64
|
+
get_api_key(): string
|
|
61
65
|
/**
|
|
62
66
|
* Get the shared secret for authentication.
|
|
63
67
|
* @returns the shared secret. This string is owned by #FlickrProxy and should not be freed.
|
|
64
68
|
*/
|
|
65
|
-
get_shared_secret(): string
|
|
69
|
+
get_shared_secret(): string
|
|
66
70
|
/**
|
|
67
71
|
* Get the current token.
|
|
68
72
|
* @returns the token, or %NULL if there is no token yet. This string is owned by #FlickrProxy and should not be freed.
|
|
69
73
|
*/
|
|
70
|
-
get_token(): string
|
|
74
|
+
get_token(): string
|
|
71
75
|
/**
|
|
72
76
|
* Create a new #RestProxyCall that can be used for uploading.
|
|
73
77
|
*
|
|
@@ -88,12 +92,12 @@ export interface FlickrProxy {
|
|
|
88
92
|
* @param filename the file to upload
|
|
89
93
|
* @returns a new #FlickrProxyCall
|
|
90
94
|
*/
|
|
91
|
-
new_upload_for_file(filename: string
|
|
95
|
+
new_upload_for_file(filename: string): FlickrProxyCall
|
|
92
96
|
/**
|
|
93
97
|
* Set the token.
|
|
94
98
|
* @param token the access token
|
|
95
99
|
*/
|
|
96
|
-
set_token(token: string
|
|
100
|
+
set_token(token: string): void
|
|
97
101
|
sign(params: GLib.HashTable): string | null
|
|
98
102
|
|
|
99
103
|
// Class property signals of RestExtras-0.7.RestExtras.FlickrProxy
|
|
@@ -151,8 +155,8 @@ export class FlickrProxy extends Rest.Proxy {
|
|
|
151
155
|
// Constructors of RestExtras-0.7.RestExtras.FlickrProxy
|
|
152
156
|
|
|
153
157
|
constructor(config?: FlickrProxy.ConstructorProperties)
|
|
154
|
-
constructor(api_key: string
|
|
155
|
-
static new(api_key: string
|
|
158
|
+
constructor(api_key: string, shared_secret: string)
|
|
159
|
+
static new(api_key: string, shared_secret: string): FlickrProxy
|
|
156
160
|
|
|
157
161
|
// Overloads of new
|
|
158
162
|
|
|
@@ -168,8 +172,8 @@ export class FlickrProxy extends Rest.Proxy {
|
|
|
168
172
|
* @param binding_required whether the URL needs to be bound before calling
|
|
169
173
|
* @returns A new #RestProxy.
|
|
170
174
|
*/
|
|
171
|
-
static new(url_format: string
|
|
172
|
-
static new_with_token(api_key: string
|
|
175
|
+
static new(url_format: string, binding_required: boolean): Rest.Proxy
|
|
176
|
+
static new_with_token(api_key: string, shared_secret: string, token: string): FlickrProxy
|
|
173
177
|
_init(config?: FlickrProxy.ConstructorProperties): void
|
|
174
178
|
/**
|
|
175
179
|
* Examines the Flickr response and if it not a successful reply, set `error` and
|
|
@@ -249,6 +253,8 @@ export module LastfmProxy {
|
|
|
249
253
|
api_key?: string | null
|
|
250
254
|
secret?: string | null
|
|
251
255
|
session_key?: string | null
|
|
256
|
+
apiKey?: string | null
|
|
257
|
+
sessionKey?: string | null
|
|
252
258
|
}
|
|
253
259
|
|
|
254
260
|
}
|
|
@@ -258,8 +264,10 @@ export interface LastfmProxy {
|
|
|
258
264
|
// Own properties of RestExtras-0.7.RestExtras.LastfmProxy
|
|
259
265
|
|
|
260
266
|
readonly api_key: string | null
|
|
267
|
+
readonly apiKey: string | null
|
|
261
268
|
readonly secret: string | null
|
|
262
269
|
session_key: string | null
|
|
270
|
+
sessionKey: string | null
|
|
263
271
|
|
|
264
272
|
// Own fields of RestExtras-0.7.RestExtras.LastfmProxy
|
|
265
273
|
|
|
@@ -268,27 +276,27 @@ export interface LastfmProxy {
|
|
|
268
276
|
|
|
269
277
|
// Owm methods of RestExtras-0.7.RestExtras.LastfmProxy
|
|
270
278
|
|
|
271
|
-
build_login_url(token: string
|
|
279
|
+
build_login_url(token: string): string | null
|
|
272
280
|
/**
|
|
273
281
|
* Get the API key.
|
|
274
282
|
* @returns the API key. This string is owned by #LastfmProxy and should not be freed.
|
|
275
283
|
*/
|
|
276
|
-
get_api_key(): string
|
|
284
|
+
get_api_key(): string
|
|
277
285
|
/**
|
|
278
286
|
* Get the secret for authentication.
|
|
279
287
|
* @returns the secret. This string is owned by #LastfmProxy and should not be freed.
|
|
280
288
|
*/
|
|
281
|
-
get_secret(): string
|
|
289
|
+
get_secret(): string
|
|
282
290
|
/**
|
|
283
291
|
* Get the current session key.
|
|
284
292
|
* @returns the session key, or %NULL if there is no session key yet. This string is owned by #LastfmProxy and should not be freed.
|
|
285
293
|
*/
|
|
286
|
-
get_session_key(): string
|
|
294
|
+
get_session_key(): string
|
|
287
295
|
/**
|
|
288
296
|
* Set the session key.
|
|
289
297
|
* @param session_key the access session_key
|
|
290
298
|
*/
|
|
291
|
-
set_session_key(session_key: string
|
|
299
|
+
set_session_key(session_key: string): void
|
|
292
300
|
sign(params: GLib.HashTable): string | null
|
|
293
301
|
|
|
294
302
|
// Class property signals of RestExtras-0.7.RestExtras.LastfmProxy
|
|
@@ -346,8 +354,8 @@ export class LastfmProxy extends Rest.Proxy {
|
|
|
346
354
|
// Constructors of RestExtras-0.7.RestExtras.LastfmProxy
|
|
347
355
|
|
|
348
356
|
constructor(config?: LastfmProxy.ConstructorProperties)
|
|
349
|
-
constructor(api_key: string
|
|
350
|
-
static new(api_key: string
|
|
357
|
+
constructor(api_key: string, secret: string)
|
|
358
|
+
static new(api_key: string, secret: string): LastfmProxy
|
|
351
359
|
|
|
352
360
|
// Overloads of new
|
|
353
361
|
|
|
@@ -363,8 +371,8 @@ export class LastfmProxy extends Rest.Proxy {
|
|
|
363
371
|
* @param binding_required whether the URL needs to be bound before calling
|
|
364
372
|
* @returns A new #RestProxy.
|
|
365
373
|
*/
|
|
366
|
-
static new(url_format: string
|
|
367
|
-
static new_with_session(api_key: string
|
|
374
|
+
static new(url_format: string, binding_required: boolean): Rest.Proxy
|
|
375
|
+
static new_with_session(api_key: string, secret: string, session_key: string): LastfmProxy
|
|
368
376
|
_init(config?: LastfmProxy.ConstructorProperties): void
|
|
369
377
|
/**
|
|
370
378
|
* Examines the Lastfm response and if it not a successful reply, set `error` and
|
|
@@ -428,6 +436,8 @@ export module YoutubeProxy {
|
|
|
428
436
|
|
|
429
437
|
developer_key?: string | null
|
|
430
438
|
user_auth?: string | null
|
|
439
|
+
developerKey?: string | null
|
|
440
|
+
userAuth?: string | null
|
|
431
441
|
}
|
|
432
442
|
|
|
433
443
|
}
|
|
@@ -437,7 +447,9 @@ export interface YoutubeProxy {
|
|
|
437
447
|
// Own properties of RestExtras-0.7.RestExtras.YoutubeProxy
|
|
438
448
|
|
|
439
449
|
readonly developer_key: string | null
|
|
450
|
+
readonly developerKey: string | null
|
|
440
451
|
user_auth: string | null
|
|
452
|
+
userAuth: string | null
|
|
441
453
|
|
|
442
454
|
// Own fields of RestExtras-0.7.RestExtras.YoutubeProxy
|
|
443
455
|
|
|
@@ -446,7 +458,7 @@ export interface YoutubeProxy {
|
|
|
446
458
|
|
|
447
459
|
// Owm methods of RestExtras-0.7.RestExtras.YoutubeProxy
|
|
448
460
|
|
|
449
|
-
set_user_auth(user_auth: string
|
|
461
|
+
set_user_auth(user_auth: string): void
|
|
450
462
|
/**
|
|
451
463
|
* Upload a file.
|
|
452
464
|
* @param filename filename
|
|
@@ -456,7 +468,7 @@ export interface YoutubeProxy {
|
|
|
456
468
|
* @param weak_object an object instance used to tie the life cycle of the proxy to
|
|
457
469
|
* @returns %TRUE, or %FALSE if the file could not be opened
|
|
458
470
|
*/
|
|
459
|
-
upload_async(filename: string
|
|
471
|
+
upload_async(filename: string, fields: GLib.HashTable, incomplete: boolean, callback: YoutubeProxyUploadCallback, weak_object: GObject.Object): boolean
|
|
460
472
|
|
|
461
473
|
// Class property signals of RestExtras-0.7.RestExtras.YoutubeProxy
|
|
462
474
|
|
|
@@ -510,8 +522,8 @@ export class YoutubeProxy extends Rest.Proxy {
|
|
|
510
522
|
// Constructors of RestExtras-0.7.RestExtras.YoutubeProxy
|
|
511
523
|
|
|
512
524
|
constructor(config?: YoutubeProxy.ConstructorProperties)
|
|
513
|
-
constructor(developer_key: string
|
|
514
|
-
static new(developer_key: string
|
|
525
|
+
constructor(developer_key: string)
|
|
526
|
+
static new(developer_key: string): YoutubeProxy
|
|
515
527
|
|
|
516
528
|
// Overloads of new
|
|
517
529
|
|
|
@@ -527,8 +539,8 @@ export class YoutubeProxy extends Rest.Proxy {
|
|
|
527
539
|
* @param binding_required whether the URL needs to be bound before calling
|
|
528
540
|
* @returns A new #RestProxy.
|
|
529
541
|
*/
|
|
530
|
-
static new(url_format: string
|
|
531
|
-
static new_with_auth(developer_key: string
|
|
542
|
+
static new(url_format: string, binding_required: boolean): Rest.Proxy
|
|
543
|
+
static new_with_auth(developer_key: string, user_auth: string): YoutubeProxy
|
|
532
544
|
_init(config?: YoutubeProxy.ConstructorProperties): void
|
|
533
545
|
}
|
|
534
546
|
|
package/restextras-0.7.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ import type GLib from '@girs/glib-2.0';
|
|
|
22
22
|
export namespace RestExtras {
|
|
23
23
|
|
|
24
24
|
interface YoutubeProxyUploadCallback {
|
|
25
|
-
(proxy: YoutubeProxy, payload: string
|
|
25
|
+
(proxy: YoutubeProxy, payload: string, total: number, uploaded: number, error: GLib.Error, weak_object: GObject.Object): void
|
|
26
26
|
}
|
|
27
27
|
module FlickrProxy {
|
|
28
28
|
|
|
@@ -35,6 +35,8 @@ module FlickrProxy {
|
|
|
35
35
|
api_key?: string | null
|
|
36
36
|
shared_secret?: string | null
|
|
37
37
|
token?: string | null
|
|
38
|
+
apiKey?: string | null
|
|
39
|
+
sharedSecret?: string | null
|
|
38
40
|
}
|
|
39
41
|
|
|
40
42
|
}
|
|
@@ -44,7 +46,9 @@ interface FlickrProxy {
|
|
|
44
46
|
// Own properties of RestExtras-0.7.RestExtras.FlickrProxy
|
|
45
47
|
|
|
46
48
|
readonly api_key: string | null
|
|
49
|
+
readonly apiKey: string | null
|
|
47
50
|
readonly shared_secret: string | null
|
|
51
|
+
readonly sharedSecret: string | null
|
|
48
52
|
token: string | null
|
|
49
53
|
|
|
50
54
|
// Own fields of RestExtras-0.7.RestExtras.FlickrProxy
|
|
@@ -54,22 +58,22 @@ interface FlickrProxy {
|
|
|
54
58
|
|
|
55
59
|
// Owm methods of RestExtras-0.7.RestExtras.FlickrProxy
|
|
56
60
|
|
|
57
|
-
build_login_url(frob: string
|
|
61
|
+
build_login_url(frob: string, perms: string): string | null
|
|
58
62
|
/**
|
|
59
63
|
* Get the API key.
|
|
60
64
|
* @returns the API key. This string is owned by #FlickrProxy and should not be freed.
|
|
61
65
|
*/
|
|
62
|
-
get_api_key(): string
|
|
66
|
+
get_api_key(): string
|
|
63
67
|
/**
|
|
64
68
|
* Get the shared secret for authentication.
|
|
65
69
|
* @returns the shared secret. This string is owned by #FlickrProxy and should not be freed.
|
|
66
70
|
*/
|
|
67
|
-
get_shared_secret(): string
|
|
71
|
+
get_shared_secret(): string
|
|
68
72
|
/**
|
|
69
73
|
* Get the current token.
|
|
70
74
|
* @returns the token, or %NULL if there is no token yet. This string is owned by #FlickrProxy and should not be freed.
|
|
71
75
|
*/
|
|
72
|
-
get_token(): string
|
|
76
|
+
get_token(): string
|
|
73
77
|
/**
|
|
74
78
|
* Create a new #RestProxyCall that can be used for uploading.
|
|
75
79
|
*
|
|
@@ -90,12 +94,12 @@ interface FlickrProxy {
|
|
|
90
94
|
* @param filename the file to upload
|
|
91
95
|
* @returns a new #FlickrProxyCall
|
|
92
96
|
*/
|
|
93
|
-
new_upload_for_file(filename: string
|
|
97
|
+
new_upload_for_file(filename: string): FlickrProxyCall
|
|
94
98
|
/**
|
|
95
99
|
* Set the token.
|
|
96
100
|
* @param token the access token
|
|
97
101
|
*/
|
|
98
|
-
set_token(token: string
|
|
102
|
+
set_token(token: string): void
|
|
99
103
|
sign(params: GLib.HashTable): string | null
|
|
100
104
|
|
|
101
105
|
// Class property signals of RestExtras-0.7.RestExtras.FlickrProxy
|
|
@@ -153,8 +157,8 @@ class FlickrProxy extends Rest.Proxy {
|
|
|
153
157
|
// Constructors of RestExtras-0.7.RestExtras.FlickrProxy
|
|
154
158
|
|
|
155
159
|
constructor(config?: FlickrProxy.ConstructorProperties)
|
|
156
|
-
constructor(api_key: string
|
|
157
|
-
static new(api_key: string
|
|
160
|
+
constructor(api_key: string, shared_secret: string)
|
|
161
|
+
static new(api_key: string, shared_secret: string): FlickrProxy
|
|
158
162
|
|
|
159
163
|
// Overloads of new
|
|
160
164
|
|
|
@@ -170,8 +174,8 @@ class FlickrProxy extends Rest.Proxy {
|
|
|
170
174
|
* @param binding_required whether the URL needs to be bound before calling
|
|
171
175
|
* @returns A new #RestProxy.
|
|
172
176
|
*/
|
|
173
|
-
static new(url_format: string
|
|
174
|
-
static new_with_token(api_key: string
|
|
177
|
+
static new(url_format: string, binding_required: boolean): Rest.Proxy
|
|
178
|
+
static new_with_token(api_key: string, shared_secret: string, token: string): FlickrProxy
|
|
175
179
|
_init(config?: FlickrProxy.ConstructorProperties): void
|
|
176
180
|
/**
|
|
177
181
|
* Examines the Flickr response and if it not a successful reply, set `error` and
|
|
@@ -251,6 +255,8 @@ module LastfmProxy {
|
|
|
251
255
|
api_key?: string | null
|
|
252
256
|
secret?: string | null
|
|
253
257
|
session_key?: string | null
|
|
258
|
+
apiKey?: string | null
|
|
259
|
+
sessionKey?: string | null
|
|
254
260
|
}
|
|
255
261
|
|
|
256
262
|
}
|
|
@@ -260,8 +266,10 @@ interface LastfmProxy {
|
|
|
260
266
|
// Own properties of RestExtras-0.7.RestExtras.LastfmProxy
|
|
261
267
|
|
|
262
268
|
readonly api_key: string | null
|
|
269
|
+
readonly apiKey: string | null
|
|
263
270
|
readonly secret: string | null
|
|
264
271
|
session_key: string | null
|
|
272
|
+
sessionKey: string | null
|
|
265
273
|
|
|
266
274
|
// Own fields of RestExtras-0.7.RestExtras.LastfmProxy
|
|
267
275
|
|
|
@@ -270,27 +278,27 @@ interface LastfmProxy {
|
|
|
270
278
|
|
|
271
279
|
// Owm methods of RestExtras-0.7.RestExtras.LastfmProxy
|
|
272
280
|
|
|
273
|
-
build_login_url(token: string
|
|
281
|
+
build_login_url(token: string): string | null
|
|
274
282
|
/**
|
|
275
283
|
* Get the API key.
|
|
276
284
|
* @returns the API key. This string is owned by #LastfmProxy and should not be freed.
|
|
277
285
|
*/
|
|
278
|
-
get_api_key(): string
|
|
286
|
+
get_api_key(): string
|
|
279
287
|
/**
|
|
280
288
|
* Get the secret for authentication.
|
|
281
289
|
* @returns the secret. This string is owned by #LastfmProxy and should not be freed.
|
|
282
290
|
*/
|
|
283
|
-
get_secret(): string
|
|
291
|
+
get_secret(): string
|
|
284
292
|
/**
|
|
285
293
|
* Get the current session key.
|
|
286
294
|
* @returns the session key, or %NULL if there is no session key yet. This string is owned by #LastfmProxy and should not be freed.
|
|
287
295
|
*/
|
|
288
|
-
get_session_key(): string
|
|
296
|
+
get_session_key(): string
|
|
289
297
|
/**
|
|
290
298
|
* Set the session key.
|
|
291
299
|
* @param session_key the access session_key
|
|
292
300
|
*/
|
|
293
|
-
set_session_key(session_key: string
|
|
301
|
+
set_session_key(session_key: string): void
|
|
294
302
|
sign(params: GLib.HashTable): string | null
|
|
295
303
|
|
|
296
304
|
// Class property signals of RestExtras-0.7.RestExtras.LastfmProxy
|
|
@@ -348,8 +356,8 @@ class LastfmProxy extends Rest.Proxy {
|
|
|
348
356
|
// Constructors of RestExtras-0.7.RestExtras.LastfmProxy
|
|
349
357
|
|
|
350
358
|
constructor(config?: LastfmProxy.ConstructorProperties)
|
|
351
|
-
constructor(api_key: string
|
|
352
|
-
static new(api_key: string
|
|
359
|
+
constructor(api_key: string, secret: string)
|
|
360
|
+
static new(api_key: string, secret: string): LastfmProxy
|
|
353
361
|
|
|
354
362
|
// Overloads of new
|
|
355
363
|
|
|
@@ -365,8 +373,8 @@ class LastfmProxy extends Rest.Proxy {
|
|
|
365
373
|
* @param binding_required whether the URL needs to be bound before calling
|
|
366
374
|
* @returns A new #RestProxy.
|
|
367
375
|
*/
|
|
368
|
-
static new(url_format: string
|
|
369
|
-
static new_with_session(api_key: string
|
|
376
|
+
static new(url_format: string, binding_required: boolean): Rest.Proxy
|
|
377
|
+
static new_with_session(api_key: string, secret: string, session_key: string): LastfmProxy
|
|
370
378
|
_init(config?: LastfmProxy.ConstructorProperties): void
|
|
371
379
|
/**
|
|
372
380
|
* Examines the Lastfm response and if it not a successful reply, set `error` and
|
|
@@ -430,6 +438,8 @@ module YoutubeProxy {
|
|
|
430
438
|
|
|
431
439
|
developer_key?: string | null
|
|
432
440
|
user_auth?: string | null
|
|
441
|
+
developerKey?: string | null
|
|
442
|
+
userAuth?: string | null
|
|
433
443
|
}
|
|
434
444
|
|
|
435
445
|
}
|
|
@@ -439,7 +449,9 @@ interface YoutubeProxy {
|
|
|
439
449
|
// Own properties of RestExtras-0.7.RestExtras.YoutubeProxy
|
|
440
450
|
|
|
441
451
|
readonly developer_key: string | null
|
|
452
|
+
readonly developerKey: string | null
|
|
442
453
|
user_auth: string | null
|
|
454
|
+
userAuth: string | null
|
|
443
455
|
|
|
444
456
|
// Own fields of RestExtras-0.7.RestExtras.YoutubeProxy
|
|
445
457
|
|
|
@@ -448,7 +460,7 @@ interface YoutubeProxy {
|
|
|
448
460
|
|
|
449
461
|
// Owm methods of RestExtras-0.7.RestExtras.YoutubeProxy
|
|
450
462
|
|
|
451
|
-
set_user_auth(user_auth: string
|
|
463
|
+
set_user_auth(user_auth: string): void
|
|
452
464
|
/**
|
|
453
465
|
* Upload a file.
|
|
454
466
|
* @param filename filename
|
|
@@ -458,7 +470,7 @@ interface YoutubeProxy {
|
|
|
458
470
|
* @param weak_object an object instance used to tie the life cycle of the proxy to
|
|
459
471
|
* @returns %TRUE, or %FALSE if the file could not be opened
|
|
460
472
|
*/
|
|
461
|
-
upload_async(filename: string
|
|
473
|
+
upload_async(filename: string, fields: GLib.HashTable, incomplete: boolean, callback: YoutubeProxyUploadCallback, weak_object: GObject.Object): boolean
|
|
462
474
|
|
|
463
475
|
// Class property signals of RestExtras-0.7.RestExtras.YoutubeProxy
|
|
464
476
|
|
|
@@ -512,8 +524,8 @@ class YoutubeProxy extends Rest.Proxy {
|
|
|
512
524
|
// Constructors of RestExtras-0.7.RestExtras.YoutubeProxy
|
|
513
525
|
|
|
514
526
|
constructor(config?: YoutubeProxy.ConstructorProperties)
|
|
515
|
-
constructor(developer_key: string
|
|
516
|
-
static new(developer_key: string
|
|
527
|
+
constructor(developer_key: string)
|
|
528
|
+
static new(developer_key: string): YoutubeProxy
|
|
517
529
|
|
|
518
530
|
// Overloads of new
|
|
519
531
|
|
|
@@ -529,8 +541,8 @@ class YoutubeProxy extends Rest.Proxy {
|
|
|
529
541
|
* @param binding_required whether the URL needs to be bound before calling
|
|
530
542
|
* @returns A new #RestProxy.
|
|
531
543
|
*/
|
|
532
|
-
static new(url_format: string
|
|
533
|
-
static new_with_auth(developer_key: string
|
|
544
|
+
static new(url_format: string, binding_required: boolean): Rest.Proxy
|
|
545
|
+
static new_with_auth(developer_key: string, user_auth: string): YoutubeProxy
|
|
534
546
|
_init(config?: YoutubeProxy.ConstructorProperties): void
|
|
535
547
|
}
|
|
536
548
|
|