Exemplo n.º 1
0
 /**
  * create client app
  * @param Request $request
  * @return string
  */
 public function create(Request $request)
 {
     $inputs = $request->except("_token");
     Log::info($inputs);
     $ossbss = new Ossbss();
     $response = $ossbss->postInfo("clientApps.create", $inputs);
     Log::info(json_encode($response));
     return json_encode($response);
 }
Exemplo n.º 2
0
 public function create(Request $request)
 {
     $inputs = $request->except("_token");
     unset($inputs['uris']);
     $ossbss = new Ossbss();
     $response = $ossbss->postInfo("serverApps.createServerApp", $inputs);
     $result = unsetParam($response, 'paging');
     Log::info(json_encode($result));
     return json_encode($result);
 }
Exemplo n.º 3
0
 /**
  * create new Origination
  * @param Request $request
  * @return string
  */
 public function createOrigination(Request $request)
 {
     $inputs = $request->except('_token');
     $parmas[0] = $inputs['trunkId'];
     unset($parmas['trunkId']);
     $ossbss = new Ossbss();
     $result = $ossbss->postInfo("trunks.createOrigin", $inputs, $parmas);
     $result = unsetParam($result, 'paging', 'data');
     return json_encode($result);
 }