# SwiftApi

**TODO: Add description**

## Installation

If [available in Hex](, the package can be installed
by adding `swift_api` to your list of dependencies in `mix.exs`:

def deps do
    {:swift_api, "~> 0.1.0"}

Documentation can be generated with [ExDoc](
and published on [HexDocs]( Once published, the docs can
be found at [](

client = %SwiftApi.Client{user_name: "stage-user",
            password: "password",
            domain_id: "domain_id",
            url: "url",
            project_id: "project_id",
            ca_certificate_path: ca_certificate_path,
            container: container_name}

container = "mytest"
filename = "test_data.html"
SwiftApi.Worker.container_create(client, container)
SwiftApi.Worker.object_create(client, "#{container}/#{filename}", "<html><body><p>Hello, test user!</p></body></html>")
SwiftApi.Worker.swift_get(client, "/#{container}/#{filename}")
SwiftApi.Worker.swift_object_temp_url(client, container, filename, 60*60)