Elitist Jerks
Register
Blogs
Forums


Go Back   Elitist Jerks » Public Discussion » User Interface and AddOns

Reply
 
LinkBack Thread Tools
Old 03/01/11, 3:31 AM   #46
Riddance
Glass Joe
 
Orc Warlock
 
Destromath (EU)
Originally Posted by Ramides View Post
Hello,

...
Does anyone have any idea what I'm doing wrong?

Thank you in advance for help.
Seems you are also working on a C# implementation

I had the same problem and the problem was the non existing User-Agent Setting in the Get-Request.

So just set
Request.UserAgent = "Dummievalue";
after
Request.Method = "GET";
and you are getting your result. Back to programming class 1

Offline
Reply With Quote
Old 03/09/11, 4:57 AM   #47
Vajel
Glass Joe
 
Human Mage
 
The Venture Co (EU)
Any idea how to get from Battle.net character's achievement date and time insteed date only?

Offline
Reply With Quote
Old 03/24/11, 10:22 AM   #48
ccKep
Glass Joe
 
Worgen Hunter
 
Blackhand (EU)
Originally Posted by Vajel View Post
Any idea how to get from Battle.net character's achievement date and time insteed date only?
You can still read the old armory pages for that, just append the rhtml var to the variable.

For example:
http://eu.wowarmory.com/character-achievements.xml?r=Blackhand&cn=shuzzle&rhtml
Your browser will still show the "New armory, this way ->" page, but the document contains the XML data you're looking for, just take a look at the source.

Offline
Reply With Quote
Old 04/17/11, 10:25 AM   #49
luggebanane
Glass Joe
 
Blood Elf Priest
 
Dethecus (EU)
Armory Access PHP and JS

Hi,
here you can find my examples to Access the act. Armory with PHP or JS (JSON).

PHP Projects - Armory API

@Vajel
look in source/class/php/Class.Armory.php for function GetCharAchivement()
that could maybe solve your Problem

AchDate = $xpath->query('//span[@class=date"]');

Last edited by luggebanane : 04/17/11 at 10:40 AM.

Offline
Reply With Quote
Old 04/19/11, 4:15 AM   #50
tashin
Glass Joe
 
tashin's Avatar
 
Night Elf Druid
 
Gilneas (EU)
Hey Will, looks like we visit the same forums... ^^


@ Topic:

I'm currently coding an open source project in PHP on code.google.com that plugs into the new API.

> wow-data-access - World of Warcraft Data Access Library - Google Project Hosting


Short introduction:

Currently, due to the lack of released API functions on Blizzards behalf, I'm only providing realm status and icons.

The module is designed around a core object that uses one or more "data channels" to load and save (aka cache) data. The most typical setup would be a primary MySQL channel and the BattleNet as a secondary channel.

This means that a call like this one:
$icon WowDataAccess::obj()->openIcon(array('icon' => 'inv_chest_leather_raiddruid_i_01')); 
... will fetch the the icon from the Battle.net website if it is not cached in the MySQL database and save it into the database.

You could use this Object then to output the image:
echo(
   
'<img '.
   
'src="data:image/jpeg;base64,'.base64_encode($icon->get('icon')).'" '.
   
'alt="'.$icon->get('key').'" '.
   
'title="'.$icon->get('key').'" '.
   
'/>'
); 

Last edited by tashin : 04/19/11 at 4:21 AM.

Germany Offline
Reply With Quote
Old 08/09/11, 12:37 PM   #51
freddk
Glass Joe
 
Worgen Death Knight
 
Mal'Ganis
Originally Posted by Slackie View Post
This should get you started:

browse: GET https://us.battle.net/wow/en/vault/character/auction/horde/
bid_auction: POST https://us.battle.net/wow/en/vault/character/auction/horde/bid
cancel_auction: POST https://us.battle.net/wow/en/vault/character/auction/horde/cancel
create_auction: POST https://us.battle.net/wow/en/vault/character/auction/horde/createAuction
deposit (ticket request): POST https://us.battle.net/wow/en/vault/character/auction/horde/deposit
money: POST https://us.battle.net/wow/en/vault/character/auction/horde/money
my_auctions: GET https://us.battle.net/wow/en/vault/character/auction/horde/auctions
my_bids: GET https://us.battle.net/wow/en/vault/character/auction/horde/bids
Keep in mind that the "horde" portion of the URL is dynamic and can be "horde", "alliance", or "neutral".

So far I've found that the bid, cancel, create, deposit (ticket request) and money requests all return native JSON.

I still haven't found a way to get the browse, "my auctions", or "my bids" requests to return anything but HTML.

Also, upon looking at this I got the idea that since all of the POST requests returned JSON that maybe any POST request would, but sending POST instead of GET to the browse URL still results in HTML.
Which the recently changes using the old wowarmory urls is no longer possible. Has anyone had any luck posting,buying or cancelling an auction? I have managed to login but get status 500 (internal server error) when trying to create an auction using the link above. I have the xtoken and xstoken cookies but havent created a ticket.

Offline
Reply With Quote
Old 08/14/11, 8:59 AM   #52
dlmac
Glass Joe
 
Human Warrior
 
Draenor
I think if you are getting a status 500 error then you are setting the parameters incorrectly. I don't use those commands but I am having issues switching characters. It seems bliz has hidden this mid of functionality very well. All command I send for switching a characters just return with status 500 or 404.

Offline
Reply With Quote
Old 10/22/11, 5:36 PM   #53
Vajel
Glass Joe
 
Human Mage
 
The Venture Co (EU)
Ok, now i'm ready to show you worldofranks.com

Enjoy

Offline
Reply With Quote
Reply

Go Back   Elitist Jerks » Public Discussion » User Interface and AddOns

Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get XML with PHP from armory zork Public Discussion 122 04/29/11 9:48 AM
The Warcraft Armory Nite_Moogle Public Discussion 336 06/29/07 4:46 PM
In Game Armory Mod Maligne User Interface and AddOns 29 05/07/07 11:37 AM