Bitcoin Forum
May 02, 2024, 01:56:07 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Bitcoin Technical Support / MTGox api/v1 php script, Incomplete need help adding to it. on: December 17, 2013, 09:22:00 AM
Got this api script to work for the defined functions

although im trying to set the market buy to an amount in USD, ie buy 5$ worth of btc!

line 88 submit_buy_order_at_market($amount)

problem is the amount is in BTC, I need to set it to USD somehow

https://github.com/daftspunk/php-mtgox-v1/blob/master/mtgox_private_api.php     


Thanks for the help
2  Bitcoin / Project Development / Open Source Bitcoin ATM's; Looking for Developers. Front End/CSS for Python app on: November 04, 2013, 10:50:25 PM
I run Cash2BTC.com and We have been building/selling DIY bitcoin atm's for the last 4 months. I've moved the project from vb.net and windows, to python based apps on Raspbian on a raspberry pi. We are getting really close to launching this new version but the GUI is no where near what I want it to be. So im tossing it out, and building it from scratch. I'm looking for some CSS pro's to give this project the look and feel it needs.

The drivers are built (python), The GUI is going to be a python app running in miridi(browser) locally and is built on python flask; and going to be optimized for touch screens. The basic programming objects are there; Now it all about what the customer see's and how they interface with it. all the graphics, how it looks and feels is completely up for redesign. I am looking for some developers who would like to jump on this project. I will be paying in BTC as well as giving out developer kits (Check the photos) but really hoping that will catch on and start evolving on its own. And this whole-project will be/is posted on github.

The github (most recent gui is not posted because im tossing it, but email me and ill get you caught up.)
https://github.com/HighlanderEnterprises/Pyramid-Acceptors-Rpi-Python-Driver

also, Photos from the new kits
http://imgur.com/a/Y91Vj

Email me
BitHighlander@gmail.com
3  Bitcoin / Bitcoin Technical Support / blockchain.info wallet API's, Avoid Change being sent to moniterd address's on: August 26, 2013, 08:40:14 PM
o I ran into an issue. I'm playing with php and blockchain.info's api. I am issuing a new address to a new user, watching for deposits and crediting their account when btc is sent to that address, everything was working good. except sometimes if I do a send with that same blockchain wallet, the "change" gets sent back to the original address, crediting the user when it shouldn't. Is there a better way to use block-chains wallet api to do this?

Im thinking I could just make a bunch of offline address's, use them for deposits, and then keep a hotwallet online.

But I want to ability to keep a tiny hotwallet and don't want a some one with a lot of btc to come in and be like, wtf I want my coin now.

