Jump to content


Toggle shoutbox VVelcome to XRPtalk........ ask questions ............. share your thoughts .......... participate ..............

ShoutBox: - Minimum of 10 posts to Shout. - Advertising Strictly Forbidden. - No Vulgarity.
@  beyond73 : (02 March 2015 - 07:00 AM) Even that 30 million $ is still a rumor :mellow:
@  ClemondFlinch : (02 March 2015 - 05:45 AM) and not secret rumor banks or banks (no offense) that I hadn't previously heard of
@  ClemondFlinch : (02 March 2015 - 05:44 AM) @rippleric I'm still waiting for banks
@  rippleric : (02 March 2015 - 04:52 AM) Can't wait for ripple labs to start focusing on merchants and payments in the future...
@  akaasa : (02 March 2015 - 04:30 AM) don't think so. he simply add his weekly $10k wall. This week in 75 XRP/USD.Bitstamp
@  omidt1234 : (02 March 2015 - 04:22 AM) Is it jed dumping? Or another bored investor? Any idea?
@  huafei : (02 March 2015 - 03:48 AM) *any
@  huafei : (02 March 2015 - 03:48 AM) hello , andy gateway can deal with perfectmoney?
@  lehgoboy : (02 March 2015 - 03:18 AM) Do we know when they have sold so far, and how much at a time?
@  lehgoboy : (02 March 2015 - 03:17 AM) How many xrp does the team have?
@  beyond73 : (02 March 2015 - 02:24 AM) Leave the chance to those who can withdraw JPY from RTJ :unsure:
@  rippleric : (02 March 2015 - 02:11 AM) Same with CNY JPY
@  rippleric : (02 March 2015 - 02:11 AM) I noticed both TokyoJPY and RTJ have pretty poor liquidity, not good exchange rates with USD
@  beyond73 : (02 March 2015 - 01:45 AM) Has anybody tried sell XRP on ripple trade Japan and sell JPY for USD at good price?
@  rippleric : (02 March 2015 - 01:43 AM) XRP making a rebound?
@  NibiruIsNear : (02 March 2015 - 01:20 AM) @BrianWalden thanks, I will check it out... Could be it!
@  rippleric : (02 March 2015 - 01:13 AM) @Zooplankton Right on, that's why I put my money into stocks, and ripple ;)
@  rippleric : (02 March 2015 - 01:12 AM) @seve7ete looks like another OTC seller
@  Zooplankton : (02 March 2015 - 01:11 AM) Why would people keep their money in the bank when the bank pays nothing for you to keep it there, the banks always closed and it takes days to transfer money *end rant*
@  brianwalden : (02 March 2015 - 12:52 AM) @NibiruIsNear it's btc2ripple trying to max out your BTC trust. It's a very poorly implemented "feature" of ripple trade

Photo

rippleTop-lib - PHP library

rippleTop Lib PHP Code API

  • Please log in to reply
No replies to this topic

#1 Hurukan

Hurukan

    Ghost

  • Ghosts
  • 4617 posts
  • LocationParis
  • tip XRP: 1, 5, 10

Posted 04 June 2013 - 07:37 PM

rippleTop-lib is a PHP lib created by rippletop.com.

You can find it on github: https://github.com/b...n/rippleTop-lib

 

For the moment, it implements the following API:

  • account_info
  • account_lines
  • account_offers
  • tx

I have pasted some examples of PHP code using that lib ;)

 

account_info.php

https://ripple.com/wiki/RPC_API#account_info
require_once dirname(__FILE__).'/../ripple_top/ripple_top_rpc.php';

$ripple = new RippleTopRpcClient("http://s1.ripple.com:51234");
$resp = $ripple->account_info(array("account" => "rvFbbjmy7SbNzXafkzHrWwwkTyS6fQAYF"));
if ($resp['status'] != 'success') {
	// do something handle error
	var_dump($resp);
	exit;
}
var_dump($resp);

account_lines.php

https://ripple.com/wiki/RPC_API#account_lines
require_once dirname(__FILE__).'/../ripple_top/ripple_top_rpc.php';

$ripple = new RippleTopRpcClient("http://s1.ripple.com:51234");
$resp = $ripple->account_lines(array("account" => "rvFbbjmy7SbNzXafkzHrWwwkTyS6fQAYF"));
if ($resp['status'] != 'success') {
	// do something handle error
	var_dump($resp);
	exit;
}
var_dump($resp);

account_offers.php

https://ripple.com/wiki/RPC_API#account_offers
require_once dirname(__FILE__).'/../ripple_top/ripple_top_rpc.php';

$ripple = new RippleTopRpcClient("http://s1.ripple.com:51234");
$resp = $ripple->account_offers(array("account" => "rsKn8hGfNDAVuEdZ3NHXUqqZzp8uDiLUK9"));
if ($resp['status'] != 'success') {
	// do something handle error
	var_dump($resp);
	exit;
}
var_dump($resp);

tx.php

require_once dirname(__FILE__).'/../ripple_top/ripple_top_rpc.php';

$ripple = new RippleTopRpcClient("http://s1.ripple.com:51234");

$resp = $ripple->tx(array(
		"transaction" => "7B242CC8C65690CF8C95C03880E07AB5BEF84BF727AB8E39A7BC1F6CA4E633AA",
));
if ($resp['status'] != 'success') {
	// do something handle error
	var_dump($resp);
	exit;
}
var_dump($resp);

  • Koorg likes this

XRPtalk on Twitter - Facebook - Reddit - Weibo

Donations to ~Hurukan and ~XRPtalk






Also tagged with one or more of these keywords: rippleTop, Lib, PHP, Code, API