Post
Topic
Board Micro Earnings
Re: ⬛️ Xapo Faucet ⬛️ PHP Script ⬛️ AntiAdBlock + AddressValidator + SCSS
by
alfaboy23
on 24/10/2016, 13:06:57 UTC
Okay, i up this post. But i need to explain why that doesn't actually doesn't works.
When i started project, i used the XapoCreditAPI, that using the API v1. But... Xapo API v1 is now deprecated, so we can't use it.
Now, only the Xapo API v2 is usable. But it is very hard to use it.
Because our goal is to "send satoshi" or create a transaction with a small amount of bitcoin. For this, Xapo API v2 has a function called "Create a transaction", BUT, it need Wallet ID (the wallet that contain satoshi), and i have the Wallet ID. After, it need a AuthKey (Xapo App ID + Xapo Secret in Base64 encode). And same thing, i have the AuthKey, but now the problem is i can't create transaction... The message is "Unauthorised".
And there is a another strange thing, the exemple of "Create a transaction" says it's a POST function. but it use POST + GET + HEADERS  Huh POST and GET has the same parameters Huh
Create a transaction (Xapo API Docs)

Edit:
Small update, now SolveMedia works.
And the CSS issue is fixed too.
All you need to do is ask the Xapo API developers for the proper code. My faucet has mix version of the API, v1 for the payment processing and address validation courtesy of Gifted who's freely distributed the xapo faucet script and version 2 for getting my wallet balance courtesy of Xapo developers.