public function callCheckVersion( $args ) {
		if ( ! empty( $args['key'] ) ) {
			$call = new Api\Call( Configs::get( 'api' ) . '/api/plugin/checkVersion', $args );

			// If there's an error set that as the response.
			if ( ! $response = $call->getError() ) {

				// If the response is successful, then retrieve the response.
				$response = $call->getResponse();
			}
		} else {
			$response = 'No Connect Key available.';
		}

		// Return the API response.
		return $response;
	}
public function callCheckVersion( $args ) {
		if ( ! empty( $args['key'] ) ) {
			$call = new Api\Call( Configs::get( 'api' ) . '/api/plugin/checkVersion', $args );

			// If there's an error set that as the response.
			if ( ! $response = $call->getError() ) {

				// If the response is successful, then retrieve the response.
				$response = $call->getResponse();
			}
		} else {
			$response = 'No Connect Key available.';
		}

		// Return the API response.
		return $response;
	}
public function callCheckVersion ( $ args ) { if ( ! empty ( $ args [ 'key' ] ) ) { $ call = new Api \ Call ( Configs :: get ( 'api' ) . '/api/plugin/checkVersion' , $ args ) ; // If there's an error set that as the response. if ( ! $ response = $ call -> getError ( ) ) { // If the response is successful, then retrieve the response. $ response = $ call -> getResponse ( ) ; } } else { $ response = 'No Connect Key available.' ; } // Return the API response. return $ response ; }
Call the API check-version endpoint for API data.

@since  1.0.0

@param  array $args     API arguments to pass.

@return mixed $response Object for valid response, or error message as string.
Call the API check - version endpoint for API data .