Giter VIP home page Giter VIP logo

runescape-api's People

Contributors

astrect avatar carsnwd avatar dependabot[bot] avatar joshua-f avatar pqt avatar swinkid 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  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

runescape-api's Issues

Rank might be NULL as a response from the rs api which produces an error

Hello!

I have an issue that I would like to get fixed, I can make a pull request for it if that works too.
runemetrics.getProfile produces an error when trying to remove a comma from the rank while initializing the RuneMetricsProfile instance, which happens here. This happens because the "rank" property may be null as a response from the runescape api.

Add authentication for online status

https://runescape.wiki/w/Application_programming_interface#playerDetails

I am hoping that someone can add the world and online status to this, I am having no luck. There are a couple other older projects in other languages listed below.

https://github.com/jsvana/runemetrics
https://github.com/dreadnip/rue

This is what I have attempted so far:

              superagent
		  .post('https://secure.runescape.com/m=weblogin/login.ws')
		  .send({ username: 'xxxxxxxx', password: 'xxxxxx', mod: 'www', ssl: '0', dest: 'community' })
		  .set('Content-Type', 'application/x-www-form-urlencoded')
		  .set('accept', 'json')
		  .end((err, res) => {
		  });

errors

statusCode: 403,
    status: 403,
    statusType: 4,
    info: false,
    ok: false,
    redirect: false,
    clientError: true,
    serverError: false,
    error: Error: cannot POST /m=weblogin/login-submit (403)

Can't use this client side in React App

I think the issue is it trying to do something with the filesystem but I didn't really look into the code.

To solve this, I just hosted the API is a nodejs lambda function and hit that from clientside.

osrs module undefined.

There seems to be an error when trying to import the osrs module. When I try to print the osrs module after importing the base module 'runescape-api', it returns undefined.

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.