Skip to forum content

You are not logged in. Please login or register.


forums.pvpgn.pro → News & Announcements → Introducing api.pvpgn.pro

Pages 1

You must login or register to post a reply

RSS topic feed

Posts: 7

1

Topic: Introducing api.pvpgn.pro

New https://api.pvpgn.pro service is available for public. And nothing prevents from launching own hosted instance
https://github.com/pvpgn/api.pvpgn.pro

There are only two methods now, and I hope they will be increased in the future. You can send pull requests with new features which related to pvpgn and can be useful for others


First app I made using the API is Diablo 2 Character Editor. This is only an example and it does not support full character editing features like moving items in inventory (but it's allowed by API).
Sure its possible to use the API for automation such things for very different purposes that you can imagine.

https://forums.pvpgn.pro/uploads/images/2019/01/17/d2edit.png

API method /d2char can be used as a better replacement of old d2smanager.harpywar.com

Do not ask for support in PM.

2

Re: Introducing api.pvpgn.pro

Very nice, Harpy! What a great release

Owner of SlashDiablo - One of the oldest and most well known Diablo II servers
Admin of Resurgence - Vanilla++ mod
Co-Founder of Hellforged - Diablo 09 built on 1.13 engine (current work in progress)
Founder of Diablo2.org - Dedicated Discord server for PvPGN/D2GS questions

3

Re: Introducing api.pvpgn.pro

Awesome. Huge thumbs up, great release!

4

Re: Introducing api.pvpgn.pro

Hello everyone,

I am planning to deploy this system on my server.

On my host it was not possible to run the API by being hosted in a Cloud next to others.

So I decided to use the API directly from the offered repository, but I do not know if it's possible...

I tried, and the following error occurred to me.

Access to XMLHttpRequest at 'https://api.pvpgn.pro/d2char?type=charinfo' from origin 'https://grupoblackwolf.com.br' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Can someone answer me if it is possible to do this?


https://forums.pvpgn.pro/uploads/images/2019/02/14/image.png

Diablo 2 Online

Itens - Armory - Market - Clans - Builds - Planner

5

Re: Introducing api.pvpgn.pro

By default there is restriction policy in a browser if you request ajax call from a web site, host of which differs from the destination host.
I add header to response and now you should be able to do this.

Access-Control-Allow-Origin: *
Do not ask for support in PM.

6

Re: Introducing api.pvpgn.pro

HarpyWar wrote:

By default there is restriction policy in a browser if you request ajax call from a web site, host of which differs from the destination host.
I add header to response and now you should be able to do this.

Access-Control-Allow-Origin: *

Work.. Tks HarpyWar! smile

Diablo 2 Online

Itens - Armory - Market - Clans - Builds - Planner

7

Re: Introducing api.pvpgn.pro

super glad to see this is still a thing. Haven't used this software in years but is very powerful and very happy to see you are still going at it strong.

Specifically, after this shit storm blizzard has created of the default servers!

Posts: 7

Pages 1

You must login or register to post a reply

Who now at forum

Currently view post: 0 guests, 0 registered users

forums.pvpgn.pro → News & Announcements → Introducing api.pvpgn.pro