Face it… a REST API that responds in only text doesn’t feel very modern. DynuREST translates the text responses from the Dynu.com IP
Update API into proper HTTP status codes and meaningful errors.
Installation
DynuREST is distributed using the Swift Package Manager. To install it into a project, add it as a
dependency within your Package.swift manifest:
DynuREST
A Dynu.com IP Update API wrapper.
Face it… a REST API that responds in only text doesn’t feel very modern. DynuREST translates the text responses from the Dynu.com IP Update API into proper HTTP status codes and meaningful errors.
Installation
DynuREST is distributed using the Swift Package Manager. To install it into a project, add it as a dependency within your
Package.swiftmanifest:Then import the DynuREST packages wherever you’d like to use it:
Usage
The
DynuIPUpdatershared instance allows for sending IP information to the Dynu.com API.IP address information can be obtained through any means, but DynuREST has two built-in providers:
IPifyClient.sharedIFConfigClient.sharedThese both implement the
IPSourceprotocol:DynuIPUpdateralso contains a helper method which will automatically retrieve IP information from the built-in sources.