コード例 #1
0
ファイル: Response.php プロジェクト: engineor/cloudinary_php
 public function __construct($response)
 {
     parent::__construct(\Cloudinary\Api::parseJsonResponse($response));
     $this->rate_limit_reset_at = strtotime($response->headers["X-FeatureRateLimit-Reset"]);
     $this->rate_limit_allowed = intval($response->headers["X-FeatureRateLimit-Limit"]);
     $this->rate_limit_remaining = intval($response->headers["X-FeatureRateLimit-Remaining"]);
 }