Diablo® III

Diablo 3 Web API (PHP)

Diablo 3 Web API (PHP Bridge)

This is meant to be very simple & easy to use.
You are free to re-purpose this for any other coding needs or projects.

Minimal validation is being done to the inputs. If you feel that is not enonugh, be my guest and improve it.

Notes: Image folder needs to be in the following structure:
img
items
large
small
skills
21
42
64

Methods Available
Get Career Profile
Get Hero Profile
Get Item Information
Get Follower Information
Get Artisan Information
Get Item Image
Get Skill Image
Get Skill Tooltip
Get Skill Rune Tooltip

If any of you guys have any suggestions or requests please let me know.
Any help and/or suggestions are welcomed and very helpful.

Source: https://github.com/XjSv/Diablo-3-API-PHP
Edited by XjSv#1677 on 9/14/2012 8:59 PM PDT
Reply Quote
Hi XjSv, i'm actually practicing with ur script, but i have a problem that i cannot solve:

$battletag = $_POST['bt'];
$Diablo3 = new Diablo3($battletag, 'us', 'en_US');


the problem is that instead of taking the value of $battletag, this takes directly the variable name. i've tried with different methods that i know to solve it, but without any good results.

Can u help me?
Reply Quote
Hmm I don't see how it can take the literal variable name and not its value which should be a string.

Try this and see what the actual post is giving you:

$battletag = $_POST['bt'];

error_log('BattleTag: '.$battletag);
echo battletag;

$Diablo3 = new Diablo3($battletag, 'us', 'en_US');
Reply Quote

Please report any Code of Conduct violations, including:

Threats of violence. We take these seriously and will alert the proper authorities.

Posts containing personal information about other players. This includes physical addresses, e-mail addresses, phone numbers, and inappropriate photos and/or videos.

Harassing or discriminatory language. This will not be tolerated.

Forums Code of Conduct

Report Post # written by

Reason
Explain (256 characters max)
Submit Cancel

Reported!

[Close]