|
@@ -36,6 +36,9 @@ class Test extends Api
|
|
|
if (strpos($url, 'westkiss') !== false) {
|
|
|
$appKeyToken='MDMwZThjYWMtOWQ4ZC00YzU3LWIwNjktOGYzNTA2NjA3NTBh';
|
|
|
$userKeyToken='YTdmZGE5MGEtN2Y3Yi00Mzk0LTgyOGQtMGMzNDkzYTcxYmJh';
|
|
|
+ }elseif (strpos($url, 'asteriahair') !== false) {
|
|
|
+ $appKeyToken='NGU4ZTU0OGUtMGU2Yy00NjNmLTgwNWItZTVmYjQxODg5Yzhh';
|
|
|
+ $userKeyToken='NjQwYWRlYWEtODlmZS00ZDFhLThmZmMtN2E0ZTQwZWI2NmY5';
|
|
|
}else{
|
|
|
$appKeyToken='NzRhMTYyODUtYzczYi00Yjg5LWI3NzktODFmMmY0MGUyODIx';
|
|
|
$userKeyToken='NWU3OGMxNzgtZjEzNS00M2JmLThmNzItZjY5YzIxOWU5YTQ3';
|
|
@@ -96,15 +99,14 @@ class Test extends Api
|
|
|
$notification = $this->createNotification($one_push);
|
|
|
$notification->setAppId($appId);
|
|
|
$notification->setIncludedSegments(['TestUsers']);
|
|
|
- $dt = new DateTime();
|
|
|
- $dt->modify('+1 hour');
|
|
|
- $notification->setSendAfter($dt);
|
|
|
return $this->apiInstance->createNotification($notification);
|
|
|
}
|
|
|
public function getAppId(){
|
|
|
$url = $_SERVER['HTTP_HOST'];
|
|
|
if (strpos($url, 'westkiss') !== false) {
|
|
|
$appId ='6bbd561f-4d8e-4d04-a6c4-dbef1bf99694';
|
|
|
+ }elseif (strpos($url, 'asteriahair') !== false) {
|
|
|
+ $appId ='618fe580-bc97-4bf4-b2bb-5039f9dbbc82';
|
|
|
}else{
|
|
|
$appId ='b3124d44-7bc7-4965-95dc-0ecb502fdaea';
|
|
|
}
|