1 /* rest-extras-0.6.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Rest", lower_case_cprefix = "rest_")]
5 [CCode (cname = "FacebookProxy", cheader_filename = "rest-extras/facebook-proxy.h")]
6 public class FacebookProxy : Rest.Proxy {
7 [CCode (cname = "facebook_proxy_new", type = "RestProxy*", has_construct_function = false)]
8 public FacebookProxy (string api_key, string app_secret);
9 [CCode (cname = "facebook_proxy_build_login_url")]
10 public unowned string build_login_url (string frob);
11 [CCode (cname = "facebook_proxy_build_permission_url")]
12 public unowned string build_permission_url (string perms);
13 [CCode (cname = "facebook_proxy_get_api_key")]
14 public unowned string get_api_key ();
15 [CCode (cname = "facebook_proxy_get_app_secret")]
16 public unowned string get_app_secret ();
17 [CCode (cname = "facebook_proxy_get_session_key")]
18 public unowned string get_session_key ();
19 [CCode (cname = "facebook_proxy_set_app_secret")]
20 public void set_app_secret (string secret);
21 [CCode (cname = "facebook_proxy_set_session_key")]
22 public void set_session_key (string session_key);
23 [CCode (cname = "facebook_proxy_sign")]
24 public unowned string sign (GLib.HashTable @params);
25 [CCode (cname = "facebook_proxy_new_with_session", type = "RestProxy*", has_construct_function = false)]
26 public FacebookProxy.with_session (string api_key, string app_secret, string session_key);
28 [CCode (cname = "FacebookProxyCall", cheader_filename = "rest-extras/facebook-proxy-call.h")]
29 public class FacebookProxyCall : Rest.ProxyCall {
31 [CCode (cname = "FlickrProxy", cheader_filename = "rest-extras/flickr-proxy.h")]
32 public class FlickrProxy : Rest.Proxy {
33 [CCode (cname = "flickr_proxy_new", type = "RestProxy*", has_construct_function = false)]
34 public FlickrProxy (string api_key, string shared_secret);
35 [CCode (cname = "flickr_proxy_build_login_url")]
36 public unowned string build_login_url (string frob);
37 [CCode (cname = "flickr_proxy_get_api_key")]
38 public unowned string get_api_key ();
39 [CCode (cname = "flickr_proxy_get_shared_secret")]
40 public unowned string get_shared_secret ();
41 [CCode (cname = "flickr_proxy_get_token")]
42 public unowned string get_token ();
43 [CCode (cname = "flickr_proxy_is_successful")]
44 public static bool is_successful (Rest.XmlNode root) throws GLib.Error;
45 [CCode (cname = "flickr_proxy_set_token")]
46 public void set_token (string token);
47 [CCode (cname = "flickr_proxy_sign")]
48 public unowned string sign (GLib.HashTable @params);
49 [CCode (cname = "flickr_proxy_new_with_token", type = "RestProxy*", has_construct_function = false)]
50 public FlickrProxy.with_token (string api_key, string shared_secret, string token);
52 [CCode (cname = "FlickrProxyCall", cheader_filename = "rest-extras/flickr-proxy-call.h")]
53 public class FlickrProxyCall : Rest.ProxyCall {