-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
71 changed files
with
144 additions
and
218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
*/ | ||
|
||
/** | ||
* Broadcast.php. | ||
* OfficialAccount Broadcast Client. | ||
* | ||
* @author overtrue <[email protected]> | ||
* @copyright 2015 overtrue <[email protected]> | ||
|
@@ -24,10 +24,7 @@ | |
use EasyWeChat\Exceptions\HttpException; | ||
use EasyWeChat\Foundation\Core\AbstractAPI; | ||
|
||
/** | ||
* Class Broadcast. | ||
*/ | ||
class Broadcast extends AbstractAPI | ||
class Client extends AbstractAPI | ||
{ | ||
const API_SEND_BY_GROUP = 'https://api.weixin.qq.com/cgi-bin/message/mass/sendall'; | ||
const API_SEND_BY_OPENID = 'https://api.weixin.qq.com/cgi-bin/message/mass/send'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
*/ | ||
|
||
/** | ||
* Card.php. | ||
* OfficialAccount Card Client. | ||
* | ||
* @author overtrue <[email protected]> | ||
* @copyright 2016 overtrue <[email protected]> | ||
|
@@ -27,7 +27,7 @@ | |
use EasyWeChat\Support\Arr; | ||
use Psr\Http\Message\ResponseInterface; | ||
|
||
class Card extends AbstractAPI | ||
class Client extends AbstractAPI | ||
{ | ||
/** | ||
* Cache. | ||
|
@@ -212,7 +212,7 @@ public function jsConfigForAssign(array $cards) | |
* @param string $cardId | ||
* @param array $extension | ||
* | ||
* @return string | ||
* @return array | ||
*/ | ||
public function attachExtension($cardId, array $extension = []) | ||
{ | ||
|
@@ -834,7 +834,7 @@ public function getCache() | |
} | ||
|
||
/** | ||
* Set Api_ticket cache prifix. | ||
* Set Api_ticket cache prefix. | ||
* | ||
* @param string $prefix | ||
* | ||
|
@@ -880,7 +880,7 @@ public function getTicketCacheKey() | |
* | ||
* @param string $url | ||
* | ||
* @return Card | ||
* @return Client | ||
*/ | ||
public function setUrl($url) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
*/ | ||
|
||
/** | ||
* CustomerService.php. | ||
* OfficialAccount CustomerService Client. | ||
* | ||
* @author overtrue <[email protected]> | ||
* @copyright 2015 overtrue <[email protected]> | ||
|
@@ -24,10 +24,7 @@ | |
use EasyWeChat\Foundation\Core\AbstractAPI; | ||
use EasyWeChat\Support\Collection; | ||
|
||
/** | ||
* Class CustomerService. | ||
*/ | ||
class CustomerService extends AbstractAPI | ||
class Client extends AbstractAPI | ||
{ | ||
const API_LISTS = 'https://api.weixin.qq.com/cgi-bin/customservice/getkflist'; | ||
const API_ONLINE = 'https://api.weixin.qq.com/cgi-bin/customservice/getonlinekflist'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
*/ | ||
|
||
/** | ||
* Session.php. | ||
* OfficialAccount CustomerService Session Client. | ||
* | ||
* @author overtrue <[email protected]> | ||
* @copyright 2015 overtrue <[email protected]> | ||
|
@@ -23,10 +23,7 @@ | |
|
||
use EasyWeChat\Foundation\Core\AbstractAPI; | ||
|
||
/** | ||
* Class Session. | ||
*/ | ||
class Session extends AbstractAPI | ||
class SessionClient extends AbstractAPI | ||
{ | ||
const API_CREATE = 'https://api.weixin.qq.com/customservice/kfsession/create'; | ||
const API_CLOSE = 'https://api.weixin.qq.com/customservice/kfsession/close'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
*/ | ||
|
||
/** | ||
* Device.php. | ||
* OfficialAccount Device Client. | ||
* | ||
* @author soone <[email protected]> | ||
* @copyright 2016 soone <[email protected]> | ||
|
@@ -21,10 +21,7 @@ | |
use EasyWeChat\Foundation\Core\AbstractAPI; | ||
use EasyWeChat\OfficialAccount\Core\AccessToken; | ||
|
||
/** | ||
* Class Device. | ||
*/ | ||
class Device extends AbstractAPI | ||
class Client extends AbstractAPI | ||
{ | ||
protected $deviceType; | ||
protected $productId; | ||
|
@@ -45,7 +42,7 @@ class Device extends AbstractAPI | |
|
||
public function __construct(AccessToken $accessToken, $config) | ||
{ | ||
parent::setAccessToken($accessToken); | ||
parent::__construct($accessToken); | ||
$this->config = $config; | ||
$this->deviceType = $this->config['device_type']; | ||
$this->productId = $this->config['product_id']; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
*/ | ||
|
||
/** | ||
* Js.php. | ||
* OfficialAccount Js Client. | ||
* | ||
* @author overtrue <[email protected]> | ||
* @copyright 2015 overtrue <[email protected]> | ||
|
@@ -27,10 +27,7 @@ | |
use EasyWeChat\Support\Str; | ||
use EasyWeChat\Support\Url as UrlHelper; | ||
|
||
/** | ||
* Class Js. | ||
*/ | ||
class Js extends AbstractAPI | ||
class Client extends AbstractAPI | ||
{ | ||
/** | ||
* Cache. | ||
|
@@ -163,7 +160,7 @@ public function getSignature($ticket, $nonce, $timestamp, $url) | |
* | ||
* @param string $url | ||
* | ||
* @return Js | ||
* @return $this | ||
*/ | ||
public function setUrl($url) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
*/ | ||
|
||
/** | ||
* Material.php. | ||
* OfficialAccount Material Client. | ||
* | ||
* @author overtrue <[email protected]> | ||
* @copyright 2015 overtrue <[email protected]> | ||
|
@@ -25,10 +25,7 @@ | |
use EasyWeChat\Foundation\Core\AbstractAPI; | ||
use EasyWeChat\OfficialAccount\Message\Article; | ||
|
||
/** | ||
* Class Material. | ||
*/ | ||
class Material extends AbstractAPI | ||
class Client extends AbstractAPI | ||
{ | ||
/** | ||
* Allow media type. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
*/ | ||
|
||
/** | ||
* Temporary.php. | ||
* OfficialAccount Temporary Material Client. | ||
* | ||
* @author overtrue <[email protected]> | ||
* @copyright 2015 overtrue <[email protected]> | ||
|
@@ -25,10 +25,7 @@ | |
use EasyWeChat\Foundation\Core\AbstractAPI; | ||
use EasyWeChat\Support\File; | ||
|
||
/** | ||
* Class Temporary. | ||
*/ | ||
class Temporary extends AbstractAPI | ||
class TemporaryClient extends AbstractAPI | ||
{ | ||
/** | ||
* Allow media type. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
*/ | ||
|
||
/** | ||
* Menu.php. | ||
* OfficialAccount Menu Client. | ||
* | ||
* @author overtrue <[email protected]> | ||
* @copyright 2015 overtrue <[email protected]> | ||
|
@@ -23,10 +23,7 @@ | |
|
||
use EasyWeChat\Foundation\Core\AbstractAPI; | ||
|
||
/** | ||
* Class Menu. | ||
*/ | ||
class Menu extends AbstractAPI | ||
class Client extends AbstractAPI | ||
{ | ||
const API_CREATE = 'https://api.weixin.qq.com/cgi-bin/menu/create'; | ||
const API_GET = 'https://api.weixin.qq.com/cgi-bin/menu/get'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.