codepen-awesomepi icon indicating copy to clipboard operation
codepen-awesomepi copied to clipboard

No longer returns date of creation/update

Open Melindrea opened this issue 10 years ago • 3 comments

I'm trying to fetch some information of my activity, but to my surprise found that the Melindrea/pen/ no longer returns the info suggested by the documentation.

Is it gone altogether, if not: how do I get that info?

Melindrea avatar Aug 08 '14 13:08 Melindrea

I will look into this! Thanks for reporting.

TimPietrusky avatar Aug 17 '14 15:08 TimPietrusky

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:

capture

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

simeydotme avatar Sep 13 '14 09:09 simeydotme

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.

TimPietrusky avatar Mar 29 '15 13:03 TimPietrusky