Pages:
Author

Topic: [ANN] FaucetBOX.com - API & faucet script, create your own crypto faucet - page 8. (Read 119971 times)

legendary
Activity: 2324
Merit: 1267
In Memory of Zepher
Kkk...
It works like a charm. Grin
One more thing, if i want to store the status(200 for ok) and message values in 2 php variables???
Code:
$jsonResponse = json_decode($response);
$status = $jsonResponse->status;
$message = $jsonResponse->otherJsonString;

It works but not as I want. When the adblock is enabled I see the message Please disable adblock to claim.Пoжaлyйcтa, oтключитe Adblock, чтoбы coбpaть caтoши but only 1 second or even less. After that I see the countdown button and after 5 sec the standart button Get reward appears. So actually script for adblock doesn't work
My apologies, I forgot a crucial part of it.

Try this:
Code:

        Wait 5s.

       



sr. member
Activity: 308
Merit: 250
That's a GET request. You have to do POST requests.

But it works for fetching the balance.(Thats what i was being confused with)
(Can you post here an example of sending payouts through post?)

It only works as a compatibility for Microfaucet (and what's more, it only works for Bitcoin). It's not documented and shouldn't be used.

Code:
 $params = array(
     
"api_key" => "api_key",
     
"currency" => "BTC",
     
"amount" => 1,
     
"to" => "dest address"
 
);
 
$opts = array(
     
"http" => array(
         
"method" => "POST",
         
"header" => "Content-type: application/x-www-form-urlencoded\r\n",
         
"content" => http_build_query($params)
     )   
 );
 
$ctx stream_context_create($opts);
 
$fp fopen("https://faucetbox.com/api/v1/send"'rb'null$ctx);
 
$response stream_get_contents($fp);
 
fclose($fp);
 
var_dump($response);

Kkk...
It works like a charm. Grin
One more thing, if i want to store the status(200 for ok) and message values in 2 php variables???
member
Activity: 95
Merit: 10
So the whole code will be like that?
snip
I made an error, here is the entire code:
Code:

        Wait 5s.

       



This should be correct.
It works but not as I want. When the adblock is enabled I see the message Please disable adblock to claim.Пoжaлyйcтa, oтключитe Adblock, чтoбы coбpaть caтoши but only 1 second or even less. After that I see the countdown button and after 5 sec the standart button Get reward appears. So actually script for adblock doesn't work
legendary
Activity: 971
Merit: 1000
That's a GET request. You have to do POST requests.

But it works for fetching the balance.(Thats what i was being confused with)
(Can you post here an example of sending payouts through post?)

It only works as a compatibility for Microfaucet (and what's more, it only works for Bitcoin). It's not documented and shouldn't be used.

Code:
 $params = array(
     
"api_key" => "api_key",
     
"currency" => "BTC",
     
"amount" => 1,
     
"to" => "dest address"
 
);
 
$opts = array(
     
"http" => array(
         
"method" => "POST",
         
"header" => "Content-type: application/x-www-form-urlencoded\r\n",
         
"content" => http_build_query($params)
     )   
 );
 
$ctx stream_context_create($opts);
 
$fp fopen("https://faucetbox.com/api/v1/send"'rb'null$ctx);
 
$response stream_get_contents($fp);
 
fclose($fp);
 
var_dump($response);
sr. member
Activity: 308
Merit: 250
That's a GET request. You have to do POST requests.

But it works for fetching the balance.(Thats what i was being confused with)
(Can you post here an example of sending payouts through post?)
legendary
Activity: 971
Merit: 1000
You seem to have given me every request but the one that you're having trouble getting, unless it's sending the BTC which is giving you trouble.
If that is not the case, when trying to get the last payouts what request do you send?

https://faucetbox.com/api/v1/send?api_key=APIKEY&amount=1000&to=BITCOINADDRESS¤cy=BTC&referral=false

If i go to the above url(after adding api key and bitcoin address), the page shows -
{"status":414,"message":"Missing or invalid parameters."}

That's a GET request. You have to do POST requests.

Is there a reason why it takes so long to get approved? I've been waiting for 4 days now for my faucet to get approved, and I've been watching the faucets list for BTC, hasn't changed at all.

Thanks.

I know it says "up to a week" but from what I can tell, it's deliberately making me wait a week.
Because there's one or two people checking through hundreds of faucets to make sure they all work correctly and fit the ToS. That does take time.

There's one person and he's been busy with other things lately. I believe he'll review pending faucets tomorrow.
hero member
Activity: 504
Merit: 500
sucker got hacked and screwed --Toad
I am having some problems in sending payments through your api. When i check the balance using json it returns everything all right. But when i send a payment or fetch the most recent payouts, it says -
{"status":414,"message":"Missing or invalid parameters."}

Please help ASAP.
What's the request you're sending?
I tried fetching balance-
$json_url = "https://faucetbox.com/api/v1/balance?api_key=APIKEY¤cy=BTC";
$json_data = file_get_contents($json_url);
$json_feed = json_decode($json_data);
$bal = $json_feed->balance;

This returns ok.

Then i try this -
$json_url = "https://faucetbox.com/api/v1/send?api_key=APIKEY¤cy=BTC&to=$addr&amount=$cash";
$json_data = file_get_contents($json_url);
$json_feed = json_decode($json_data);
$status = $json_feed->status;
if ($status == '200') {
echo'A payment of '.$cash.' has been sent to https://faucetbox.com/en/check/$addr">your faucetbox account.
Thanks for using Bitcoin Play!
';

I get a return - {"status":414,"message":"Missing or invalid parameters."}
I also get this error when i try to fetch the last payouts.
Use the official, pre-packaged api class. It makes life much, much easier.
sr. member
Activity: 308
Merit: 250
You seem to have given me every request but the one that you're having trouble getting, unless it's sending the BTC which is giving you trouble.
If that is not the case, when trying to get the last payouts what request do you send?

https://faucetbox.com/api/v1/send?api_key=APIKEY&amount=1000&to=BITCOINADDRESS¤cy=BTC&referral=false

If i go to the above url(after adding api key and bitcoin address), the page shows -
{"status":414,"message":"Missing or invalid parameters."}
legendary
Activity: 2324
Merit: 1267
In Memory of Zepher
Hrmm, alright ,thanks. I guess I gotta sit tight.

I remember back in January when I started with faucetbox approval was within a couple of hours.
I expect there were a lot less faucets to trawl through back in January since the service was only a few months old. And you might have caught Kazuldur when he was online.

I tried fetching balance-
$json_url = "https://faucetbox.com/api/v1/balance?api_key=APIKEY¤cy=BTC";
$json_data = file_get_contents($json_url);
$json_feed = json_decode($json_data);
$bal = $json_feed->balance;

This returns ok.

Then i try this -
$json_url = "https://faucetbox.com/api/v1/send?api_key=APIKEY¤cy=BTC&to=$addr&amount=$cash";
$json_data = file_get_contents($json_url);
$json_feed = json_decode($json_data);
$status = $json_feed->status;
if ($status == '200') {
echo'A payment of '.$cash.' has been sent to https://faucetbox.com/en/check/$addr">your faucetbox account.
Thanks for using Bitcoin Play!
';

I get a return - {"status":414,"message":"Missing or invalid parameters."}
I also get this error when i try to fetch the last payouts.
You seem to have given me every request but the one that you're having trouble getting, unless it's sending the BTC which is giving you trouble.
If that is not the case, when trying to get the last payouts what request do you send?
sr. member
Activity: 308
Merit: 250
I am having some problems in sending payments through your api. When i check the balance using json it returns everything all right. But when i send a payment or fetch the most recent payouts, it says -
{"status":414,"message":"Missing or invalid parameters."}

Please help ASAP.
What's the request you're sending?
I tried fetching balance-
$json_url = "https://faucetbox.com/api/v1/balance?api_key=APIKEY¤cy=BTC";
$json_data = file_get_contents($json_url);
$json_feed = json_decode($json_data);
$bal = $json_feed->balance;

This returns ok.

Then i try this -
$json_url = "https://faucetbox.com/api/v1/send?api_key=APIKEY¤cy=BTC&to=$addr&amount=$cash";
$json_data = file_get_contents($json_url);
$json_feed = json_decode($json_data);
$status = $json_feed->status;
if ($status == '200') {
echo'A payment of '.$cash.' has been sent to https://faucetbox.com/en/check/$addr">your faucetbox account.
Thanks for using Bitcoin Play!
';

I get a return - {"status":414,"message":"Missing or invalid parameters."}
I also get this error when i try to fetch the last payouts.
legendary
Activity: 2324
Merit: 1267
In Memory of Zepher
I am having some problems in sending payments through your api. When i check the balance using json it returns everything all right. But when i send a payment or fetch the most recent payouts, it says -
{"status":414,"message":"Missing or invalid parameters."}

Please help ASAP.
What's the request you're sending?
sr. member
Activity: 308
Merit: 250
I am having some problems in sending payments through your api. When i check the balance using json it returns everything all right. But when i send a payment or fetch the most recent payouts, it says -
{"status":414,"message":"Missing or invalid parameters."}

Please help ASAP.
legendary
Activity: 1022
Merit: 1000
Is there a reason why it takes so long to get approved? I've been waiting for 4 days now for my faucet to get approved, and I've been watching the faucets list for BTC, hasn't changed at all.

Thanks.

I know it says "up to a week" but from what I can tell, it's deliberately making me wait a week.

Maybe they are waiting if your faucet can survive in a couple of days.
legendary
Activity: 2324
Merit: 1267
In Memory of Zepher
Is there a reason why it takes so long to get approved? I've been waiting for 4 days now for my faucet to get approved, and I've been watching the faucets list for BTC, hasn't changed at all.

Thanks.

I know it says "up to a week" but from what I can tell, it's deliberately making me wait a week.
Because there's one or two people checking through hundreds of faucets to make sure they all work correctly and fit the ToS. That does take time.
hero member
Activity: 1092
Merit: 501
no worry man I am looking into api to do direct deposit into accounts.  I like Faucetbox but if they are gonna authorize scammers like him I rather not be part of it.  He scams people, advertisers and other faucet owner like he is gonna get rich with a faucet lol he will if he keeps scamming like he is but hey i move on and
I wouldn't blame FaucetBox for any actions of anyone else. If his site works correctly and is not trapping users it is none of FaucetBox's concern what else he does.

If you need any help send me a PM, APIs like blockchain.info are fairly easy to use.

No worry was not blamming Kazuldur nor Faucetbox on that matter is just a faucet like that keeps ignoring rules comes on then redo it then on wow a rollercoaster just pisses off users and they think all faucets on that payout are like that one.  But I saw he used all his chances. I will keep my faucets on but working on better high paying faucets but those will be direct into wallets.  well techs r working on it should be done when I am back from sick leave anyway and also will give themn access to funds using xapo also i see my faucets r dry and nothing i can do till i am home

and mini yes once faucet ready they may contact u here on how to do it direct api and put in also faucetbox for those who wants it like that but want be liste on there
legendary
Activity: 2324
Merit: 1267
In Memory of Zepher
So the whole code will be like that?
snip
I made an error, here is the entire code:
Code:

        Wait 5s.

       



This should be correct.
member
Activity: 95
Merit: 10
For the timed button in combination with the adblock script shown above, you just have to put this script in the tags.

Code:
Wait 5s.



Then with the adblock script below as shown in the example above.
So the whole code will be like that?
Code:

        Wait 5s.




legendary
Activity: 2324
Merit: 1267
In Memory of Zepher
For the timed button in combination with the adblock script shown above, you just have to put this script in the tags.

Code:
Wait 5s.



Then with the adblock script below as shown in the example above.
hero member
Activity: 504
Merit: 500
Who knows how to combine two features? The first is the code for the button that replace the button with custom message if the adblock is enable (the first screenshot) and the second one is the script for the reward button timer (the second screenshot) into one script?

I have a tutorial (with pictures) on the adblock thing here: http://makingmoneyhoney.com/FaucetBoxTutorial.htm#adblock
member
Activity: 95
Merit: 10
Anyone here knows how to add extra texts and links like this
It wil be much appreciated because i asked a person, he knows and told me to tip him before he tells. So, please don't ask for money



Maybe Kazuldur should answer it in Better way
Go to line 1205 in index.php.
Quote
$data['paid'] = '
'.htmlspecialchars($reward).' '.$unit.' + '.htmlspecialchars($refbalance).' '.$unit.' for referrals was sent to https://faucetbox.com/check/'.rawurlencode(trim($_POST["address"])).'">your FaucetBOX.com address.
PUT WHATEVER YOU WANT HERE
';

That is not Working
Maybe it too late but you can do this in this way:
1) find the file faucetbox.php in the folder libs;
2) open it in editor (for example Notepad ++);
3) find 'html' => '
' (basically in line 110) and after >on FaucetBOX.com. add your message (for example,

Earn more satoshi http://btcearn.ml/">here

Pages:
Jump to: