Giter VIP home page Giter VIP logo

icndb-api's People

Contributors

beardedcoder avatar irkfdb avatar joshuadavidson avatar maartendecat avatar rafaelsiqueira avatar swapnilsarwe avatar swapnilsarwe-mnet avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

icndb-api's Issues

JavaScript escaping is wrong

E.g. http://api.icndb.com/jokes/537?escape=javascript
It escapes ', which is wrong.

I do not know any PHP, so I can't provide a PR, but I found this http://www.pontikis.net/tip/?id=5

EDIT: For anyone finding this, and using JavaScript

JSON.parse(response.replace(/\\'/g, '\''));

LimitTo handling unknown values

<br />
<b>Notice</b>:  Undefined index:  in <b>/home/alumni/mdecat/chuck/api-github/classes/ChuckDatabase.inc.php</b> on line <b>124</b><br />
<br />
<b>Fatal error</b>:  Uncaught Error: Call to a member function replaceNames() on null in /home/alumni/mdecat/chuck/api-github/classes/ChuckAPI.inc.php:220
Stack trace:
#0 /home/alumni/mdecat/chuck/api-github/api.php(78): ChuckAPI-&gt;echoRandomQuoteBelongingTo('Chuck', 'Norris', Array)
#1 {main}
  thrown in <b>/home/alumni/mdecat/chuck/api-github/classes/ChuckAPI.inc.php</b> on line <b>220</b><br />

When using some string in limitTo and it's not found maybe?:
http://api.icndb.com/jokes/random?limitTo=[test]

API doesn't provide CORS header ‘Access-Control-Allow-Origin’

I recently made use of your fantastic API on a small site built to practice working with APIs. It worked fine on my local development environment but when I pushed it to GitHub pages I ran into the problem that the API doesn't have an ‘Access-Control-Allow-Origin’ CORS header, making it tricky to call from a site via JavaScript. I've tried using crossorigin.me and cors.io with limited success. Would it be possible to add the header to the API in a future build?

Error on Firefox Developer Edition Version 62.0b4 (64-bit):
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://crossorigin.me/https://api.icndb.com/jokes/random/5. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).

522 Origin Connection Time-out

I can't use the API at http://api.icndb.com/jokes/random

❯ wget http://api.icndb.com/jokes/random
--2016-05-19 15:55:49--  http://api.icndb.com/jokes/random
Resolving api.icndb.com (api.icndb.com)... 104.31.83.58, 104.31.82.58
Connecting to api.icndb.com (api.icndb.com)|104.31.83.58|:80... connected.
HTTP request sent, awaiting response... 522 Origin Connection Time-out
2016-05-19 15:56:05 ERROR 522: Origin Connection Time-out.

Exception thrown when invalid joke id is passed

Uncaught Error: Call to undefined method ChuckAPI::echoException()
seems there have been a typo will fix and send the pull request for the same

Sample Url:
http://api.icndb.com/jokes/22222

Is there a backup of the ICNDB database?

Hello,

I was quite saddened to release that ICNDB.com no longer exists! :'(

Especially as I'm one (of many, I'm sure) who has written a library / plugin for my favourite language / platform / app that connects to ICNDB.com for daily humour. ICNDB was a brilliant idea!

But, I know that maintaining such an Internet resource can be time-consuming, so I understand the decision to retire it. But it does beg the question...

...is there a backup repository of the Chuck Norris Joke Database?

I would love to grab a copy of this, if only to resurrect locally. I know there is chucknorris.io but it's just not the same!

Regards,

Steve.

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.