summaryrefslogtreecommitdiff
path: root/rest
diff options
context:
space:
mode:
authorRoss Burton <ross@linux.intel.com>2009-05-24 10:44:21 +0100
committerRoss Burton <ross@linux.intel.com>2009-05-24 21:25:01 +0100
commite305b3f8039c566ad251365a89828cb8735f21a0 (patch)
tree4657eb2253eaa29756049853571ae9e2ef7e22e5 /rest
parente6aff0f41fe2c9b9ec2a0351a36e0a772d7df750 (diff)
downloadlibrest-e305b3f8039c566ad251365a89828cb8735f21a0.tar.gz
Set the call_id parameter
Diffstat (limited to 'rest')
-rw-r--r--rest/facebook-proxy-call.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/rest/facebook-proxy-call.c b/rest/facebook-proxy-call.c
index 9116249..8c10f6a 100644
--- a/rest/facebook-proxy-call.c
+++ b/rest/facebook-proxy-call.c
@@ -51,10 +51,15 @@ _prepare (RestProxyCall *call, GError **error)
"v", "1.0",
NULL);
- if (priv->session_key)
- rest_proxy_call_add_param (call, "session_key", priv->session_key);
+ if (priv->session_key) {
+ GTimeVal time;
+ g_get_current_time (&time);
+ s = g_strdup_printf ("%ld.%ld", time.tv_sec, time.tv_usec);
+ rest_proxy_call_add_param (call, "call_id", s);
+ g_free (s);
- /* TODO call id */
+ rest_proxy_call_add_param (call, "session_key", priv->session_key);
+ }
s = facebook_proxy_sign (proxy, call_priv->params);
rest_proxy_call_add_param (call, "sig", s);