"Fossies" - the Fresh Open Source Software Archive

Member "PowerShell-7.2.6/demos/rest/README.md" (11 Aug 2022, 272 Bytes) of package /linux/misc/PowerShell-7.2.6.tar.gz:

As a special service "Fossies" has tried to format the requested source page into HTML format (assuming markdown format). Alternatively you can here view or download the uninterpreted source code file. A member file download can also be achieved by clicking within a package contents listing on the according byte size field.

REST demo

This demo shows how to interact with the GitHub API using the Invoke-WebRequest cmdlet.

rest.ps1: Invoke-WebRequest and ConvertFrom-Json cmdlets are used to get the issues of a repo. The issues are processed as objects to find the most commented on issues.