Author

Topic: morofaucet.com : new bitcoin faucet | up to 1k Satoshi | 20% Ref Bonus |on xapo! (Read 378 times)

legendary
Activity: 3262
Merit: 1376
Slava Ukraini!
Captcha is impossible to solve, I tried to change images lot of times, but it's to hard to solve. Please reduce difficulty level or use recaptcha.
newbie
Activity: 4
Merit: 0
what's the wallet did you leave it?
and what's the name of script did you run on your website ? Huh
legendary
Activity: 1582
Merit: 1031
newbie
Activity: 4
Merit: 0
hi thanks for adding my faucet to your list Grin

firstly create a file name it balance.php
and add this code below to the file you created

Code:
function get_bal(){
$ch curl_init();

curl_setopt($chCURLOPT_URL"https://v2.api.xapo.com/oauth2/token");
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
curl_setopt($chCURLOPT_HEADERFALSE);

curl_setopt($chCURLOPT_POSTTRUE);

curl_setopt($chCURLOPT_POSTFIELDS"grant_type=client_credentials&redirect_uri=http://youruri.com/");

$basic_token base64_encode(" your App Id:your App Secret:");
curl_setopt($chCURLOPT_HTTPHEADER, array(
  
"Content-Type: application/x-www-form-urlencoded",
  
"Authorization: Basic ".$basic_token
));

$respons curl_exec($ch);
curl_close($ch);
$json json_decode($respons);

$ch curl_init();

curl_setopt($chCURLOPT_URL"https://v2.api.xapo.com/accounts/");
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
curl_setopt($chCURLOPT_HEADERFALSE);
curl_setopt($chCURLOPT_HTTPGETTRUE);

curl_setopt($chCURLOPT_HTTPHEADER, array(
  
"Content-Type: application/json",
  
"Authorization: Bearer ".$json->{'access_token'}
));

$respons curl_exec($ch);
curl_close($ch);

//var_dump($respons);

$bal json_decode($responstrue);

echo 
$bal[0]['available_balance'] * 100000000;

}

?>


dont don't forget to change your app id ,App Secret and uri

secondly go to the index.php in the main root directory and paste the code below
Code:
require 'balance.php';

3. past the code below in wherever you want the balance get showing
Code:
echo get_bal(); ?>

one last thing you should delete all your wallets in your xapo account and leave a one only

sorry for being late i'm struggling with my english
best regards

legendary
Activity: 1582
Merit: 1031
great to see new xapo faucet now upcomming Wink

thanks for 100 Satoshi !

Can you say me how you show your xapo balance Huh
# iam also a faucet owner but i dont know how to show the balnce of my xapo walled !
and xapo support dont reply to my mails -.-

ps: i also added you to my faucet list here: http://yannik.biz/flist.php

kind regards
newbie
Activity: 4
Merit: 0
morofaucet.com : new bitcoin faucet | up to 1k Satoshi | 20% Ref Bonus |on xapo!

hi guys Just launched a new xapo bitcoin faucet : http://www.morofaucet.com/
Jump to: