6 Commits

Author SHA1 Message Date
Dima YaFlay 8b5b7cd352 Update redirect_uris.json 2023-10-20 18:20:17 +03:00
Дмитрий Шиманский 83b8c22acf Merge branch 'master' of https://github.com/YaFlay/yaflay.ru 2023-10-20 18:19:48 +03:00
Дмитрий Шиманский abdf1da3d5 Fix bug 2023-10-20 18:19:44 +03:00
Dima YaFlay 489633a7a6 Update redirect_uris.json 2023-10-20 18:11:26 +03:00
Dima YaFlay 820d8b8f8b Update redirect_uris.json 2023-10-20 18:10:36 +03:00
Dima YaFlay 22851d0465 Update redirect_uris.json 2023-10-20 18:09:20 +03:00
2 changed files with 15 additions and 2 deletions
+5 -1
View File
@@ -4,6 +4,7 @@ using Microsoft.AspNetCore.Mvc;
using System.Net;
using System.Net.Http.Headers;
using System.Text;
using System.Text.Json;
using System.Text.Json.Nodes;
using System.Xml.Schema;
@@ -21,7 +22,10 @@ namespace yaflay.ru.Новая_папка
HttpClient client = new();
HttpResponseMessage getter = await client.GetAsync("https://raw.githubusercontent.com/YaFlay/yaflay.ru/master/redirect_uris.json");
await Console.Out.WriteLineAsync(await getter.Content.ReadAsStringAsync());
JsonNode allFile = JsonNode.Parse(await getter.Content.ReadAsStringAsync());
JsonNodeOptions jsonNodeOptions = new ();
JsonDocumentOptions jsonDocumentOptions = new();
jsonDocumentOptions.AllowTrailingCommas = true;
JsonNode allFile = JsonNode.Parse(await getter.Content.ReadAsStringAsync(), jsonNodeOptions, jsonDocumentOptions);
return (string?)allFile[baseUrl];
}
catch (Exception except)
+10 -1
View File
@@ -1 +1,10 @@
{ "github": "https://github.com/YaFlay", "bump": "https://discord.gg/bump-1119294432949325955", "shitpost": "https://t.me/yaflay_shitposts", "boosty": "https://boosty.to/yaflay", "storespw": "https://github.com/PoopStore-Team" }
{
"github": "https://github.com/YaFlay",
"gh": "https://github.com/YaFlay",
"bump": "https://discord.gg/bump-1119294432949325955",
"shitpost": "https://t.me/yaflay_shitposts",
"boosty": "https://boosty.to/yaflay",
"storespw": "https://github.com/PoopStore-Team",
"gh-team": "https://github.com/PoopStore-Team",
"twitch": "https://twitch.tv/bebra_yaflay",
}