Giter Site home page Giter Site logo

oxford-dictionary's People

Contributors

ajivoin avatar albertothedev avatar damenleeturks avatar foobic avatar nandychu avatar sleepybandit 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

Watchers

 avatar  avatar  avatar

oxford-dictionary's Issues

Parsing JSON Data

what is the structure or format to extract only "definitions" from the array? and have it log in console? Any help is greatly appreciated.

Cross-Origin Request Blocked

Using snippet provided, I'm getting this error:

Access to XMLHttpRequest at 'http://192.168.0.10:8080/sockjs-node/info?t=1573126923594' from origin 'http://localhost:8080' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.

Any idea how to solve that issue?

NPM setup code has breaking issue which always returns error 500

In the NPM package page, the code in the setup section has this:
var config = { app_id : "YOUR_OXFORD_ACCOUNT_APP_ID", app_key : "YOUR_OXFORD_ACCOUNT_APP_KEY", source_lang : "en" };

This always returns { status_code: 500, status_text: 'JSON Parse Failed' } because since version 2 of the API english GB and US have separate dataset names. This can be seen in the code of the actual package, where the value for that variable is defaulted to en-us. It can be fixed by changing the value to "en-us" or "en-gb" in your index file.

The NPM page should be updated with this little correction in order to prevent people from encountering this silly mistake.

How to get definitions?

Hey Sleepy,

I am having issues on searching for definitions with the module.

When I use :
var lookup = dict.definitions("programming");

lookup.then(function(res) {
console.log(res);
},
function(err) {
console.log(err);
});

In functon variable I receive:

{ metadata: { provider: 'Oxford University Press' },
results:
[ { id: 'programming',
language: 'en',
lexicalEntries: [Array],
type: 'headword',
word: 'programming' } ] }

So where are the definitions?

When I switch the method to .find, like this:

var lookup = dict.find("programming");

I receive the same as the other method:

{ metadata: { provider: 'Oxford University Press' },
results:
[ { id: 'programming',
language: 'en',
lexicalEntries: [Array],
type: 'headword',
word: 'programming' } ] }

Can you help figure this out.
Thanks

Find method returning 500 error

Change line 15 from this:
var path = validate('/api/v1/entries/', props, this, 'entries');
to this:
var path = validate('/api/v1/entries/', props, this);

Is this project maintained?

I like this project very much, but I am not sure if it is maintained.

I see that @nandychu added a commit into his/her fork. If this project is maintained, a PR should be opened for it to merge. Also I myself have some suggestions that could be included.

Thanks for the awesome project! 😉

403 forbidden

I am using this on my localhost, I am getting 'Authentication parameters missing' as a response. Is it a problem with my id and key?

500 Error

Hey Sleepy,
Amazing work with the wrapper. I am getting a 500 error with “error parsing json string” when I use the directions from the readme. Could you please look into this?
Thanks x

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.