@@ -15,7 +15,7 @@ class ManagementConsole extends AbstractApi
15
15
*/
16
16
public function configcheck ($ hash )
17
17
{
18
- return $ this ->get ('/setup/api/configcheck ' , $ hash );
18
+ return $ this ->getWithLicenseHash ('/setup/api/configcheck ' , $ hash );
19
19
}
20
20
21
21
/**
@@ -27,7 +27,7 @@ public function configcheck($hash)
27
27
*/
28
28
public function settings ($ hash )
29
29
{
30
- return $ this ->get ('/setup/api/settings ' , $ hash );
30
+ return $ this ->getWithLicenseHash ('/setup/api/settings ' , $ hash );
31
31
}
32
32
33
33
/**
@@ -39,7 +39,7 @@ public function settings($hash)
39
39
*/
40
40
public function maintenance ($ hash )
41
41
{
42
- return $ this ->get ('/setup/api/maintenance ' , $ hash );
42
+ return $ this ->getWithLicenseHash ('/setup/api/maintenance ' , $ hash );
43
43
}
44
44
45
45
/**
@@ -51,18 +51,17 @@ public function maintenance($hash)
51
51
*/
52
52
public function keys ($ hash )
53
53
{
54
- return $ this ->get ('/setup/api/settings/authorized-keys ' , $ hash );
54
+ return $ this ->getWithLicenseHash ('/setup/api/settings/authorized-keys ' , $ hash );
55
55
}
56
56
57
57
/**
58
58
* Sends an authenticated GET request.
59
59
*
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
63
62
* @return \Guzzle\Http\EntityBodyInterface|mixed|string
64
63
*/
65
- protected function get ($ uri , $ hash )
64
+ protected function getWithLicenseHash ($ uri , $ hash )
66
65
{
67
66
return parent ::get ($ uri , array ('license_md5 ' => rawurlencode ($ hash )));
68
67
}
0 commit comments