Skip to content

Add authentication for online status #52

@Drake-W

Description

@Drake-W

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions