1 /* rest-extras-0.7.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "", gir_namespace = "RestExtras", gir_version = "0.7", lower_case_cprefix = "_")]
5 [CCode (cheader_filename = "rest-extras/flickr-proxy.h", type_id = "flickr_proxy_get_type ()")]
6 public class FlickrProxy : Rest.Proxy {
7 [CCode (cname = "flickr_proxy_new", has_construct_function = false, type = "RestProxy*")]
8 public FlickrProxy (string api_key, string shared_secret);
9 [CCode (cname = "flickr_proxy_build_login_url")]
10 public string build_login_url (string frob, string perms);
11 [CCode (cname = "flickr_proxy_get_api_key")]
12 public unowned string get_api_key ();
13 [CCode (cname = "flickr_proxy_get_shared_secret")]
14 public unowned string get_shared_secret ();
15 [CCode (cname = "flickr_proxy_get_token")]
16 public unowned string get_token ();
17 [CCode (cname = "flickr_proxy_is_successful")]
18 public static bool is_successful (Rest.XmlNode root) throws GLib.Error;
19 [CCode (cname = "flickr_proxy_new_upload")]
20 public Rest.FlickrProxyCall new_upload ();
21 [CCode (cname = "flickr_proxy_new_upload_for_file")]
22 public Rest.FlickrProxyCall new_upload_for_file (string filename) throws GLib.Error;
23 [CCode (cname = "flickr_proxy_set_token")]
24 public void set_token (string token);
25 [CCode (cname = "flickr_proxy_sign")]
26 public string sign (GLib.HashTable<void*,void*> @params);
27 [CCode (cname = "flickr_proxy_new_with_token", has_construct_function = false, type = "RestProxy*")]
28 public FlickrProxy.with_token (string api_key, string shared_secret, string token);
30 public string api_key { owned get; construct; }
32 public string shared_secret { owned get; construct; }
34 public string token { owned get; set; }
36 [CCode (cheader_filename = "rest-extras/flickr-proxy-call.h", type_id = "flickr_proxy_call_get_type ()")]
37 public class FlickrProxyCall : Rest.ProxyCall {
38 [CCode (has_construct_function = false)]
39 protected FlickrProxyCall ();
41 public bool upload { construct; }
43 [CCode (cheader_filename = "rest-extras/lastfm-proxy.h", type_id = "lastfm_proxy_get_type ()")]
44 public class LastfmProxy : Rest.Proxy {
45 [CCode (cname = "lastfm_proxy_new", has_construct_function = false, type = "RestProxy*")]
46 public LastfmProxy (string api_key, string secret);
47 [CCode (cname = "lastfm_proxy_build_login_url")]
48 public string build_login_url (string token);
49 [CCode (cname = "lastfm_proxy_get_api_key")]
50 public unowned string get_api_key ();
51 [CCode (cname = "lastfm_proxy_get_secret")]
52 public unowned string get_secret ();
53 [CCode (cname = "lastfm_proxy_get_session_key")]
54 public unowned string get_session_key ();
55 [CCode (cname = "lastfm_proxy_is_successful")]
56 public static bool is_successful (Rest.XmlNode root) throws GLib.Error;
57 [CCode (cname = "lastfm_proxy_set_session_key")]
58 public void set_session_key (string session_key);
59 [CCode (cname = "lastfm_proxy_sign")]
60 public string sign (GLib.HashTable<void*,void*> @params);
61 [CCode (cname = "lastfm_proxy_new_with_session", has_construct_function = false, type = "RestProxy*")]
62 public LastfmProxy.with_session (string api_key, string secret, string session_key);
64 public string api_key { owned get; construct; }
66 public string secret { owned get; construct; }
68 public string session_key { owned get; set; }
70 [CCode (cheader_filename = "rest-extras/lastfm-proxy-call.h", type_id = "lastfm_proxy_call_get_type ()")]
71 public class LastfmProxyCall : Rest.ProxyCall {
72 [CCode (has_construct_function = false)]
73 protected LastfmProxyCall ();
75 [CCode (cheader_filename = "rest-extras/youtube-proxy.h", type_id = "youtube_proxy_get_type ()")]
76 public class YoutubeProxy : Rest.Proxy {
77 [CCode (cname = "youtube_proxy_new", has_construct_function = false, type = "RestProxy*")]
78 public YoutubeProxy (string developer_key);
79 [CCode (cname = "youtube_proxy_set_user_auth")]
80 public void set_user_auth (string user_auth);
81 [CCode (cname = "youtube_proxy_upload_async")]
82 public bool upload_async (string filename, GLib.HashTable<void*,void*> fields, bool incomplete, [CCode (delegate_target_pos = 5.1, scope = "async")] Rest.YoutubeProxyUploadCallback callback, GLib.Object weak_object) throws GLib.Error;
83 [CCode (cname = "youtube_proxy_new_with_auth", has_construct_function = false, type = "RestProxy*")]
84 public YoutubeProxy.with_auth (string developer_key, string user_auth);
86 public string developer_key { owned get; construct; }
88 public string user_auth { owned get; set; }
90 [CCode (cheader_filename = "rest-extras/youtube-proxy.h", instance_pos = 6.9)]
91 public delegate void YoutubeProxyUploadCallback (Rest.YoutubeProxy proxy, string payload, size_t total, size_t uploaded, GLib.Error error, GLib.Object weak_object);