Example #1
0
 def _dist_ppkefu(self, _request):
     from ppmessage.ppkefu.config.config import config
     _d = {
         "key": self._api.get(API_LEVEL.PPKEFU.lower()).get("key")
     }
     config(_d)
     return True
Example #2
0
 def _dist_ppkefu(self, _request):
     from ppmessage.ppkefu.config.config import config
     _d = {
         "key": self._api.get(API_LEVEL.PPKEFU.lower()).get("key")
     }
     config(_d)
     return True
Example #3
0
 def _dist_ppconsole(self, _request):
     from ppmessage.ppconsole.config.config import config
     _d = {
         "app_uuid": self._app_uuid,
         "api_uuid": self._api.get(API_LEVEL.PPCONSOLE.lower()).get("uuid"),
         "api_key": self._api.get(API_LEVEL.PPCONSOLE.lower()).get("key"),
         "api_secret": self._api.get(API_LEVEL.PPCONSOLE.lower()).get("secret")
     }
     config(_d)
     return True
Example #4
0
 def _dist_ppconsole(self, _request):
     from ppmessage.ppconsole.config.config import config
     _d = {
         "app_uuid": self._app_uuid,
         "api_uuid": self._api.get(API_LEVEL.PPCONSOLE.lower()).get("uuid"),
         "api_key": self._api.get(API_LEVEL.PPCONSOLE.lower()).get("key"),
         "api_secret": self._api.get(API_LEVEL.PPCONSOLE.lower()).get("secret")
     }
     config(_d)
     return True
Example #5
0
 def _dist_ppcom(self, _request):
     from ppmessage.ppcom.config.config import config
     _d = {
         "ssl": _get_config().get("server").get("ssl"),
         "server_name": _get_config().get("server").get("name"),
         "server_port": _get_config().get("server").get("port"),
         "key": self._api.get(API_LEVEL.PPCOM.lower()).get("key"),
         "secret": self._api.get(API_LEVEL.PPCOM.lower()).get("secret"),
     }
     config(_d)
     return True
Example #6
0
 def _dist_ppcom(self, _request):
     from ppmessage.ppcom.config.config import config
     _d = {
         "ssl": _get_config().get("server").get("ssl"),
         "server_name": _get_config().get("server").get("name"),
         "server_port": _get_config().get("server").get("port"),
         "key": self._api.get(API_LEVEL.PPCOM.lower()).get("key"),
         "secret": self._api.get(API_LEVEL.PPCOM.lower()).get("secret"),
     }
     config(_d)
     return True