Index: services.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/services/Attic/services.module,v
retrieving revision 1.3.2.7
diff -u -r1.3.2.7 services.module
--- services.module	28 Mar 2008 05:08:33 -0000	1.3.2.7
+++ services.module	30 Mar 2008 01:57:56 -0000
@@ -349,6 +349,9 @@
     if (!services_validate_key($api_key, $timestamp, $domain, $hash)) {
       return services_error(t('Invalid API key.'));
     }
+    else{
+      services_api_key($api_key);
+    }
   }
   
   // Add additonal processing for methods requiring authentication.
@@ -554,3 +557,16 @@
   sess_read($sessid);
   session_start();
 }
+
+/**
+ * Creates a static variable which hold the api used on the call
+*/
+function services_api_key($api_key){
+  static $api;
+  
+  if(!is_null($api_key)){
+  	$api = $api_key;
+  }
+  
+  return $api;
+}
\ No newline at end of file
