Created
June 21, 2023 12:58
-
-
Save altbodhi/798d37ebf55f2a3c6b8f412f24863f15 to your computer and use it in GitHub Desktop.
Скрипт на F# для получения событий репозитария
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* | |
Для запуска на виднос выполнить команду: | |
dotnet fsi --exec githubEvents.fsx | |
*) | |
#r "nuget: FSharp.Data" | |
open FSharp.Data | |
let [<Literal>] url = "https://api.github.com/networks/radzenhq/radzen-blazor/events" | |
type Events = JsonProvider<url> | |
let events = Events.GetSamples() | |
for e in events do | |
if true then // некоторое условие | |
printfn "%A" e // "спулинг на сервере" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment