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: 6

1

Topic: Introducing api.pvpgn.pro

New https://api.pvpgn.pro service is available for public. But 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 http://d2smanager.harpywar.com

Do not ask for support in PM.

2

Re: Introducing api.pvpgn.pro

Very nice, Harpy! What a great release

Admin of Slash Diablo & Diablo2.org (coming soon).

Also check out Slash's Character Armory!

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

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

Posts: 6

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



Generated in 0.093 seconds (82% PHP - 18% DB) with 22 queries