Skip to content

Instantly share code, notes, and snippets.

@piedoom
Created August 25, 2016 07:13
Show Gist options
  • Select an option

  • Save piedoom/77e7c1c0fb6e7cfd750c1c09b88b431a to your computer and use it in GitHub Desktop.

Select an option

Save piedoom/77e7c1c0fb6e7cfd750c1c09b88b431a to your computer and use it in GitHub Desktop.
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