codepen-awesomepi
codepen-awesomepi copied to clipboard
No longer returns date of creation/update
I'm trying to fetch some information of my activity, but to my surprise found that the Melindrea/pen/
Is it gone altogether, if not: how do I get that info?
I will look into this! Thanks for reporting.
Hey @TimPietrusky ... yeh @Melindrea is right, it seems like all the functionality of the /pen/
method has stopped working, the only things being returned now are:
{
"content": {
"pen": {
"css": "...",
"js": "...",
"html": "...",
"url": {
"details": "...",
"full": "...",
"fullgrid": "...",
"largeimg": "...",
"pen": "...",
"smallimg": "..."
}
},
"tags": null
}
}
fuck writing JSON is lame :grin:
sorry for badgering you, but I was wondering if you think it's possible to regain the functionality? my site kinda relies on it and if codepen have changed their format too much to fix the awesomepi then I'll have to refactor my site :smile:
Thanks, Simey
Sorry for replying so late, but I need some more time to figure out how to get the information from CodePen. If you want to take a look you can open any pen's source (e.g. view-source:http://codepen.io/TimPietrusky/pen/fCejn
) and look at the content of <input id="init-data">...
. I think I have to parse that to get the "old" information back.