private function call() {
		// Make the request.
		if ( 'get' === $this->method ) {
			$response = wp_remote_get( $this->url, $this->args );
		} else {
			$response = wp_remote_post( $this->url, $this->args );
		}

		// Decode the response and set class property.
		$this->response = json_decode( wp_remote_retrieve_body( $response ) );

		// Validate the raw response.
		if ( $this->validateResponse( $response ) === false ) {
			return false;
		}

		// Response should be an object.
		if ( ! is_object( $this->response ) ) {
			$this->error = __( 'An invalid response was returned.', 'boldgrid-library' );
			return false;
		}

		return true;
	}
private function call() {
		// Make the request.
		if ( 'get' === $this->method ) {
			$response = wp_remote_get( $this->url, $this->args );
		} else {
			$response = wp_remote_post( $this->url, $this->args );
		}

		// Decode the response and set class property.
		$this->response = json_decode( wp_remote_retrieve_body( $response ) );

		// Validate the raw response.
		if ( $this->validateResponse( $response ) === false ) {
			return false;
		}

		// Response should be an object.
		if ( ! is_object( $this->response ) ) {
			$this->error = __( 'An invalid response was returned.', 'boldgrid-library' );
			return false;
		}

		return true;
	}
private function call ( ) { // Make the request. if ( 'get' === $ this -> method ) { $ response = wp_remote_get ( $ this -> url , $ this -> args ) ; } else { $ response = wp_remote_post ( $ this -> url , $ this -> args ) ; } // Decode the response and set class property. $ this -> response = json_decode ( wp_remote_retrieve_body ( $ response ) ) ; // Validate the raw response. if ( $ this -> validateResponse ( $ response ) === false ) { return false ; } // Response should be an object. if ( ! is_object ( $ this -> response ) ) { $ this -> error = __ ( 'An invalid response was returned.' , 'boldgrid-library' ) ; return false ; } return true ; }
Makes the API call.

@since  1.0.0

@return bool  Was the API call successful?
Makes the API call .