From 6d8158b476fb0965abd4aff0e30734a2884aa31c Mon Sep 17 00:00:00 2001 From: Kevin Date: Wed, 7 Dec 2016 15:10:47 -0500 Subject: [PATCH] urbandictionary api url api url updated to their site instead of using mashape. Why go through mashape -> ud? --- src/NadekoBot/Modules/Searches/Searches.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NadekoBot/Modules/Searches/Searches.cs b/src/NadekoBot/Modules/Searches/Searches.cs index 870f3805..bd55e1e1 100644 --- a/src/NadekoBot/Modules/Searches/Searches.cs +++ b/src/NadekoBot/Modules/Searches/Searches.cs @@ -379,8 +379,8 @@ namespace NadekoBot.Modules.Searches using (var http = new HttpClient()) { http.DefaultRequestHeaders.Clear(); - http.DefaultRequestHeaders.Add("X-Mashape-Key", NadekoBot.Credentials.MashapeKey); - var res = await http.GetStringAsync($"https://mashape-community-urban-dictionary.p.mashape.com/define?term={Uri.EscapeUriString(arg)}").ConfigureAwait(false); + http.DefaultRequestHeaders.Add("Accept", "application/json"); + var res = await http.GetStringAsync($"http://api.urbandictionary.com/v0/define?term={Uri.EscapeUriString(arg)}").ConfigureAwait(false); try { var items = JObject.Parse(res);