Bitcoin Forum
July 10, 2024, 10:56:38 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Economy / Micro Earnings / Re: FaucetBOX.com Discussion on: December 01, 2015, 06:40:18 AM
Hi,
I made a RubyOnRails helper gem for FaucetBox REST API, so you can quite easily integrate FaucetBox with your RoR application:
https://github.com/Hothza/fbox
https://rubygems.org/gems/fbox

Information how to use it is in README.md file

Have fun Smiley
2  Economy / Micro Earnings / Re: FaucetBOX.com Discussion on: November 26, 2015, 09:53:34 PM
You have to pass the API key as a POST parameter, not in query. Something like curl -d api_key=4VdBEIAQKPpZ4SWOhQLUMn7mMNVql -X POST https://faucetbox.com/api/v1/balance

Also, don't set the content type to json, as that's not true. Only response is in json, request should be application/x-www-form-urlencoded or similar, but you can just omit that.

Ouch, you're right! Thanks!
3  Economy / Micro Earnings / Re: FaucetBOX.com Discussion on: November 26, 2015, 06:10:47 PM
Hello,
@Kazuldur: Do you have an API key which could be used for testing purposes of FaucetBox REST API?
I'm asking because I'm trying to test my Ruby on Rails code and API key shown on API page doesn't work for balance query (some headers omitted):

Code:
$curl -i -X POST -H "Content-Type:application/json" https://faucetbox.com/api/v1/balance?api_key=4VdBEIAQKPpZ4SWOhQLUMn7mMNVql

HTTP/1.1 200 OK
Date: Thu, 26 Nov 2015 17:46:57 GMT
Content-Type: text/html

{"status":403,"message":"Invalid API key."}

It would be great if that API key could be used for all request (balance, send, payouts) even if it would return some constant and fake data for correct parameters.


Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!