<?php
require_once "./SunwareCore/trait.Curl_Request.inc";
header("Content-Type: text/html; charset=utf-8");
date_default_timezone_set("Asia/Taipei");

class sms_sender {
	use SunwareCore\Curl_Request;
}

$msg = array(
	"AppName" => "solargosolar",
	"Topic" => "SunwareNotice",
	//"Tokens" => "c__zWpnDSyeC6lM33sb2N1:APA91bEFyHCyLWyZRum1U2pyZKLYpMV59okAcflPrd5jQMEi2ovGcRvQ1iQ5tOJ3JxomK2Dr0CvQMfNOHYgOXV_m32eZXLj3KPA5GUkhT0fBsyhSa3M4G4hIOZ01sDK3dToGY9VliG98",
	//"Tokens" => implode(";", array(
	//	"fvwuLKHg7Eaph218dz5ED9:APA91bHO_wHp-EBK9EFox53BTT4Gk4iy7gSxW3x8MeFLl0XA4cV4bx-ryOzyzKFNNNDRadbjTKYvZbMP9BxDs4B1hvy_uVnZAu3nQvgBepdYBbW_u_C7qbVbnxkuj5jvfVC2W8X02UP6",
	//	"c4_mzO9LtU5YsUcDArr-7i:APA91bHAlOfxVCjfvquiBAY7xfDT3Lb51S8cnTYvikgufsDKNhKYN_9WwgS7hzPKd7W9fMLCgZ9CFLjJ61F8xdnVqKXgLGv1QaXkz3IGwoLOYRVSAWQURVShAp2fosgM0nylFodcywE7",
	//	"e87tnnkJTb62-1doiYe3Xj:APA91bHFeoQjNsReYbuWNd6wpq9q6KsEPoonykYKgyqmZP8T9qjkSsm-REyxw-TMbTsGOuQNQMGys7OWFmdTR6-90DE10b6M2xn7J-QpLdAcaAWoaOzwd2VpHZaSLiuHYUebvA6x1x-e",
	//	"dsN0P5J3BEV0j_gKz8EaWn:APA91bEnHBGhND1H1FVSgjhqkauinv40NMG6HqAeG7xj9Ig9fp0yoRQzk2K74gKYV227MdEHNI9F-zcsxpJikwP_k-g52LuxD7SRRHgpKiRNEUI8YOBMSLSDRGl6eEvl_R19EHMz34_T",
	//	"cXE9OReKR_ycu_lnwTQXPj:APA91bFDPGHKddmvivriIm7sEZU3UHiCCvLB-5AiGEwYDbGBTs8JVUu-zSFRfJSjh754_TCPMRL-dgLLZrkowSYACs6urGfgURa9NF9aN18aP-JT7muwNixNqi3euZrc6ZegyhUPcPw5",
	//	"dkvbWMKPTFy4cRhbykhdZa:APA91bE5hE5O8IzDUMKwBfteFNfu1s3-13_kF_ERNutYIqegC9-vKpCkStxzB2DMZ9FtZiTGYGuP3xFrgPKPJEVfp1bFDVkVWSql445aQVGk6SXFIIQx7l26sLD05fpEyR5Ql0EONh39",
	//  "c__zWpnDSyeC6lM33sb2N1:APA91bEFyHCyLWyZRum1U2pyZKLYpMV59okAcflPrd5jQMEi2ovGcRvQ1iQ5tOJ3JxomK2Dr0CvQMfNOHYgOXV_m32eZXLj3KPA5GUkhT0fBsyhSa3M4G4hIOZ01sDK3dToGY9VliG98",
	//)),
	"Title" => "推播測試-SunwareNotice",
	"Message" => sprintf("sunwaresolar::%s", date("Y-m-d H:i:s")),
);
print_r($msg);

$sender = new sms_sender;
$rtn = $sender->sendPost("http://127.0.0.1/AppPushNotification/SendToAppUsers.php", $msg);
print_r($rtn);

?>