|  |  | @@ -9,50 +9,50 @@ module Agents | 
            
            
              | 9 | 9 |      description <<-MD | 
            
            
              | 10 | 10 |        The TumblrPublishAgent publishes Tumblr posts from the events it receives. | 
            
            
              | 11 | 11 |   | 
            
            
              | 12 |  | -To be able to use this Agent you need to authenticate with Tumblr in the [Services](/services) section first. | 
            
            
              |  | 12 | +      To be able to use this Agent you need to authenticate with Tumblr in the [Services](/services) section first. | 
            
            
              | 13 | 13 |   | 
            
            
              | 14 | 14 |   | 
            
            
              | 15 | 15 |   | 
            
            
              | 16 |  | -**Required fields:** | 
            
            
              |  | 16 | +      **Required fields:** | 
            
            
              | 17 | 17 |   | 
            
            
              | 18 |  | -`blog_name` Your Tumblr URL (e.g. "mustardhamsters.tumblr.com")  | 
            
            
              |  | 18 | +      `blog_name` Your Tumblr URL (e.g. "mustardhamsters.tumblr.com")  | 
            
            
              | 19 | 19 |   | 
            
            
              | 20 |  | -`post_type` One of [text, photo, quote, link, chat, audio, video]  | 
            
            
              |  | 20 | +      `post_type` One of [text, photo, quote, link, chat, audio, video]  | 
            
            
              | 21 | 21 |   | 
            
            
              | 22 | 22 |   | 
            
            
              | 23 |  | -------------- | 
            
            
              |  | 23 | +      ------------- | 
            
            
              | 24 | 24 |   | 
            
            
              | 25 |  | -You may leave any of the following optional fields blank. Including a field not allowed for the specified `post_type` will cause a failure. | 
            
            
              |  | 25 | +      You may leave any of the following optional fields blank. Including a field not allowed for the specified `post_type` will cause a failure. | 
            
            
              | 26 | 26 |   | 
            
            
              | 27 |  | -**Any post type** | 
            
            
              |  | 27 | +      **Any post type** | 
            
            
              | 28 | 28 |   | 
            
            
              | 29 |  | -* `state` published, draft, queue, private | 
            
            
              | 30 |  | -* `tags` Comma-separated tags for this post | 
            
            
              | 31 |  | -* `tweet` off, text for tweet | 
            
            
              | 32 |  | -* `date` GMT date and time of the post as a string | 
            
            
              | 33 |  | -* `format` html, markdown | 
            
            
              | 34 |  | -* `slug` short text summary at end of the post URL | 
            
            
              |  | 29 | +      * `state` published, draft, queue, private | 
            
            
              |  | 30 | +      * `tags` Comma-separated tags for this post | 
            
            
              |  | 31 | +      * `tweet` off, text for tweet | 
            
            
              |  | 32 | +      * `date` GMT date and time of the post as a string | 
            
            
              |  | 33 | +      * `format` html, markdown | 
            
            
              |  | 34 | +      * `slug` short text summary at end of the post URL | 
            
            
              | 35 | 35 |   | 
            
            
              | 36 |  | -**Text** `title` `body`  | 
            
            
              |  | 36 | +      **Text** `title` `body`  | 
            
            
              | 37 | 37 |   | 
            
            
              | 38 |  | -**Photo** `caption` `link`  `source` | 
            
            
              |  | 38 | +      **Photo** `caption` `link`  `source` | 
            
            
              | 39 | 39 |   | 
            
            
              | 40 |  | -**Quote** `quote` `source` | 
            
            
              |  | 40 | +      **Quote** `quote` `source` | 
            
            
              | 41 | 41 |   | 
            
            
              | 42 |  | -**Link** `title` `url` `description`  | 
            
            
              |  | 42 | +      **Link** `title` `url` `description`  | 
            
            
              | 43 | 43 |   | 
            
            
              | 44 |  | -**Chat** `title` `conversation` | 
            
            
              |  | 44 | +      **Chat** `title` `conversation` | 
            
            
              | 45 | 45 |   | 
            
            
              | 46 |  | -**Audio** `caption` `external_url` | 
            
            
              |  | 46 | +      **Audio** `caption` `external_url` | 
            
            
              | 47 | 47 |   | 
            
            
              | 48 |  | -**Video** `caption` `embed` | 
            
            
              |  | 48 | +      **Video** `caption` `embed` | 
            
            
              | 49 | 49 |   | 
            
            
              | 50 | 50 |   | 
            
            
              | 51 |  | -------------- | 
            
            
              |  | 51 | +      ------------- | 
            
            
              | 52 | 52 |   | 
            
            
              | 53 |  | -[Full information on field options](https://www.tumblr.com/docs/en/api/v2#posting) | 
            
            
              |  | 53 | +      [Full information on field options](https://www.tumblr.com/docs/en/api/v2#posting) | 
            
            
              | 54 | 54 |   | 
            
            
              | 55 |  | -Set `expected_update_period_in_days` to the maximum amount of time that you'd expect to pass between Events being created by this Agent. | 
            
            
              |  | 55 | +      Set `expected_update_period_in_days` to the maximum amount of time that you'd expect to pass between Events being created by this Agent. | 
            
            
              | 56 | 56 |      MD | 
            
            
              | 57 | 57 |   | 
            
            
              | 58 | 58 |      def validate_options | 
            
            
            
            
              |  |  | @@ -98,7 +98,6 @@ Set `expected_update_period_in_days` to the maximum amount of time that you'd ex | 
            
            
              | 98 | 98 |        incoming_events.each do |event| | 
            
            
              | 99 | 99 |          blog_name = interpolated(event)['blog_name'] | 
            
            
              | 100 | 100 |          post_type = interpolated(event)['post_type'] | 
            
            
              | 101 |  | -        logger.error interpolated(event) | 
            
            
              | 102 | 101 |          options = interpolated(event)['options'] | 
            
            
              | 103 | 102 |          begin | 
            
            
              | 104 | 103 |            post = publish_post(blog_name, post_type, options) |