Top | ![]() |
![]() |
![]() |
![]() |
Functions
RestProxy * | flickr_proxy_new () |
RestProxy * | flickr_proxy_new_with_token () |
const char * | flickr_proxy_get_api_key () |
const char * | flickr_proxy_get_shared_secret () |
const char * | flickr_proxy_get_token () |
void | flickr_proxy_set_token () |
char * | flickr_proxy_sign () |
char * | flickr_proxy_build_login_url () |
gboolean | flickr_proxy_is_successful () |
RestProxyCall * | flickr_proxy_new_upload () |
RestProxyCall * | flickr_proxy_new_upload_for_file () |
Functions
flickr_proxy_new_with_token ()
RestProxy * flickr_proxy_new_with_token (const char *api_key
,const char *shared_secret
,const char *token
);
flickr_proxy_get_api_key ()
const char *
flickr_proxy_get_api_key (FlickrProxy *proxy
);
Get the API key.
flickr_proxy_get_shared_secret ()
const char *
flickr_proxy_get_shared_secret (FlickrProxy *proxy
);
Get the shared secret for authentication.
flickr_proxy_get_token ()
const char *
flickr_proxy_get_token (FlickrProxy *proxy
);
Get the current token.
Returns
the token, or NULL
if there is no token yet. This string is owned
by FlickrProxy and should not be freed.
flickr_proxy_set_token ()
void flickr_proxy_set_token (FlickrProxy *proxy
,const char *token
);
Set the token.
flickr_proxy_build_login_url ()
char * flickr_proxy_build_login_url (FlickrProxy *proxy
,const char *frob
,const char *perms
);
flickr_proxy_is_successful ()
gboolean flickr_proxy_is_successful (RestXmlNode *root
,GError **error
);
Examines the Flickr response and if it not a successful reply, set error
and
return FALSE.
Parameters
root |
The root node of a parsed Flickr response |
|
error |
GError to set if the response was an error |
flickr_proxy_new_upload ()
RestProxyCall *
flickr_proxy_new_upload (FlickrProxy *proxy
);
Create a new RestProxyCall that can be used for uploading.
See http://www.flickr.com/services/api/upload.api.php for details on uploading to Flickr.
flickr_proxy_new_upload_for_file ()
RestProxyCall * flickr_proxy_new_upload_for_file (FlickrProxy *proxy
,const char *filename
,GError **error
);
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.php for details on uploading to Flickr.
Property Details
The “api-key”
property
“api-key” gchar *
The API key.
Flags: Read / Write / Construct Only
Default value: NULL
The “shared-secret”
property
“shared-secret” gchar *
The shared secret.
Flags: Read / Write / Construct Only
Default value: NULL
The “token”
property
“token” gchar *
The request or access token.
Flags: Read / Write
Default value: NULL