Created
August 25, 2016 07:13
-
-
Save piedoom/77e7c1c0fb6e7cfd750c1c09b88b431a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using DontPanic.TumblrSharp; | |
| using DontPanic.TumblrSharp.Client; | |
| using System; | |
| namespace MyCoolBot | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| var inbox = Tumblr.Client.GetSubmissionPostsAsync(Tumblr.BlogName).Result; | |
| foreach (var message in inbox) | |
| { | |
| var msg = (AnswerPost)message; | |
| Tumblr.Client.EditPostAsync( | |
| Tumblr.BlogName, msg.Id, PostData.CreateAnswer( | |
| "hello", null, PostCreationState.Published)); | |
| } | |
| Console.ReadLine(); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment