@@ -15,7 +15,7 @@ class ManagementConsole extends AbstractApi
1515 */
1616 public function configcheck ($ hash )
1717 {
18- return $ this ->get ('/setup/api/configcheck ' , $ hash );
18+ return $ this ->getWithLicenseHash ('/setup/api/configcheck ' , $ hash );
1919 }
2020
2121 /**
@@ -27,7 +27,7 @@ public function configcheck($hash)
2727 */
2828 public function settings ($ hash )
2929 {
30- return $ this ->get ('/setup/api/settings ' , $ hash );
30+ return $ this ->getWithLicenseHash ('/setup/api/settings ' , $ hash );
3131 }
3232
3333 /**
@@ -39,7 +39,7 @@ public function settings($hash)
3939 */
4040 public function maintenance ($ hash )
4141 {
42- return $ this ->get ('/setup/api/maintenance ' , $ hash );
42+ return $ this ->getWithLicenseHash ('/setup/api/maintenance ' , $ hash );
4343 }
4444
4545 /**
@@ -51,18 +51,17 @@ public function maintenance($hash)
5151 */
5252 public function keys ($ hash )
5353 {
54- return $ this ->get ('/setup/api/settings/authorized-keys ' , $ hash );
54+ return $ this ->getWithLicenseHash ('/setup/api/settings/authorized-keys ' , $ hash );
5555 }
5656
5757 /**
5858 * Sends an authenticated GET request.
5959 *
60- * @see \Github\Api\AbstractApi::get()
61- * @param string $uri
62- * @param array $hash
60+ * @param string $uri the request URI
61+ * @param string $hash md5 hash of your license
6362 * @return \Guzzle\Http\EntityBodyInterface|mixed|string
6463 */
65- protected function get ($ uri , $ hash )
64+ protected function getWithLicenseHash ($ uri , $ hash )
6665 {
6766 return parent ::get ($ uri , array ('license_md5 ' => rawurlencode ($ hash )));
6867 }
0 commit comments