Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var api = new PastebinAPI();
- api.APIKey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
- var createRequest = new PasteCreateRequest();
- createRequest.Code = "Paste Code";
- createRequest.Name = "Test Title";
- createRequest.ExpireDate = PasteExpireDate.Hour;
- createRequest.Private = PastePrivate.Public;
- createRequest.Format = "text";
- createRequest.UserKey = string.Empty; // Set UserKey In Login, Empty(or null) In Guest
- var url = api.CreatePaste(createRequest);
- https://bit.ly/3xHsbHV
Add Comment
Please, Sign In to add comment