Skip to content

imgflo/ImgFlo.swift

Repository files navigation

ImgFlo.swift Build Status

Conveniently produce authorized imgflo URLs.

Usage

import ImgFlo

let imgflo = ImgFlo.Client(
  server: "https://yourimgfloserver.com",
  key: "your-imgflo-key",
  secret: "your-imgflo-secret"
)

let graph: Graph = .Passthrough(width: 750, height: 1334)
let imageURL = "http://yourserver.com/yourimage.png"

let URL = imgflo.getURL(graph, input)

Development

Installing dependencies

The following script requires Cocoapods to be installed.

./script/update

Running tests

The following script requires xcodebuild to be installed.

./script/test