Skip to content
This repository has been archived by the owner on Jul 29, 2022. It is now read-only.

Commit

Permalink
yes
Browse files Browse the repository at this point in the history
  • Loading branch information
fooooooooooooooo authored Oct 2, 2018
1 parent 7a642a2 commit 469b65f
Showing 1 changed file with 213 additions and 2 deletions.
215 changes: 213 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,217 @@
# KSoft.Net


A wrapper for the KSoft API written in C#

> owo next commit will have everything done
***

Currently, the Images API is completed, the bans and lyrics api are next though

***

Table of contents
=================

* [KSoft.Net](#ksoft-net)
* [Table of contents](#table-of-contents)
* [Usage](#usage)
* [GetRandomImage()](#getrandomimage-)
* [GetTags()](#gettags-)
* [SearchTags()](#searchtags-)
* [GetImageFromSnowflake()](#getimagefromsnowflake-)
* [GetRandomMeme()](#getrandommeme-)
* [GetRandomWikihow()](#getrandomwikihow-)
* [GetRandomAww()](#getrandomaww-)
* [GetRandomSubredditImage()](#getrandomsubredditimage-)

***

# Usage

## GetRandomImage( )

Gets a random image based on optional tag

| Parameter | Description | Default |
| --------- | ----------- | ------- |
| `tag` | Optional: Used to specify tag to search image | `null` |
| `nsfw` | Optional: Enables or disables NSFW content | `false` |

Returns a `KSoftImage` object

| Type | Name |
| ---- | ---- |
| `string` | Url |
| `string` | Snowflake |
| `bool` | Nsfw |
| `string` | Tag |

***

## GetTags( )

Gets list of all tags.

***

Returns a `KSoftTags` object

| Type | Name |
| ---- | ---- |
| `IList<Model>` | Models |
| `IList<string>` | Tags |
| `IList<string>` | Nsfw_tags |

`Model` type

| Type | Name |
| ---- | ---- |
| `string` | Name |
| `bool` | Nsfw |

***

## SearchTags( )

Searches for a tag

| Parameter | Description | Default |
| --------- | ----------- | ------- |
| `tag` | Required: Search query | `null` |

Returns a `KSoftTags` object

| Type | Name |
| ---- | ---- |
| `IList<Model>` | Models |
| `IList<string>` | Tags |
| `IList<string>` | Nsfw_tags |

`Model` type

| Type | Name |
| ---- | ---- |
| `string` | Name |
| `bool` | Nsfw |

***

## GetImageFromSnowflake( )

Gets list of comments on a post

| Parameter | Description | Default |
| --------- | ----------- | ------- |
| `snowflake` | Required: Search query | `null` |

Returns a `KSoftImage` object

| Type | Name |
| ---- | ---- |
| `string` | Url |
| `string` | Snowflake |
| `bool` | Nsfw |
| `string` | Tag |

***

## GetRandomMeme( )

Gets a random meme

Returns a `KSoftRedditPost` object

| Type | Name |
| ---- | ---- |
| `string` | Title |
| `string` | ImageUrl |
| `string` | Source |
| `string` | Subreddit |
| `float` | Upvotes |
| `float` | Downvotes |
| `float` | Comments |
| `float` | CreatedAt |
| `bool` | Nsfw |
| `string` | Author |

***

## GetRandomWikihow

Gets a random wikihow article

Returns a `KSoftWikihow` object

| Type | Name |
| ---- | ---- |
| `string` | Url |
| `string` | Title |
| `bool` | Nsfw |
| `string` | ArticleUrl |

***

## GetRandomAww( )

Gets a random aww image

Returns a `KSoftRedditPost` object

| Type | Name |
| ---- | ---- |
| `string` | Title |
| `string` | ImageUrl |
| `string` | Source |
| `string` | Subreddit |
| `float` | Upvotes |
| `float` | Downvotes |
| `float` | Comments |
| `float` | CreatedAt |
| `bool` | Nsfw |
| `string` | Author |

***

## GetRandomNsfw( )

Gets a random NSFW image

Returns a `KSoftRedditPost` object

| Type | Name |
| ---- | ---- |
| `string` | Title |
| `string` | ImageUrl |
| `string` | Source |
| `string` | Subreddit |
| `float` | Upvotes |
| `float` | Downvotes |
| `float` | Comments |
| `float` | CreatedAt |
| `bool` | Nsfw |
| `string` | Author |

***

## GetRandomSubredditImage

Gets a random reddit post

| Parameter | Description | Default |
| --------- | ----------- | ------- |
| `subreddit` | Optional: Subreddit to get post from | `all` |
| `span` | Optional: Timespan from which to get the post | `day` |

Returns a `KSoftRedditPost` object

| Type | Name |
| ---- | ---- |
| `string` | Title |
| `string` | ImageUrl |
| `string` | Source |
| `string` | Subreddit |
| `float` | Upvotes |
| `float` | Downvotes |
| `float` | Comments |
| `float` | CreatedAt |
| `bool` | Nsfw |
| `string` | Author |

0 comments on commit 469b65f

Please sign in to comment.