Ver código fonte

Make api() public to allow interacting with unsupported APIs.

Shane Mc Cormack 6 anos atrás
pai
commit
3202472ab7
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/MyDNSHostAPI.php

+ 1 - 1
src/MyDNSHostAPI.php

@@ -994,7 +994,7 @@
 		 * @param $data (Default: []) Data to send if POST
 		 * @return Response from the API as an array.
 		 */
-		private function api($apimethod, $method = 'GET', $data = []) {
+		public function api($apimethod, $method = 'GET', $data = []) {
 			$headers = [];
 			$options = [];
 			if ($this->auth !== FALSE) {