URL
public extension URL
-
Creates a valid
URL
based on configuration’sapiBaseURL
andendpoint
pathDeclaration
Swift
static func boxAPIEndpoint(_ endpoint: String, configuration: BoxSDKConfiguration) -> URL
Parameters
endpoint
The relative path that will be appended to
apiBaseURL
configuration
The SDK configuration that provides
apiBaseURL
URLReturn Value
The URL of the API endpoint.
-
Creates a valid
URL
based on configuration’suploadApiBaseURL
andendpoint
pathDeclaration
Swift
static func boxUploadEndpoint(_ endpoint: String, configuration: BoxSDKConfiguration) -> URL
Parameters
endpoint
The relative path that will be appended to
uploadApiBaseURL
configuration
The SDK configuration that provides
uploadApiBaseURL
URLReturn Value
The URL of the upload API endpoint.