Bitcoin Forum
May 13, 2024, 03:50:52 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: API issue.... -bitinstant.com-  (Read 559 times)
bitlife (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0



View Profile
March 14, 2013, 06:09:23 PM
 #1

I haven't post here in sometime, but I'm having issue.  I cant get ahold of the people that made this API so I figure I would give you guys a go.

I keep getting error when running this code.  Error message is ( Exception raised in parsing - too many parameters - not even bothering to parse ).

Code:
<!DOCTYPE HTML>
<html>
<head>
<title></title>
</head>
<body>
<?php                                                                   

$data_string 
"{\"quoteid\":\"09b1de5a-090d-45bc-87b1-e11f44570b3c\",\"URL\":\"http://test.com/test.php\",\"Secret\":\"15b1370f-4130-4123-a3ab-bce5e174d9cd\"}";                                                                                
   
 
$ch curl_init('https://www.bitinstant.com/api/json/SetOrderIPN');                                                                      
curl_setopt($chCURLOPT_CUSTOMREQUEST"POST");                                                                     
curl_setopt($chCURLOPT_POSTFIELDS$data_string);                                                                  
curl_setopt($chCURLOPT_RETURNTRANSFERtrue);                                                                      
curl_setopt($chCURLOPT_HTTPHEADER, array(                                                                          
    
'Content-Type: application/json',                                                                                
    
'Content-Length: ' strlen($data_string))                                                                       
);                                                                                                                   
 
$result curl_exec($ch);
echo 
$result;
?>

</body>
</html>

I'm trying to run an API on the SetOrderIPN on ( https://www.bitinstant.com/api ).  This is the information they have on it.




I was wondering if anyone could point out what I am doing wrong.  :-(

I got the source code from this location ( https://bitcointalk.org/index.php?topic=117740.msg1526313#msg1526313 ), but their were using it to place quote (  GetQuote ).
"Bitcoin: the cutting edge of begging technology." -- Giraffe.BTC
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715572252
Hero Member
*
Offline Offline

Posts: 1715572252

View Profile Personal Message (Offline)

Ignore
1715572252
Reply with quote  #2

1715572252
Report to moderator
1715572252
Hero Member
*
Offline Offline

Posts: 1715572252

View Profile Personal Message (Offline)

Ignore
1715572252
Reply with quote  #2

1715572252
Report to moderator
1715572252
Hero Member
*
Offline Offline

Posts: 1715572252

View Profile Personal Message (Offline)

Ignore
1715572252
Reply with quote  #2

1715572252
Report to moderator
Gareth Nelson
Hero Member
*****
Offline Offline

Activity: 721
Merit: 503


View Profile
March 15, 2013, 12:45:13 PM
 #2

I haven't post here in sometime, but I'm having issue.  I cant get ahold of the people that made this API so I figure I would give you guys a go.

I keep getting error when running this code.  Error message is ( Exception raised in parsing - too many parameters - not even bothering to parse ).

Code:
<!DOCTYPE HTML>
<html>
<head>
<title></title>
</head>
<body>
<?php                                                                   

$data_string 
"{\"quoteid\":\"09b1de5a-090d-45bc-87b1-e11f44570b3c\",\"URL\":\"http://test.com/test.php\",\"Secret\":\"15b1370f-4130-4123-a3ab-bce5e174d9cd\"}";                                                                                
   
 
$ch curl_init('https://www.bitinstant.com/api/json/SetOrderIPN');                                                                      
curl_setopt($chCURLOPT_CUSTOMREQUEST"POST");                                                                     
curl_setopt($chCURLOPT_POSTFIELDS$data_string);                                                                  
curl_setopt($chCURLOPT_RETURNTRANSFERtrue);                                                                      
curl_setopt($chCURLOPT_HTTPHEADER, array(                                                                          
    
'Content-Type: application/json',                                                                                
    
'Content-Length: ' strlen($data_string))                                                                       
);                                                                                                                   
 
$result curl_exec($ch);
echo 
$result;
?>

</body>
</html>

I'm trying to run an API on the SetOrderIPN on ( https://www.bitinstant.com/api ).  This is the information they have on it.




I was wondering if anyone could point out what I am doing wrong.  :-(

I got the source code from this location ( https://bitcointalk.org/index.php?topic=117740.msg1526313#msg1526313 ), but their were using it to place quote (  GetQuote ).

Parameter names are case sensitive (QuoteID, not quoteid)
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!