Pages:
Author

Topic: Faucet owners! You're in luck! [API released] - page 3. (Read 2091 times)

legendary
Activity: 1484
Merit: 1001
Personal Text Space Not For Sale
I understand this - and it's an awesome opportunity Smiley

But how do you earn money? Do you just hope users will click the link and see the ads in your site?

I mean, the lottery winnings depend on your income, so...

Yes. This is definitely a good opportunity for faucet owners. So if you do have a faucet, do consider partnering with me. Smiley.

How do my site earn Bitcoin? You're right, hopefully the users who receive free tickets will click on my link and visit my site.
hero member
Activity: 896
Merit: 527
₿₿₿₿₿₿₿
I understand this - and it's an awesome opportunity Smiley

But how do you earn money? Do you just hope users will click the link and see the ads in your site?

I mean, the lottery winnings depend on your income, so...
full member
Activity: 213
Merit: 100
BitRevenues.com | Free Bitcoin Lottery
Hello everyone!

If you're a faucet owner or is thinking to create a profitable faucet, then you are at the right place. If you're just somebody who is somebody, you can continue to read - but the content may be unappealing to you.

As most of you know, I am jacktheking and the owner of the free provably fair Bitcoin lottery site, BitRevenues.com [Bitcointalk thread] and blab blab blab.

I will just get straight to the point instead of promoting my site ...

I am looking to partner a few popular faucets to giveaway free tickets to participate in my site's lottery game. All you have to do is to add a few lines of code to your faucet and then your faucet users will be able to participate in my lottery game - without your users visiting my site or filling captchas twice.

Why should you partner me? There is absolutely no disadvantages (other than a few more codes and bandwidth). In additional to not having disadvantages, you can actually benefit from it. You will stand 20% chances of getting a free ticket to participate in my lottery game every time your users receive a free ticket via you (much like referral). To add on, (as I already mentioned) your faucet users do not need to visit my site or fill in extra captcha. Since this partnership benefit both you and your users, why won't you partner me?

Oh wait! One disadvantage 9not really), you will of course have to link back to my site to tell your users that they receive a free ticket (only when the user receive ticket. no ticket = no link back - if you prefer not to support me Smiley)

My script is still in beta phrase and it will be great if my partnership is with someone with PHP knowledge. However, every faucets owners is welcome to request a partnership with BitRevenues. Smiley.

Updated: FaucetInABox modification that works with my API is ready. Smiley.

(API in JSON format only)

Edited:

Technical details

API

The API location is located at http://freebitcoinlottery.xyz/api/v1/claim.php. The API only accept two parameters and that is sitekey and address.

Code:
http://freebitcoinlottery.xyz/api/v1/claim.php?sitekey=$sitekey&address=$bitcoinAddress

sitekey: Your site key to work with the API. Do not disclose this to other people. Contact me to get one.

address: The Bitcoin address you want it to receive a free ticket.

The API will return "success" no matter what happen (unless the server is down). The API will also return "ticketnumber" if the Bitcoin address received a ticket.

success: return from 001 to 009. 001 to 008 represent 'fail' - no ticket number received. 009 represent success - ticket number received.

ticketnumber: the ticket number received.

Every API key have a 300 seconds cooldown until another tickets can be received. You can discuss with me if you wish to lower the timer - only for large and popular faucets.

FaucetInABox script example / tutorial

Step zero: Log into your FTP.

Step one: Go to "/faucetbox/libs" and create a new file with the name freebitcoinlottery.php. Open it with a text editor (Notepad).

Step two: Paste the following PHP code inside freebitcoinlottery.php. Remember to save it.

Code:
$sitekey "ChangeThisOnly"// Only change this to your site key. Do not change any other code unless you know what you are doing.
$bitcoinAddress $to$lotteryMsg "";

fopen("freebitcoinlottery.txt""r");
$lastClaim file_get_contents("freebitcoinlottery.txt");

if(
$lastClaim+300 <= time()) {
$response file_get_contents("http://freebitcoinlottery.xyz/api/v1/claim.php?sitekey=$sitekey&address=$bitcoinAddress");
$response json_decode($responsetrue);

if (isset($response["success"]) && $response["success"] == "009") {
$lotteryMsg "
You have also received a free lottery ticket (#"
.$response["ticketnumber"].") at FreeBitcoinLottery.xyz.";
file_put_contents("freebitcoinlottery.txt"time());
}
else {
// $lotteryMsg = "
Error: ". $response["success"]; // Uncomment only if you wish to debug the script.
}
}
?>


Step 3: Go to "/faucetbox/libs" and open up faucetbox.php with a text editor (Notepad).

Step 4: Find the following code (line 111)

Code:
if (is_array($r) && array_key_exists("status", $r) && $r["status"] == 200) {

Change it to

Code:
if (is_array($r) && array_key_exists("status", $r) && $r["status"] == 200) { require_once "freebitcoinlottery.php";

Step 5: Find this following code (line 115):

Code:
'html' => '
' . htmlspecialchars($amount) . ' satoshi was sent to you on FaucetBOX.com.
',

And change it to

Code:
'html' => '
' . htmlspecialchars($amount) . ' satoshi was sent to you on FaucetBOX.com.'.$lotteryMsg.'
',

Step 6: Save the file and you're done!
Pages:
Jump to: