LQ.EightBallApiWrapper
1.0.1
See the version list below for details.
dotnet add package LQ.EightBallApiWrapper --version 1.0.1
NuGet\Install-Package LQ.EightBallApiWrapper -Version 1.0.1
<PackageReference Include="LQ.EightBallApiWrapper" Version="1.0.1" />
paket add LQ.EightBallApiWrapper --version 1.0.1
#r "nuget: LQ.EightBallApiWrapper, 1.0.1"
// Install LQ.EightBallApiWrapper as a Cake Addin #addin nuget:?package=LQ.EightBallApiWrapper&version=1.0.1 // Install LQ.EightBallApiWrapper as a Cake Tool #tool nuget:?package=LQ.EightBallApiWrapper&version=1.0.1
Eight Ball Api Wrapper
Don't want to write your own implementation of the 8Ball Delegator API? Want to simply instantiate an object that will do it for you? The 8Ball Delegator Wrapper is here! API Docs found here: https://8ball.delegator.com/
If you found this library particularly useful/helpful please consider supporting me:
<a href='https://ko-fi.com/liquet' target='_blank'><img height='35' style='border:0px;height:46px;' src='https://az743702.vo.msecnd.net/cdn/kofi3.png?v=0' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>
Usage Example
From a synchronous function
using System;
using EightBallApiWrapper;
namespace Example
{
class Program
{
static void Main(string[] args)
{
EightBall eightBall = new EightBall();
var result = eightBall.AskQuestion("Should I make this totally financially irresponsible decision?");
Console.WriteLine(result.Result.magic.answer);
//This will be phased out in the future as I make separate async and synchronous functions!
}
}
}
From an asynchronous function
using System;
using EightBallApiWrapper;
namespace Example
{
public class CoolClass
{
public async void AskEightBallExample
{
EightBall eightBall = new EightBall();
var result = await eightBall.AskQuestion("Should I make this totally financially irresponsible decision?");
Console.WriteLine(result.magic.answer);
//This will be phased out in the future as I make separate async and synchronous functions!
}
}
}
Result Class Structure:
result: (object){
magic: (object){
question: string //returns your initial question
answer: string //returns the answer to your yes/no question
type: string [ Affirmative, Contrary, Neutral ] //a string that will be either "Affirmative", "Contrary", or "Neutral" that denotes what kind of answer you received.
}
}
Benefits Of Using This Library:
Boils the process of writing the implementation of the Eight Ball Delegator API to 3 lines. Import. Instantiate. Ask.
As a side note, if you would like to support or contribute to the development of the library:
- Feel free to fork the repo and PR back any additions
- Contact me at aldmnatividad@gmail.com for any suggestions
- Donate to my Ko-fi here (I do this in my free time so any donation you can give helps me develop more things like this!)
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. 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. |
.NET Core | netcoreapp3.1 is compatible. |
-
.NETCoreApp 3.1
- Newtonsoft.Json (>= 12.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Documentation now included!