Skip to content

Instantly share code, notes, and snippets.

@malcommac
Created March 15, 2022 19:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save malcommac/b5973fdf25ce4bf71e3a81808f715d3a to your computer and use it in GitHub Desktop.
Save malcommac/b5973fdf25ce4bf71e3a81808f715d3a to your computer and use it in GitHub Desktop.
var client: HTTPClient = {
client = HTTPClient(baseURL: "https://api.themoviedb.org/3")
client.queryParams = [
.init(name: "api_key", value: "<API KEY>"),
.init(name: "language", value: "IT-it")
]
return client
}()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment