[frogr] Use SSL endpoints for the Flickr API
- From: Mario Sanchez Prada <msanchez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [frogr] Use SSL endpoints for the Flickr API
- Date: Wed, 7 May 2014 22:26:37 +0000 (UTC)
commit efc896a9b3ab0427af2d7c0a65b7c8303e866038
Author: Mario Sanchez Prada <msanchez gnome org>
Date: Wed May 7 23:11:36 2014 +0100
Use SSL endpoints for the Flickr API
Done this change as the non-SSL API will be deprecated soon (June 27th 2014)
http://code.flickr.net/2014/04/30/flickr-api-going-ssl-only-on-june-27th-2014/
src/flicksoup/fsp-session.c | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/src/flicksoup/fsp-session.c b/src/flicksoup/fsp-session.c
index 8a03c3f..787f86c 100644
--- a/src/flicksoup/fsp-session.c
+++ b/src/flicksoup/fsp-session.c
@@ -37,10 +37,11 @@
#include <stdarg.h>
#include <string.h>
-#define FLICKR_API_BASE_URL "http://api.flickr.com/services/rest"
-#define FLICKR_API_UPLOAD_URL "http://api.flickr.com/services/upload"
-#define FLICKR_REQUEST_TOKEN_OAUTH_URL "http://www.flickr.com/services/oauth/request_token"
-#define FLICKR_ACCESS_TOKEN_OAUTH_URL "http://www.flickr.com/services/oauth/access_token"
+#define FLICKR_API_BASE_URL "https://api.flickr.com/services/rest"
+#define FLICKR_API_UPLOAD_URL "https://up.flickr.com/services/upload"
+#define FLICKR_REQUEST_TOKEN_OAUTH_URL "https://www.flickr.com/services/oauth/request_token"
+#define FLICKR_ACCESS_TOKEN_OAUTH_URL "https://www.flickr.com/services/oauth/access_token"
+#define FLICKR_AUTHORIZE_OAUTH_URL "https://www.flickr.com/services/oauth/authorize"
#define OAUTH_CALLBACK_URL "oob"
#define OAUTH_SIGNATURE_METHOD "HMAC-SHA1"
@@ -1857,8 +1858,9 @@ fsp_session_get_auth_url_finish (FspSession *self,
self->priv->tmp_token_secret = g_strdup (auth_token->token_secret);
/* Build the authorization url */
- auth_url = g_strdup_printf ("http://www.flickr.com/services/oauth/authorize"
- "?oauth_token=%s", auth_token->token);
+ auth_url = g_strdup_printf ("%s?oauth_token=%s",
+ FLICKR_AUTHORIZE_OAUTH_URL,
+ auth_token->token);
fsp_data_free (FSP_DATA (auth_token));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]