A Polymer 2 element which displays the latest stories of your medium account.
<medium-stories url="https://us-central1-todo-app-5ac02.cloudfunctions.net/medium"></medium-stories>
Medium does not offer an API to retrieve your medium stories.
Luckily https://medium.com/@jalalio/latest?format=json returns json.
The problems:
- Medium prevents JSON hacking by putting this string in the beginning of the json
])}while(1);</x>
- They don't allow cross domain calls so our AJAX response gets rejected in the browser
The solution: See here, I made it easy as pie