urbandictionary api url
api url updated to their site instead of using mashape. Why go through mashape -> ud?
This commit is contained in:
parent
f6fdfdacd2
commit
6d8158b476
@ -379,8 +379,8 @@ namespace NadekoBot.Modules.Searches
|
|||||||
using (var http = new HttpClient())
|
using (var http = new HttpClient())
|
||||||
{
|
{
|
||||||
http.DefaultRequestHeaders.Clear();
|
http.DefaultRequestHeaders.Clear();
|
||||||
http.DefaultRequestHeaders.Add("X-Mashape-Key", NadekoBot.Credentials.MashapeKey);
|
http.DefaultRequestHeaders.Add("Accept", "application/json");
|
||||||
var res = await http.GetStringAsync($"https://mashape-community-urban-dictionary.p.mashape.com/define?term={Uri.EscapeUriString(arg)}").ConfigureAwait(false);
|
var res = await http.GetStringAsync($"http://api.urbandictionary.com/v0/define?term={Uri.EscapeUriString(arg)}").ConfigureAwait(false);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var items = JObject.Parse(res);
|
var items = JObject.Parse(res);
|
||||||
|
Loading…
Reference in New Issue
Block a user