Changeset View
Changeset View
Standalone View
Standalone View
lib/lsg_irc/link_plugin/youtube.ex
Context not available. | |||||
needs an API key: | needs an API key: | ||||
``` | ``` | ||||
config :lsg, :youtube, | config :nola, :youtube, | ||||
api_key: "xxxxxxxxxxxxx" | api_key: "xxxxxxxxxxxxx" | ||||
``` | ``` | ||||
Context not available. | |||||
@impl true | @impl true | ||||
def expand(uri, %{video_id: video_id}, opts) do | def expand(uri, %{video_id: video_id}, opts) do | ||||
key = Application.get_env(:lsg, :youtube)[:api_key] | key = Application.get_env(:nola, :youtube)[:api_key] | ||||
params = %{ | params = %{ | ||||
"part" => "snippet,contentDetails,statistics", | "part" => "snippet,contentDetails,statistics", | ||||
"id" => video_id, | "id" => video_id, | ||||
Context not available. |