コード例 #1
0
 public static function configure($params = array())
 {
     BoletoSimples::$configuration = new BoletoSimples\Configuration($params);
 }
コード例 #2
0
 private static function _sendRequest($method, $path, $options = [])
 {
     $options = array_merge(self::$default_options, $options);
     $request = self::$client->createRequest($method, $path, $options);
     $response = self::$client->send($request);
     \BoletoSimples::$last_request = new LastRequest($request, $response);
     if ($response->getStatusCode() >= 400 && $response->getStatusCode() <= 599) {
         new ResponseError($response);
     }
     return $response;
 }