e6API_EpsiRho 0.4.3
See the version list below for details.
dotnet add package e6API_EpsiRho --version 0.4.3
NuGet\Install-Package e6API_EpsiRho -Version 0.4.3
<PackageReference Include="e6API_EpsiRho" Version="0.4.3" />
<PackageVersion Include="e6API_EpsiRho" Version="0.4.3" />
<PackageReference Include="e6API_EpsiRho" />
paket add e6API_EpsiRho --version 0.4.3
#r "nuget: e6API_EpsiRho, 0.4.3"
#:package e6API_EpsiRho@0.4.3
#addin nuget:?package=e6API_EpsiRho&version=0.4.3
#tool nuget:?package=e6API_EpsiRho&version=0.4.3
Classes
RequestHost
This is the main class you need. Make sure before you use any function to define the UserAgent, as it is required to use the e621 API. Proper user agent form is "<Application Name>/<Version> (Your Name)"
.
RequestHost: Variables
UserAgent
: Holds the user agent for the REST request. RequiredUsername
: Holds a username for logging in, must also set the ApiKey .ApiKey
: Holds an ApiKey for logging in, must also set the Username.LastError
: Holds an ErrorDetails class that gives the details of any errors generated by a function.
RequestHost: Functions
GetPosts(string Tags, int Limit , int Page)
Gets a list of posts.
Tags
: The tags to look for when getting posts.Limit
: The amount of posts to get. Must be within 1 - 320. (Defaults to 75)Page
: The page of posts to grab. (Defaults to 1)
Returns: A list of the Post class
GetPosts(string Tags, char PaginationChar, int PostId, int Limit)
Gets a list of posts.
Tags
: The tags to look for when getting posts.Limit
: The amount of posts to get. Must be within 1 - 320. (Defaults to 75)PaginationChar
: Must be either 'b' for before or 'a' for after.PostId
: The post Id to start at.
Returns: A list of the Post class
VotePost(int PostId, int Vote)
Votes on a post
PostId
: The id of the post to vote on.Vote
: The int to detonated if it should up vote or down vote. 1 for Up, -1 for Down.
Returns: The response from the server in the vote class. Contains success, total score, and the user's score.
SearchTags(string Search, TagCategory Category, SortOrder Sort, bool HideEmpty, int Limit, int Page)
Search for tags in the database.
Search
: The tag to search for. End with '*' to search for entries starting with.Category
: The category of tag to search under.Sort
: The order to return results in.HideEmpty
: Hide tags with no posts.Limit
: The max number of results to return.Page
: The page of results to show.
Returns: A list of a class 'Tag' that holds info on each resulting tag
SearchTags(string Search, char PaginationChar, int PostId, TagCategory Category = TagCategory.All, SortOrder Sort = SortOrder.date, bool HideEmpty = false, int Limit = 75)
Search for tags in the database.
Search
: The tag to search for. End with '*' to search for entries starting with.PaginationChar
: Either 'b' or 'a' (before or after the post id).PostId
: The post Id to start at.Category
: The category of tag to search under.Sort
: The order to return results in.HideEmpty
: Hide tags with no posts.Limit
: The max number of results to return.
Returns: A list of a class 'Tag' that holds info on each resulting tag.
GetPostComments(int PostId, int Limit)
Get comments from a post
PostId
: The id of the post.Limit
: The max number of comments to get.
Returns: A list of Comment classes
GetUserComments(int CreatorId, int Limit)
Get comments from a post
CreatorId
: The id of the user.Limit
: The max number of comments to get.
Returns: A list of Comment classes
GetUserComments(string CreatorName, int Limit)
Get comments from a post
CreatorName
: The id of the user.Limit
: The max number of comments to get.
Returns: A list of Comment classes
SearchComments(string Body, int Limit)
Search comments for a string
Body
: A string to search comment bodies for. Use "*" for wildcard search.Limit
: The max number of comments to get.
ErrorDetails
Holds info about the last error.
ResponseCode
: Holds a StatusCode enum valueMessage
: The status message from the error
Comment
Holds info on a comment
Post
A class that holds details on a post. Contains multiple sub-classes.
Post sub-classes
Relationships
Flags
Tags
Score
Sample
Alternates (Note: I have never seen this be used at the class is there to prevent json deserialization errors)
Preview
File
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. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Newtonsoft.Json (>= 13.0.1)
- RestSharp (>= 107.3.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
0.7.8 | 554 | 3/7/2022 |
0.7.7 | 497 | 3/7/2022 |
0.7.6 | 507 | 3/7/2022 |
0.7.5 | 488 | 3/7/2022 |
0.7.4 | 506 | 3/7/2022 |
0.7.3 | 486 | 2/26/2022 |
0.7.2 | 480 | 2/26/2022 |
0.7.1 | 479 | 2/26/2022 |
0.7.0 | 477 | 2/26/2022 |
0.6.4 | 498 | 2/23/2022 |
0.6.3 | 471 | 2/18/2022 |
0.6.2 | 496 | 2/18/2022 |
0.6.1 | 498 | 2/18/2022 |
0.6.0 | 501 | 2/18/2022 |
0.5.13 | 493 | 2/17/2022 |
0.5.12 | 489 | 2/17/2022 |
0.5.11 | 478 | 2/16/2022 |
0.5.1 | 508 | 2/16/2022 |
0.5.0 | 483 | 2/15/2022 |
0.4.9 | 503 | 2/14/2022 |
0.4.8 | 471 | 2/14/2022 |
0.4.7 | 506 | 2/13/2022 |
0.4.6 | 484 | 2/13/2022 |
0.4.5 | 512 | 2/12/2022 |
0.4.4 | 487 | 2/12/2022 |
0.4.3 | 475 | 2/12/2022 |
0.4.2 | 439 | 4/3/2021 |
0.4.1 | 506 | 3/21/2021 |
0.2.1 | 379 | 3/19/2021 |