https://github.com/gregyjames/pastebin-api
C# Wrapper for pastebin!
https://github.com/gregyjames/pastebin-api
api-wrapper csharp network pastebin rest-api
Last synced: 8 months ago
JSON representation
C# Wrapper for pastebin!
- Host: GitHub
- URL: https://github.com/gregyjames/pastebin-api
- Owner: gregyjames
- License: mit
- Created: 2017-04-13T23:42:50.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-14T04:08:28.000Z (about 9 years ago)
- Last Synced: 2025-10-13T22:39:23.636Z (8 months ago)
- Topics: api-wrapper, csharp, network, pastebin, rest-api
- Language: C#
- Homepage:
- Size: 9.77 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: License
Awesome Lists containing this project
README

# PasteBin-API
A C# Wrapper for the pastebin api written to be fast and efficient.
# Sample Usage
### Initialize
```csharp
var core = new PasteBinCore("DEVAPIKEY");
var user = new PasteBinCore.User("USERNAME", "PASSWORD", core);
```
### Post Anon
```csharp
core.PostAnnon("PostName", "PostText");
```
### Post as user
```csharp
core.PostAsUser("PostName", "PostText", user);
```
### Get All posts from user
```csharp
//Gets the 10 most recent posts for user
var postes = user.getUserPosts(10);
//Displays title of first 2 posts
Console.WriteLine(postes.Paste[0].Paste_title);
Console.WriteLine(postes.Paste[1].Paste_title);
```
### Delete Post
```csharp
//Input key of post you wish to delete
user.DeleteUserPost("PASTEKEY", user);
```