diff options
author | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-03-10 17:43:39 +0000 |
---|---|---|
committer | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-03-10 17:43:39 +0000 |
commit | df1d8b6068b0bd979cf04555cae6285c44531465 (patch) | |
tree | 28a09cc5d57e09d36ea97e0742fa88a0909327a1 /endpoints/rest.php | |
parent | eaa0e26b19e46e0391644251ec09fe2451c67f35 (diff) | |
download | elgg-df1d8b6068b0bd979cf04555cae6285c44531465.tar.gz elgg-df1d8b6068b0bd979cf04555cae6285c44531465.tar.bz2 |
Marcus Povey <marcus@dushka.co.uk>
* First draft api
git-svn-id: https://code.elgg.org/elgg/trunk@144 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'endpoints/rest.php')
-rw-r--r-- | endpoints/rest.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/endpoints/rest.php b/endpoints/rest.php index cb47804ed..40631e81d 100644 --- a/endpoints/rest.php +++ b/endpoints/rest.php @@ -41,14 +41,12 @@ $api_header = get_and_validate_api_headers(); $ApiEnvironment->api_header = $api_header; - // Get site - - - - // Pull API user details $ApiEnvironment->api_user = get_api_user($api_header->api_key); + // Get site + $ApiEnvironment->site_id = $ApiEnvironment->api_user->side_id; + if ($ApiEnvironment->api_user) { // Get the secret key |