|
@@ -77,7 +77,7 @@ class Call extends Factory |
|
@@ -77,7 +77,7 @@ class Call extends Factory |
77
|
|
77
|
|
78
|
if (is_array($token) && isset($token['uid']))
|
78
|
if (is_array($token) && isset($token['uid']))
|
79
|
{
|
79
|
{
|
80
|
- $this->client = new SaeTClientV2($this->apiConfig['appId'], $this->apiConfig['appKey'], $token['access_token']);
|
80
|
+ $this->client = new \SaeTClientV2($this->apiConfig['appId'], $this->apiConfig['appKey'], $token['access_token']);
|
81
|
|
81
|
|
82
|
$userInfo = $this->client->show_user_by_id($token['uid']);
|
82
|
$userInfo = $this->client->show_user_by_id($token['uid']);
|
83
|
|
83
|
|
|
@@ -108,7 +108,7 @@ class Call extends Factory |
|
@@ -108,7 +108,7 @@ class Call extends Factory |
108
|
|
108
|
|
109
|
if (is_array($token) && isset($token['access_token']))
|
109
|
if (is_array($token) && isset($token['access_token']))
|
110
|
{
|
110
|
{
|
111
|
- $this->client = new SaeTClientV2($this->apiConfig['appId'], $this->apiConfig['appKey'], $token['access_token']);
|
111
|
+ $this->client = new \SaeTClientV2($this->apiConfig['appId'], $this->apiConfig['appKey'], $token['access_token']);
|
112
|
|
112
|
|
113
|
$result = $this->client->friends_by_id($params['uid'], $params['cursor'], $params['count']);
|
113
|
$result = $this->client->friends_by_id($params['uid'], $params['cursor'], $params['count']);
|
114
|
|
114
|
|
|
@@ -133,7 +133,7 @@ class Call extends Factory |
|
@@ -133,7 +133,7 @@ class Call extends Factory |
133
|
|
133
|
|
134
|
if (is_array($token) && isset($token['access_token']))
|
134
|
if (is_array($token) && isset($token['access_token']))
|
135
|
{
|
135
|
{
|
136
|
- $this->client = new SaeTClientV2($this->apiConfig['appId'], $this->apiConfig['appKey'], $token['access_token']);
|
136
|
+ $this->client = new \SaeTClientV2($this->apiConfig['appId'], $this->apiConfig['appKey'], $token['access_token']);
|
137
|
|
137
|
|
138
|
$result = $this->client->bilateral($params['uid'], $params['page'], $params['count']);
|
138
|
$result = $this->client->bilateral($params['uid'], $params['page'], $params['count']);
|
139
|
|
139
|
|
|
@@ -163,7 +163,7 @@ class Call extends Factory |
|
@@ -163,7 +163,7 @@ class Call extends Factory |
163
|
{
|
163
|
{
|
164
|
$content .= $link;
|
164
|
$content .= $link;
|
165
|
|
165
|
|
166
|
- $this->client = new SaeTClientV2($this->apiConfig['appId'], $this->apiConfig['appKey'], $token['access_token']);
|
166
|
+ $this->client = new \SaeTClientV2($this->apiConfig['appId'], $this->apiConfig['appKey'], $token['access_token']);
|
167
|
|
167
|
|
168
|
$response = $this->client->upload($content, $image);
|
168
|
$response = $this->client->upload($content, $image);
|
169
|
|
169
|
|
|
@@ -190,7 +190,7 @@ class Call extends Factory |
|
@@ -190,7 +190,7 @@ class Call extends Factory |
190
|
|
190
|
|
191
|
if (is_array($token) && isset($token['access_token']))
|
191
|
if (is_array($token) && isset($token['access_token']))
|
192
|
{
|
192
|
{
|
193
|
- $this->client = new SaeTClientV2($this->apiConfig['appId'], $this->apiConfig['appKey'], $token['access_token']);
|
193
|
+ $this->client = new \SaeTClientV2($this->apiConfig['appId'], $this->apiConfig['appKey'], $token['access_token']);
|
194
|
|
194
|
|
195
|
if ($uid !== null)
|
195
|
if ($uid !== null)
|
196
|
{
|
196
|
{
|
|
@@ -218,7 +218,7 @@ class Call extends Factory |
|
@@ -218,7 +218,7 @@ class Call extends Factory |
218
|
|
218
|
|
219
|
if (is_array($token) && isset($token['access_token']) && is_string($content))
|
219
|
if (is_array($token) && isset($token['access_token']) && is_string($content))
|
220
|
{
|
220
|
{
|
221
|
- $this->client = new SaeTClientV2($this->apiConfig['appId'], $this->apiConfig['appKey'], $token['access_token']);
|
221
|
+ $this->client = new \SaeTClientV2($this->apiConfig['appId'], $this->apiConfig['appKey'], $token['access_token']);
|
222
|
|
222
|
|
223
|
$this->client->update($content);
|
223
|
$this->client->update($content);
|
224
|
}
|
224
|
}
|
|
@@ -238,7 +238,7 @@ class Call extends Factory |
|
@@ -238,7 +238,7 @@ class Call extends Factory |
238
|
{
|
238
|
{
|
239
|
if (is_array($token) && isset($token['access_token']) && isset($uid))
|
239
|
if (is_array($token) && isset($token['access_token']) && isset($uid))
|
240
|
{
|
240
|
{
|
241
|
- $this->client = new SaeTClientV2($this->apiConfig['appId'], $this->apiConfig['appKey'], $token['access_token']);
|
241
|
+ $this->client = new \SaeTClientV2($this->apiConfig['appId'], $this->apiConfig['appKey'], $token['access_token']);
|
242
|
$this->client->send_dm_by_id($uid, $content, $id);
|
242
|
$this->client->send_dm_by_id($uid, $content, $id);
|
243
|
}
|
243
|
}
|
244
|
}
|
244
|
}
|