Skip to content

Commit 7e2bef8

Browse files
committed
Update 2.3
1 parent dd5a30b commit 7e2bef8

File tree

161 files changed

+16
-29812
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

161 files changed

+16
-29812
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
line-bot-sdk-php-tiny
22
==
3-
[![License](https://img.shields.io/badge/license-Apache--2.0-FF3333.svg)](LICENSE) [![Line](https://img.shields.io/badge/lineapi-v2-00DD77.svg)](https://developers.line.me) [![Version](https://img.shields.io/badge/version-2.2-00BBFF.svg)](https://github.com/supersonictw/line-bot-sdk-php-tiny) [![PHP](https://img.shields.io/badge/php-5.x-B94FFF.svg)](https://php.net)
3+
[![License](https://img.shields.io/badge/license-Apache--2.0-FF3333.svg)](LICENSE) [![Line](https://img.shields.io/badge/lineapi-v2-00DD77.svg)](https://developers.line.me) [![Version](https://img.shields.io/badge/version-2.3-00BBFF.svg)](https://github.com/supersonictw/line-bot-sdk-php-tiny) [![PHP](https://img.shields.io/badge/php-5.x-B94FFF.svg)](https://php.net)
44

55
[![LINE](https://lineofficial.blogimg.jp/tw/imgs/2/2/22f62401.png)](https://line.me)
66

@@ -35,7 +35,7 @@ There are some solutions:
3535
Example
3636
--
3737

38-
See [document](https://supersonictw.github.io/line-bot-sdk-php-tiny/) or [example](./example/).
38+
Try to read [examples](./examples/).
3939

4040
When running examples, make sure that you have set your Channel access token and Channel secret.
4141

api.php

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
Third Party Update by SuperSonic
2929
====================================
3030
Copyright(c) 2018 Randy Chen. http://randychen.tk/
31-
Version: 2.2
31+
Version: 2.3
3232
More Information:
3333
https://github.com/supersonictw/line-bot-sdk-php-tiny
3434
*/
@@ -673,12 +673,21 @@ public function QuickReply($actions) {
673673

674674
public function Text($msgText) {
675675
$MsgObject = array(
676-
"type" => "text",
676+
"type" => "text",
677677
"text" => $msgText
678678
);
679679
return $MsgObject;
680680
}
681681

682+
public function Sticker($packageId, $stickerId) {
683+
$MsgObject = array(
684+
"type" => "sticker",
685+
"packageId" => $packageId,
686+
"stickerId" => $stickerId
687+
);
688+
return $MsgObject;
689+
}
690+
682691
public function Image($url, $preview_url = null) {
683692
if ($preview_url == null) {
684693
$preview = $url;
@@ -687,7 +696,7 @@ public function Image($url, $preview_url = null) {
687696
}
688697

689698
$MsgObject = array(
690-
"type" => "image",
699+
"type" => "image",
691700
"originalContentUrl" => $url,
692701
"previewImageUrl" => $preview
693702
);
@@ -861,7 +870,7 @@ public function actions_set($var, $value = null){
861870
if(gettype($var) == "array"){
862871
$keys = array_keys($this->actions);
863872
foreach($var as $num => $run){
864-
$this->set($keys[$num+1], $run);
873+
$this->actions_set($keys[$num+1], $run);
865874
}
866875
}else{
867876
$this->actions[$var] = $value;
@@ -1019,7 +1028,7 @@ public function actions_set($var, $value = null){
10191028
if(gettype($var) == "array"){
10201029
$keys = array_keys($this->actions);
10211030
foreach($var as $num => $run){
1022-
$this->set($keys[$num+1], $run);
1031+
$this->actions_set($keys[$num+1], $run);
10231032
}
10241033
}else{
10251034
$this->actions[$var] = $value;

docs/class-LINE.LINEBot.Constant.ActionType.html

Lines changed: 0 additions & 230 deletions
This file was deleted.

0 commit comments

Comments
 (0)