bianjunhui 1 yıl önce
ebeveyn
işleme
bae4ca2aaa
1 değiştirilmiş dosya ile 7 ekleme ve 1 silme
  1. 7 1
      application/api/controller/Message.php

+ 7 - 1
application/api/controller/Message.php

@@ -31,7 +31,13 @@ class Message extends Api
     public function _initialize()
     {
         parent::_initialize();
-
+        $config= Configuration::getDefaultConfiguration()
+            ->setAppKeyToken('MDMwZThjYWMtOWQ4ZC00YzU3LWIwNjktOGYzNTA2NjA3NTBh')
+            ->setUserKeyToken('YTdmZGE5MGEtN2Y3Yi00Mzk0LTgyOGQtMGMzNDkzYTcxYmJh');
+        $this->apiInstance = new DefaultApi(
+            new GuzzleHttp\Client(),
+            $config
+        );
     }
     public function getPlayers()
     {