Skip to content

Instantly share code, notes, and snippets.

@virtadpt
Created April 3, 2016 23:32
Show Gist options
  • Save virtadpt/a6fc2eedbb684b551876f5bb4a5b717e to your computer and use it in GitHub Desktop.
Save virtadpt/a6fc2eedbb684b551876f5bb4a5b717e to your computer and use it in GitHub Desktop.
How I integrated Medium with Huginn.
RssAgent:
{
"expected_update_period_in_days": "365",
"clean": "false",
"url": "http://drwho.virtadpt.net/rss/feed.xml"
}
ChangeDetectorAgent:
{
"property": "{{last_updated}}",
"expected_update_period_in_days": 31
}
PostAgent:
{
"post_url": "https://api.medium.com/v1/users/{% credential medium_user_id %}/posts",
"expected_receive_period_in_days": "365",
"content_type": "json",
"method": "post",
"payload": {
"title": "{{ title }}",
"contentFormat": "html",
"content": "{{ content }}",
"canonicalUrl": "{{ url }}",
"tags": [
"crosspost",
"personal",
"fixme"
],
"publishStatus": "public"
},
"headers": {
"Authorization": "Bearer {% credential medium_integration_token %}",
"Accept-Charset": "utf-8"
},
"emit_events": "true",
"no_merge": "true"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment