Click here to Skip to main content

Welcome to the Lounge

   

For lazing about and discussing anything in a software developer's life that takes your fancy.
The Lounge is rated PG. If you're about to post something you wouldn't want your kid sister to read then don't post it. No flame wars, no abusive conduct and please don't post ads.

Technical discussions are welcome, but if you need specific help please use the programming forums.


 
GeneralRe: It has to be a great movie. PinprotectorDaveAuld24-May-14 9:15 
GeneralRe: It has to be a great movie. PinprofessionalSoMad24-May-14 9:26 
GeneralRe: It has to be a great movie. PinmemberMike Hankey24-May-14 10:36 
GeneralSPOILER ALERT! PinmemberS u n s h i n e24-May-14 14:28 
GeneralHow to set about creating a Joomla extension. PinmemberBrady Kelly24-May-14 6:23 
GeneralRe: How to set about creating a Joomla extension. PinprotectorMarc Clifton24-May-14 8:25 
GeneralRe: How to set about creating a Joomla extension. PinmemberBrady Kelly24-May-14 8:29 
GeneralHelp with PHP API Code PinmemberJonas Chokun24-May-14 5:36 
I'm running this bitcoin API code retriving the data from MtGox but it's not working any longer because they site is not up anymore. Goal is to now pull the info from blockchain.info/ticker or bitstamp.net/api/ticker/ or both tickers APIs. If you want to see an example you can go to bitcoinvalues.net. It's supposed to show on top of the site but there is not data.
 
1.<?php
 2.          //first fetch the current rate from MtGox
 3.          $ch = curl_init('https://mtgox.com/api/0/data/ticker.php');
 4.                  curl_setopt($ch, CURLOPT_REFERER, 'Mozilla/5.0 (compatible; MtGox PHP client; '.php_uname('s').'; PHP/'.phpversion().')');
 5.                  curl_setopt($ch, CURLOPT_USERAGENT, "CakeScript/0.1");
 6.                  curl_setopt($ch, CURLOPT_HEADER, 0);
 7.                  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
 8.                  curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
 9.                  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
 10.                  $mtgoxjson = curl_exec($ch);
 11.                  curl_close($ch);
 12. 
 13.          //decode from an object to array
 14.                  $output_mtgox = json_decode($mtgoxjson);
 15.                  $output_mtgox_1 = get_object_vars($output_mtgox);
 16.                  $mtgox_array = get_object_vars($output_mtgox_1['ticker']);
 17. 
 18.  ?>
http://www.bitcoinvalues.net

GeneralRe: Help with PHP API Code PinprotectorOriginalGriff24-May-14 5:44 
GeneralRe: Help with PHP API Code PinprofessionalJörgen Andersson24-May-14 6:05 
GeneralRe: Help with PHP API Code PinprotectorOriginalGriff24-May-14 6:14 
GeneralThe Clutch Saga PinmemberBrady Kelly24-May-14 4:19 
GeneralRe: The Clutch Saga PinprotectorOriginalGriff24-May-14 4:50 
GeneralRe: The Clutch Saga PinmemberBrady Kelly24-May-14 5:23 
GeneralRe: The Clutch Saga PinmemberMember 419459324-May-14 5:29 
GeneralRe: The Clutch Saga PinmentorKeith Barrow24-May-14 5:23 
GeneralRe: The Clutch Saga PinmemberBrady Kelly24-May-14 6:49 
GeneralRe: The Clutch Saga PinmentorKeith Barrow25-May-14 3:08 
GeneralRe: The Clutch Saga PinmemberBrady Kelly25-May-14 5:09 
GeneralRe: The Clutch Saga PinprotectorDaveAuld24-May-14 8:43 
GeneralRe: The Clutch Saga PinmemberBrady Kelly24-May-14 10:13 
GeneralRe: The Clutch Saga Pinmembermngerhold27-May-14 2:50 
GeneralRe: The Clutch Saga PinmemberBrady Kelly27-May-14 3:13 
GeneralNot mentioning the war PinmemberGarth J Lancaster24-May-14 4:13 
GeneralRe: Not mentioning the war PinmemberJimmyRopes24-May-14 4:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.141223.1 | Last Updated 27 Dec 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid