Skip to content
Browse files

zmiana nazw zasobów dla userStorage i location

  • Loading branch information...
1 parent e2ca1a8 commit a7770ddd5528d05c0f4c677160a21eb1fb312770 @botmonster botmonster committed Mar 26, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 php/GGAPI.php
View
8 php/GGAPI.php
@@ -189,7 +189,7 @@ public function getUserLocation($user, $ip = null){
$params['ip'] = $ip;
}
- return $this->doRequest('GET', $this->scopes['geo'].'/'.$this->getUser($user).'/location', $params, array($this->getAuthHeader()));
+ return $this->doRequest('GET', $this->scopes['geo'].'/userLocation/'.$this->getUser($user), $params, array($this->getAuthHeader()));
}
/**
* @desc Zapisz klucz w bazie aplikacji
@@ -203,7 +203,7 @@ public function setUserValue($user, $key, $value, $contentType = 'application/js
'value' => json_encode($value),
);
- return $this->doRequest('POST', $this->scopes['storage'].'/'.$this->getApp().'/'.$this->getUser($user).'/'.$key, $params, array($this->getAuthHeader()));
+ return $this->doRequest('POST', $this->scopes['storage'].'/userStorage/'.$this->getApp().'/'.$this->getUser($user).'/'.$key, $params, array($this->getAuthHeader()));
}
/**
@@ -213,7 +213,7 @@ public function setUserValue($user, $key, $value, $contentType = 'application/js
*/
public function getUserValue($user, $key){
- return $this->doRequest('GET', $this->scopes['storage'].'/'.$this->getApp().'/'.$this->getUser($user).'/'.$key, null, array($this->getAuthHeader()));
+ return $this->doRequest('GET', $this->scopes['storage'].'/userStorage/'.$this->getApp().'/'.$this->getUser($user).'/'.$key, null, array($this->getAuthHeader()));
}
/**
* @desc Skasuj klucz z bazy aplikacji
@@ -222,7 +222,7 @@ public function getUserValue($user, $key){
*/
public function deleteUserValue($user, $key){
- return $this->doRequest('DELETE', $this->scopes['storage'].'/'.$this->getApp().'/'.$this->getUser($user).'/'.$key, null, array($this->getAuthHeader()));
+ return $this->doRequest('DELETE', $this->scopes['storage'].'/userStorage/'.$this->getApp().'/'.$this->getUser($user).'/'.$key, null, array($this->getAuthHeader()));
}

0 comments on commit a7770dd

Please sign in to comment.
Something went wrong with that request. Please try again.