runescape-api icon indicating copy to clipboard operation
runescape-api copied to clipboard

Add authentication for online status

Open Drake-W opened this issue 2 years ago • 0 comments

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)

Drake-W avatar Jun 17 '22 04:06 Drake-W