# URI Module
# Example of an URI
Here an example of an URL for youtube API.
url = %URI{
authority: "www.googleapis.com",
fragment: nil,
host: "www.googleapis.com",
query: URI.encode_query(%{ "id" => id, "key" => api_key(), "part" => "snippet" }),
path: "/youtube/v3/videos",
port: 443,
scheme: "https",
userinfo: nil
}
url |> URI.to_string()