API talk:2/commerce/prices

From Guild Wars 2 Wiki
Jump to navigationJump to search

Get Some[edit]

  • So... whats the best way to get all the Buy/Sell to update MySQL database of just weapons?
Look up all the buy/sell prices for just weapons--Relyk ~ talk < 01:44, 12 February 2016 (UTC)

Pulling Data[edit]

<?php

$url = "ht tps://api.guildwars2.com/v2/commerce/prices/19684";

$string = file_get_contents($url); $next = json_decode($string, true); $response = array($next);

foreach ($response as $value) {

echo var_dump($value);

}

This results in a NULL instead of the expected results. Why? What has changed since last time I was working on this api? ```` The preceding unsigned comment was added by Reanne (talk).

Responded to you on the forums. Eearslya (talk) 07:10, 15 January 2018 (UTC)
Problem has to do with SSL on my server - nothing wrong with code or link Reanne (talk) 18:17, 15 January 2018 (UTC)