示例#1
0
 public static function getByAPIName($api_name)
 {
     $api_key_object = RedtrainApiKeys::where('api_name', '=', $api_name)->first();
     if (!$api_key_object) {
         return null;
     }
     return $api_key_object->client;
 }
示例#2
0
 private function getKeysByName()
 {
     $this->matched_keys = \RTMatt\MonthlyService\RedtrainApiKeys::byName($this->auth_name);
 }