So Im looking to either, 1) set blockchain.info to forward all "change" to a new address (if that's even possible) or 2) Do I just need to move on to more full featured php bitcoin tools? like?
4  Other / Beginners & Help / wallet API's, useing php to build with bitcoin on: August 26, 2013, 08:19:31 PM
o I ran into an issue. I'm playing with php and blockchain.info's api. I am issuing a new address to a new user, watching for deposits and crediting their account when btc is sent to that address, everything was working good. except sometimes if I do a send with that same blockchain wallet, the "change" gets sent back to the original address, crediting the user when it shouldn't. Is there a better way to use block-chains wallet api to do this?

Im thinking I could just make a bunch of offline address's, use them for deposits, and then keep a hotwallet online.

But I want to ability to keep a tiny hotwallet and don't want a some one with a lot of btc to come in and be like, wtf I want my coin now.

So Im looking to either, 1) set blockchain.info to forward all "change" to a new address (if that's even possible) or 2) Do I just need to move on to more full featured php bitcoin tools? like?
5  Other / Beginners & Help / How to build a Bitcoin Dispenser; A photo walk-through of my latest build. on: July 29, 2013, 05:53:42 PM
Completed a new version, Ive been developing these boxes for a few months now and wanted to show off some pics from my build.


http://imgur.com/a/obhNx
6  Economy / Services / Cash2BTC bitcoin dispensors, get going with just 7.8btc on: July 01, 2013, 09:33:10 PM
I am a bitcoin developer; like all of you I want to see bitcoin succeed. One of the major hurdles I have is helping people buy bitcoin. The current methods are too cumbersome; and I feel personally responsible when a service I recommend screws over my friends. Bitcoin needs to be able to flow into and out of markets easily. I think absolute best way to experience bitcoin for the first time is with an easy purchase. With our packages you can turn that old desktop you got laying around into a fully functional bitcoin dispenser. Host these devices in your living room, man cave, or around the office. With our basic package all the leg work is done for you.

How it works

  • You purchase a basic package via bitcoin from cash2btc.com
  • We use bitpay same day deposits; and order your hardware as soon as it clears.
  • Your account is activated on cash2btc.com and hosting setup is started.
  • Bill dispenser shows up in the mail
  • You download and install the client side software from cash2btc.com onto your desktop
  • plug the dispenser in via USB
  • plug in a webcam if you don’t already have one
  • open a browser and point to your hosted device page
  • inset a bill into the dispenser to test the device.

Hack together a case and a UPS and you got a portable bitcoin dispenser.
If you ever lose the device (or have it taken!) a new dispenser can be bought for a mere 252.00; I hoping for groups to get together and build cool unique cases.  I can see these deployed everything from ultralight to carry in a backpack, to large devices like a redbox. I plan on providing as much customer support as I can, I will be looking to the bitcoin community to organize host and use the devices to help promote bitcoin. If Our sales do well I will be looking to hire people from the community grow our company as well.

Check out our Welcome video
http://www.youtube.com/edit?ns=1&video_id=MZAntrBDuso

And our website
Cash2BTC.com
7  Other / Beginners & Help / MTGOX api, send simple not working. [solved ] on: May 22, 2013, 07:27:48 PM
I found a php script for mtgox's api that is working for me.

https://github.com/daftspunk/php-mtgox-v1


here is my script, some of the functions work, some dont...

Trying to get a send simple to a bitcoin address.


http://pastebin.com/wihZqAcW
8  Economy / Services / I need a working PHP mtgox API script [.1 btc] on: May 22, 2013, 06:40:38 PM
Need to be able to withdraw btc and place buy orders.

v1/v2

must be in php


link to my attempts so far,
https://bitcointalk.org/index.php?topic=213284.msg2237716#msg2237716
9  Other / Beginners & Help / arggg; HTTP callback for bitcoin address's on: May 16, 2013, 11:42:12 PM
test HTTP Post callback
http://www.bitcoinmonitor.net/help/#httpcallback


looks like
http://requestb.in/1jq58n51?inspect





So Ive i got some help on IRC, and i got this far.


Code:
<?php
$c 
file_get_contents('php://input'); 
$c json_decode($ctrue); 
//echo $c['txhash'];


//$txhash = $_POST['txhash'];
$entry $c->signed_data['txhash'];


//mysql $entry into table
?>



I have no idea what on earth php://input is about


But I know $c is an array and stores 'array' in my sql, so close right? but how do i get the txhash out of it?
10  Other / Beginners & Help / bitcoinmonitor.net API 401 error on: May 16, 2013, 05:45:04 PM
getting the following error

HTTP/1.1 401 UNAUTHORIZED Server: nginx/0.7.67 Date: Thu, 16 May 2013 17:40:10 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive Vary: Authorization Authorization Required1


my script:
http://pastebin.com/pB3z23Um


I tried making new keys, and tried "Authorization: <apikey>" to no avail

(*edit)advice that gets me working, or posts a working script ill send .1btc
11  Other / Beginners & Help / bitcoinmonitor.net API cURL with a header on: May 16, 2013, 02:38:33 AM
looking for a php example of a cURL with a header

http://www.bitcoinmonitor.net/apidoc/#address

been poking around and got this wrote.

http://pastebin.com/HqJ1TLVJ

its not returning anything;

Ive used blockchain.info's api but they dont use a header like this.

12  Other / Beginners & Help / Mt gox ticker on: April 16, 2013, 08:53:45 PM
if anyone is looking for an easy MTgox price ticker in PHP, After digging around I found one that still works

Code:
<?php

$c 
curl_init();
curl_setopt($cCURLOPT_RETURNTRANSFER1);
curl_setopt($cCURLOPT_HTTPHEADER, array('Accept: application/json''Content-Type: application/json'));
curl_setopt($cCURLOPT_URL'http://data.mtgox.com/api/2/BTCUSD/money/ticker');

$data curl_exec($c);
curl_close($c);

$obj json_decode($data);

echo 
print_r($obj->{'data'}->{'avg'}->{'display_short'}."\n"true);

?>


edit got it
last price
Code:
<?php echo print_r($obj->{'data'}->{'last'}->{'display_short'}."\n"true?>
13  Other / Beginners & Help / newbi mtgox API help, basic php on: April 15, 2013, 07:59:58 PM
just started accepting btc donations on my site.

right now its just getting stored on mtgox so It can keep a portion in dollars.

I want to set up a "getinfo" so I can see how much is in my account. And Eventually set up an automated monthly withdrawl of bitcoin to a offline wallet.

I found a github of what looks like a simple php mtgox api class

https://github.com/Someguy123/MtGOX-PHP-API


here is my code so far

Code:
<?php
$gox 
= new Gox('XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX''SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS');


include (
"gox.class.php");
echo 
"test";
$info->getinfo($gox);
var_dump ($info);
?>


for refece the function im trying to call too is

Code:
function getInfo() {
        $info = $this->mtgox_query('0/info.php');
        $this->info = $info; // Hold it in a variable for easy access
        return $info;
    }

thanks
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!