Code Monkey home page Code Monkey logo

cpv2api's People

Contributors

alexzaworski avatar natewiley avatar rainner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cpv2api's Issues

Get pens by tag issue

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.

  1. 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.

  2. The example on the website http://cpv2api.com/pens/public/keithwyland?tag=tenlines, does the same.

  3. Even if you write http://cpv2api.com/pens/tag, will return a json from that user.

Thanks

CORS error in codepen

Since chrome 72 I am getting a CORS error, could you enable CORS for codepen please?

Pens request not working

Hi,

Can you please check the request for the search? For some reason it's always return 'No pens' value.

Thanks,
Miguel Teixeira

HTTPS

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.

How to get the source code of a Pen?

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

Getting all pens from a profile

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

Teams!

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 👍

XMLHttpRequest cannot load http://cpv2api.com/pens/public/[*exampleuser*]

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.