public function get_api_release_asset( $git, $request ) {
		$response = isset( $this->response['release_asset'] ) ? $this->response['release_asset'] : false;

		if ( $response && $this->exit_no_update( $response ) ) {
			return false;
		}

		if ( ! $response ) {
			self::$method = 'release_asset';
			$response     = $this->api( $request );
			$response     = $this->parse_release_asset( $git, $request, $response );

			if ( ! $response && ! is_wp_error( $response ) ) {
				$response          = new \stdClass();
				$response->message = 'No release asset found';
			}
		}

		if ( $response && ! isset( $this->response['release_asset'] ) ) {
			$this->set_repo_cache( 'release_asset', $response );
		}

		if ( $this->validate_response( $response ) ) {
			return false;
		}

		return $response;
	}
public function get_api_release_asset( $git, $request ) {
		$response = isset( $this->response['release_asset'] ) ? $this->response['release_asset'] : false;

		if ( $response && $this->exit_no_update( $response ) ) {
			return false;
		}

		if ( ! $response ) {
			self::$method = 'release_asset';
			$response     = $this->api( $request );
			$response     = $this->parse_release_asset( $git, $request, $response );

			if ( ! $response && ! is_wp_error( $response ) ) {
				$response          = new \stdClass();
				$response->message = 'No release asset found';
			}
		}

		if ( $response && ! isset( $this->response['release_asset'] ) ) {
			$this->set_repo_cache( 'release_asset', $response );
		}

		if ( $this->validate_response( $response ) ) {
			return false;
		}

		return $response;
	}
public function get_api_release_asset ( $ git , $ request ) { $ response = isset ( $ this -> response [ 'release_asset' ] ) ? $ this -> response [ 'release_asset' ] : false ; if ( $ response && $ this -> exit_no_update ( $ response ) ) { return false ; } if ( ! $ response ) { self :: $ method = 'release_asset' ; $ response = $ this -> api ( $ request ) ; $ response = $ this -> parse_release_asset ( $ git , $ request , $ response ) ; if ( ! $ response && ! is_wp_error ( $ response ) ) { $ response = new \ stdClass ( ) ; $ response -> message = 'No release asset found' ; } } if ( $ response && ! isset ( $ this -> response [ 'release_asset' ] ) ) { $ this -> set_repo_cache ( 'release_asset' , $ response ) ; } if ( $ this -> validate_response ( $ response ) ) { return false ; } return $ response ; }
Get API release asset download link.

@param string $git (github|bitbucket|gitlab|gitea)
@param string $request Query for API->api().
@return string $response Release asset URI.
Get API release asset download link .