GetFileLink

public struct GetFileLink : PCloudAPIMethod

Generates and returns links to a file. The first link in the return value is considered the best for this client.

  • The unique identifier of the file to get a link to.

    Declaration

    Swift

    public let fileId: UInt64
  • Declaration

    Swift

    public var requiresAuthentication: Bool { get }
  • Declaration

    Swift

    public init(fileId: UInt64)

    Parameters

    fileId

    The unique identifier of the file to get a link to.

  • Declaration

    Swift

    public func createCommand() -> Call.Command
  • Declaration

    Swift

    public func createResponseParser() -> ([String : Any]) throws -> Result<[FileLink.Metadata], PCloudAPI.Error<Error>>
  • Errors specific to generating a link a to a file.

    See more

    Declaration

    Swift

    public enum Error : Int