You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
483 B
PHTML
18 lines
483 B
PHTML
6 years ago
|
<?php
|
||
|
class Message
|
||
|
{
|
||
|
public static function sendToConversation($accessToken, $opt)
|
||
|
{
|
||
|
$response = Http::post("/message/send_to_conversation",
|
||
|
array("access_token" => $accessToken),
|
||
|
json_encode($opt));
|
||
|
return $response;
|
||
|
}
|
||
|
|
||
|
public static function send($accessToken, $opt)
|
||
|
{
|
||
|
$response = Http::post("/message/send",
|
||
|
array("access_token" => $accessToken),json_encode($opt));
|
||
|
return $response;
|
||
|
}
|
||
|
}
|