net.dunkyl.SlyAPI 0.0.8

dotnet add package net.dunkyl.SlyAPI --version 0.0.8
                    
NuGet\Install-Package net.dunkyl.SlyAPI -Version 0.0.8
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="net.dunkyl.SlyAPI" Version="0.0.8" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="net.dunkyl.SlyAPI" Version="0.0.8" />
                    
Directory.Packages.props
<PackageReference Include="net.dunkyl.SlyAPI" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add net.dunkyl.SlyAPI --version 0.0.8
                    
#r "nuget: net.dunkyl.SlyAPI, 0.0.8"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package net.dunkyl.SlyAPI@0.0.8
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=net.dunkyl.SlyAPI&version=0.0.8
                    
Install as a Cake Addin
#tool nuget:?package=net.dunkyl.SlyAPI&version=0.0.8
                    
Install as a Cake Tool

sly logo SlyAPI for F#

🚧 This library is an early work in progress! Breaking changes may be frequent.

🟣 For .NET 7+

No-boilerplate, async web api access with oauth2.

dotnet add package net.dunkyl.SlyAPI

Meant as a foundation for other libraries more than being used directly.

This is the F# version of a Python package of the same name

The library currently is only in a minimal state of features.


Example library usage:

open System
open net.dunkyl.SlyAPI

type Units = Standard (* Kelvin *) | Imperial | Metric

type CityWeather = {
    Name: string
    Main: {| Temp: float |}
    Weather: {| Description: string |} list
}

type OpenWeather (key: string) =
    inherit WebAPI(QueryAPIKey("appid", key))
    
    override _.BaseURL = Uri "https://api.openweathermap.org/data/2.5"
    override _.UserAgent = "YourWeatherAppLibrary/0.99.0"

    /// Get the current weather of a city.
    /// Location format: `City,Country` or `City,State,Country`
    /// where State and Country are ISO3166 codes.
    member this.City (location: string, units: Units): CityWeather Call =
        this.Get (urlQuery "weather" [ "units", units; "q", location ]) ()

    // ...

Happy coding!

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on net.dunkyl.SlyAPI:

Package Downloads
net.dunkyl.SlyDiscord

Discord REST API client

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.0.8 339 3/12/2023
0.0.7 335 3/12/2023
0.0.6 333 3/12/2023
0.0.5 392 2/8/2023
0.0.4 388 2/8/2023
0.0.3 373 2/8/2023
0.0.2 375 2/8/2023

Fix naming schemes with Uri and SnakeCaseNamingPolicy