natewiley / cpv2api Goto Github PK
View Code? Open in Web Editor NEWAn unofficial, public JSON API for CodePen v2
Home Page: http://cpv2api.com
License: MIT License
An unofficial, public JSON API for CodePen v2
Home Page: http://cpv2api.com
License: MIT License
Hi:
First of all, thanks for this api.
I've been using this "Get pens by tag" to load pens dynamically and it was working flawlessly. However, now it is acting up in the following way. By including the word "tag" on the following address, it always return the same result from a particular user.
http://cpv2api.com/pens/public/natewiley?tag=tween. is supposed to return pens tagged with the word "tween", however it shows two pens from a different user.
The example on the website http://cpv2api.com/pens/public/keithwyland?tag=tenlines, does the same.
Even if you write http://cpv2api.com/pens/tag, will return a json from that user.
Thanks
Since chrome 72 I am getting a CORS error, could you enable CORS for codepen please?
Hi,
Can you please check the request for the search? For some reason it's always return 'No pens' value.
Thanks,
Miguel Teixeira
Hi,
Are there any plans to get a TLS cert for cpv2api.com? I'd love to be able to use this project for CodePen Enhancement Suite but I don't want everything to break when people are using a secure connection (especially since parts of the extension require https, which would make it even more awkward).
I think letsencrypt is compatible with heroku so there shouldn't be any monetary cost (as far as I understand— server stuff ain't exactly in my wheelhouse).
I'd be happy to help out too, if possible.
Seems like all requests return an error for the last few days.
Hi @natewiley !
Thanks for this really great API, I love it!
I'm trying to get the source code of a Pen, as well as external libraries used and settings. Just like AwesomePI do in this example.
I know Codepen allows "Pens as resources", so I can get the code. But unfortunately there is no way to get the external resources in settings, etc. And I can't find something like that in the docs. It has been implemented here? Or there is any plan to do it?
Thanks again,
Luis Manuel
Hi,
ive been looking into making myself a little react app that loads in all my codepens, This api seems like a good fit. The only suggestion is to make it so we can select all pens.
I know it has pages but i just want to keep it simple.
So instead of
/pens/public/natewiley?page=2
either go for
/pens/public/natewiley?page=all
or
/pens/public/natewile/all
could even just set it to a limit. so you pass how many items you want to pull in
/pens/public/natewiley?items=15
for example
Codepen just announced that they are transitioning to HTTPS. Are there plans for cpv2api.com to track with it and move to HTTPS as well?
It'd be great to add support for Teams at some point. At a glance I think they would be identical to Users just with /team/
in the URL (and the addition of a Members endpoint).
I can likely help with this at some point, if you'd like 👍
Hey, first of all let me say I really love this project, thanks so much for working on it and sharing it!
This may not be an issue with the API as much as with the browsers themselves, but I still decided to see if anyone has had this issue.
While working on localhost, I attempt to make a single http request with Angular 2's http service. I get the following message only on Chrome and Canary:
XMLHttpRequest cannot load http://cpv2api.com/pens/public/[*exampleuser*]. Request header field X-XSRF-TOKEN is not allowed by Access-Control-Allow-Headers in preflight response.
This is not happening on Firefox or Safari and I have not tried on a real domain yet. For the time being it's only really annoying to have to debug on these browsers, haha.
Any idea as to what this is? Thanks in advance!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.