Skip to content

balance-platform/swift_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/swift_api.

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)

About

Custom Swift api elixir package

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages