...
|
...
|
@@ -77,7 +77,7 @@ class Call extends Factory |
|
|
|
|
|
if (is_array($token) && isset($token['uid']))
|
|
|
{
|
|
|
$this->client = new SaeTClientV2($this->apiConfig['appId'], $this->apiConfig['appKey'], $token['access_token']);
|
|
|
$this->client = new \SaeTClientV2($this->apiConfig['appId'], $this->apiConfig['appKey'], $token['access_token']);
|
|
|
|
|
|
$userInfo = $this->client->show_user_by_id($token['uid']);
|
|
|
|
...
|
...
|
@@ -108,7 +108,7 @@ class Call extends Factory |
|
|
|
|
|
if (is_array($token) && isset($token['access_token']))
|
|
|
{
|
|
|
$this->client = new SaeTClientV2($this->apiConfig['appId'], $this->apiConfig['appKey'], $token['access_token']);
|
|
|
$this->client = new \SaeTClientV2($this->apiConfig['appId'], $this->apiConfig['appKey'], $token['access_token']);
|
|
|
|
|
|
$result = $this->client->friends_by_id($params['uid'], $params['cursor'], $params['count']);
|
|
|
|
...
|
...
|
@@ -133,7 +133,7 @@ class Call extends Factory |
|
|
|
|
|
if (is_array($token) && isset($token['access_token']))
|
|
|
{
|
|
|
$this->client = new SaeTClientV2($this->apiConfig['appId'], $this->apiConfig['appKey'], $token['access_token']);
|
|
|
$this->client = new \SaeTClientV2($this->apiConfig['appId'], $this->apiConfig['appKey'], $token['access_token']);
|
|
|
|
|
|
$result = $this->client->bilateral($params['uid'], $params['page'], $params['count']);
|
|
|
|
...
|
...
|
@@ -163,7 +163,7 @@ class Call extends Factory |
|
|
{
|
|
|
$content .= $link;
|
|
|
|
|
|
$this->client = new SaeTClientV2($this->apiConfig['appId'], $this->apiConfig['appKey'], $token['access_token']);
|
|
|
$this->client = new \SaeTClientV2($this->apiConfig['appId'], $this->apiConfig['appKey'], $token['access_token']);
|
|
|
|
|
|
$response = $this->client->upload($content, $image);
|
|
|
|
...
|
...
|
@@ -190,7 +190,7 @@ class Call extends Factory |
|
|
|
|
|
if (is_array($token) && isset($token['access_token']))
|
|
|
{
|
|
|
$this->client = new SaeTClientV2($this->apiConfig['appId'], $this->apiConfig['appKey'], $token['access_token']);
|
|
|
$this->client = new \SaeTClientV2($this->apiConfig['appId'], $this->apiConfig['appKey'], $token['access_token']);
|
|
|
|
|
|
if ($uid !== null)
|
|
|
{
|
...
|
...
|
@@ -218,7 +218,7 @@ class Call extends Factory |
|
|
|
|
|
if (is_array($token) && isset($token['access_token']) && is_string($content))
|
|
|
{
|
|
|
$this->client = new SaeTClientV2($this->apiConfig['appId'], $this->apiConfig['appKey'], $token['access_token']);
|
|
|
$this->client = new \SaeTClientV2($this->apiConfig['appId'], $this->apiConfig['appKey'], $token['access_token']);
|
|
|
|
|
|
$this->client->update($content);
|
|
|
}
|
...
|
...
|
@@ -238,7 +238,7 @@ class Call extends Factory |
|
|
{
|
|
|
if (is_array($token) && isset($token['access_token']) && isset($uid))
|
|
|
{
|
|
|
$this->client = new SaeTClientV2($this->apiConfig['appId'], $this->apiConfig['appKey'], $token['access_token']);
|
|
|
$this->client = new \SaeTClientV2($this->apiConfig['appId'], $this->apiConfig['appKey'], $token['access_token']);
|
|
|
$this->client->send_dm_by_id($uid, $content, $id);
|
|
|
}
|
|
|
}
|
...
|
...
|
|